diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-07-24 03:55:19 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-07-27 00:25:51 +0100 |
| commit | 808e3ebc596427ac008d68ddc0121fe8ff6ffa53 (patch) | |
| tree | 9c73238ece2a850ef23e01e7f778f017f19864bc /gnu/packages/openstack.scm | |
| parent | 501f5ebe057829427da4b0e1962ca4aa13e2f683 (diff) | |
gnu: python-os-testr: Update to 3.0.0.
* gnu/packages/openstack.scm (python-os-testr): Update to 3.0.0.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Add 'relax-requirements phase.
[native-inputs]: Add python-setuptools, python-wheel, python-ddt,
python-oslotest, python-testscenarios.
Change-Id: Icda2bb640078e765bad4f3d81b14a02c900122cc
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/openstack.scm')
| -rw-r--r-- | gnu/packages/openstack.scm | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm index ae11f6a51c3..017372310cf 100644 --- a/gnu/packages/openstack.scm +++ b/gnu/packages/openstack.scm @@ -307,24 +307,35 @@ is for some reason not possible and local caching of the fetched data.") (define-public python-os-testr (package (name "python-os-testr") - (version "2.0.1") + (version "3.0.0") (source (origin (method url-fetch) (uri (pypi-uri "os-testr" version)) (sha256 - (base32 - "10xaqg3wxly13652hdvh9c69y4s12ird0ircffya3kvpl5pky0pz")))) - (build-system python-build-system) + (base32 "0vik5sjl0qhz6xqqg6gnaf5jva31m7xykyc0azb53jfq7y57ladv")))) + (build-system pyproject-build-system) (arguments - ;; os-testr uses itself to run the tests. It seems like pbr writes the - ;; exectuable in the virtualenv when using tox. Not sure how to do this - ;; when building the package. Skip the tests for now. - `(#:tests? #f)) + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'relax-requirements + (lambda _ + (substitute* "test-requirements.txt" + (("(coverage|hacking).*") + ""))))))) (propagated-inputs (list python-stestr)) (native-inputs - (list python-babel python-pbr python-testrepository python-testtools)) + (list python-babel + python-ddt + python-oslotest + python-pbr + python-setuptools + python-testrepository + python-testscenarios + python-testtools + python-wheel)) (home-page "https://www.openstack.org/") (synopsis "Testr wrapper to provide functionality for OpenStack projects") (description |
