gnu: python-tempest: Update to 42.0.0.

* gnu/packages/openstack.scm (python-tempest): Update to 42.0.0.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Add 'remove-failing-tests, refresh other
phases.
<#:test-flags>: Ignore failing tests.
[native-inputs]: Add python-setuptools, python-wheel.

Change-Id: I86baf0c1da0f8a332cd43d8c97fa1424f38af462
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-07-24 03:59:33 +02:00 committed by Sharlatan Hellseher
parent 8fe6eddc84
commit f64d8a651e
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -404,37 +404,52 @@ extensions.")
(define-public python-tempest (define-public python-tempest
(package (package
(name "python-tempest") (name "python-tempest")
(version "31.1.0") (version "42.0.0")
(source (origin (source
(method url-fetch) (origin
(uri (pypi-uri "tempest" version)) (method url-fetch)
(sha256 (uri (pypi-uri "tempest" version))
(base32 (sha256
"1bh250n0cf68jm68jd7pcrgf7zbsv74cq590ar1n002sijfcb80i")))) (base32 "03jc474y57k4c2ydlzw8qx327am9ag15s8j4r4jadrs2x149qvlx"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:test-flags
(add-after 'unpack 'relax-requirements #~(list "--test-path" "./tempest/tests"
(lambda _ ;; XXX: Probably requires some setup.
(substitute* "test-requirements.txt" "--exclude-regex" (string-join
;; unused, code-quality checks only (list "test_load_json_resource_list"
(("hacking[<>!=]" line) (string-append "# " line)) "test_load_json_saved_state"
(("flake8-.*[<>!=]" line) (string-append "# " line)) "test_take_action_got_exception"
(("pycodestyle[<>!=]" line) (string-append "# " line)) "test_hacking")
(("coverage[<>!=]" line) (string-append "# " line))))) "|"))
(add-before 'check 'setup-check #:phases
(lambda _ #~(modify-phases %standard-phases
(substitute* "tempest/tests/lib/cli/test_execute.py" (add-after 'unpack 'remove-failing-tests
(("cli_base.execute\\(\"env\",") (lambda _
(string-append "cli_base.execute('" (which "env") "',"))))) ;; XXX: Most of those tests require network connection.
(replace 'check (delete-file-recursively "tempest/tests/lib/services/volume")
(lambda* (#:key tests? #:allow-other-keys) (delete-file "tempest/tests/test_hacking.py")))
(when tests? (add-after 'unpack 'relax-requirements
(invoke "stestr" "--test-path" "./tempest/tests" "run"))))))) (lambda _
(substitute* "test-requirements.txt"
;; unused, code-quality checks only
(("(hacking|flake8-.*|pycodestyle|coverage)[<>!=]" line)
(string-append "# " line)))))
(add-before 'check 'setup-check
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "tempest/tests/lib/cli/test_execute.py"
(("cli_base.execute\\(\"env\",")
(string-append "cli_base.execute('"
(search-input-file inputs "bin/env") "',")))))
(replace 'check
(lambda* (#:key tests? test-flags #:allow-other-keys)
(when tests?
(apply invoke "stestr" "run" test-flags)))))))
(propagated-inputs (list python-cliff (propagated-inputs (list python-cliff
python-cryptography python-cryptography
python-debtcollector python-defusedxml
python-fasteners
python-fixtures python-fixtures
python-jsonschema python-jsonschema
python-netaddr python-netaddr
@ -450,7 +465,12 @@ extensions.")
python-subunit python-subunit
python-testtools python-testtools
python-urllib3)) python-urllib3))
(native-inputs (list python-oslotest python-pbr python-stestr python-hacking)) (native-inputs (list python-oslotest
python-pbr
python-setuptools
python-stestr
python-testscenarios
python-wheel))
(home-page "https://docs.openstack.org/tempest/latest/") (home-page "https://docs.openstack.org/tempest/latest/")
(synopsis "OpenStack Integration Testing") (synopsis "OpenStack Integration Testing")
(description "This is a set of integration tests to be run against a live (description "This is a set of integration tests to be run against a live