[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
59/204: gnu: Add python-pytest-perf.
From: |
guix-commits |
Subject: |
59/204: gnu: Add python-pytest-perf. |
Date: |
Wed, 20 Apr 2022 02:03:20 -0400 (EDT) |
apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.
commit b6b23e63400712af98e2d1c0b66141cc342c9c91
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Apr 5 15:04:55 2022 -0400
gnu: Add python-pytest-perf.
* gnu/packages/check.scm (python-pytest-perf): New variable.
---
gnu/packages/check.scm | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 8ed53f7e27..e3523d77dc 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -2344,6 +2344,64 @@ a Pytest test execution.")
(define-public python2-pytest-pep8
(package-with-python2 python-pytest-pep8))
+(define-public python-pytest-perf
+ (package
+ (name "python-pytest-perf")
+ (version "0.12.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jaraco/pytest-perf")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "05mgknvrmyz1kmkgw8jzvisavc68wz1g2wxv69i6xvzgqxf17m9f"))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-k"
+ (string-append
+ ;; Do not test the myproject.toml build as it tries
to pull
+ ;; dependencies from the internet.
+ "not project "
+ ;; The benchmark test attempts to install the
+ ;; package, failing to pull its dependencies from the
+ ;; network.
+ "and not BenchmarkRunner "
+ ;; The upstream_url test requires networking.
+ "and not upstream_url"))))))))
+ (native-inputs
+ (list python-pytest
+ python-pytest-black
+ python-pytest-checkdocs
+ python-pytest-cov
+ python-pytest-enabler
+ python-pytest-flake8
+ python-pytest-mypy))
+ (propagated-inputs
+ (list python-jaraco-context
+ python-jaraco-functools
+ python-more-itertools
+ python-packaging
+ python-pip-run
+ python-tempora))
+ (home-page "https://github.com/jaraco/pytest-perf")
+ (synopsis "Pytest plugin for performance testing")
+ (description "@code{pytest-perf} makes it easy to compare works by
+creating two installs, the control and the experiment, and measuring the
+performance of some Python code against each. Under the hood, it uses the
+@command{pip-run} command to install from the upstream main
+branch (e.g. https://github.com/jaraco/pytest-perf) for the control and from
+@file{.} for the experiment. It then runs each of the experiments against
+each of the environments.")
+ (license license:expat)))
+
(define-public python-pytest-flakes
(package
(name "python-pytest-flakes")
- 25/204: gnu: python-fonttools-with-test: Rename to python-fonttools-full., (continued)
- 25/204: gnu: python-fonttools-with-test: Rename to python-fonttools-full., guix-commits, 2022/04/20
- 34/204: gnu: Add python-ufoprocessor., guix-commits, 2022/04/20
- 29/204: gnu: Add python-fontparts-bootstrap., guix-commits, 2022/04/20
- 35/204: gnu: Add python-ufonormalizer., guix-commits, 2022/04/20
- 41/204: gnu: Add python-types-freezegun., guix-commits, 2022/04/20
- 48/204: gnu: python-pytest-black: Update to 0.3.12., guix-commits, 2022/04/20
- 60/204: gnu: python-factory-boy: Update to 3.2.1., guix-commits, 2022/04/20
- 68/204: gnu: python-setuptools: Update to 62.0.0., guix-commits, 2022/04/20
- 72/204: gnu: Add python-scikit-build., guix-commits, 2022/04/20
- 86/204: gnu: Add font-amiri., guix-commits, 2022/04/20
- 59/204: gnu: Add python-pytest-perf.,
guix-commits <=
- 65/204: gnu: Add python-ordered-set., guix-commits, 2022/04/20
- 91/204: gnu: python-flask: Update to 2.1.1., guix-commits, 2022/04/20
- 94/204: gnu: pylint: Run tests in parallel., guix-commits, 2022/04/20
- 95/204: gnu: python-trio: Update to 0.20.0., guix-commits, 2022/04/20
- 98/204: gnu: python-greenlet: Update to 1.1.2., guix-commits, 2022/04/20
- 103/204: gnu: python-jupyter-core: Update to 4.10.0., guix-commits, 2022/04/20
- 105/204: gnu: python-ipykernel: Update to 6.13.0., guix-commits, 2022/04/20
- 112/204: gnu: Add texlive-lm-math., guix-commits, 2022/04/20
- 144/204: gnu: python-falcon: Update to 3.1.0., guix-commits, 2022/04/20
- 43/204: gnu: Add python-pytest-freezegun., guix-commits, 2022/04/20