mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
8fe6eddc84
commit
f64d8a651e
1 changed files with 49 additions and 29 deletions
|
@ -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
|
||||||
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "tempest" version))
|
(uri (pypi-uri "tempest" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "03jc474y57k4c2ydlzw8qx327am9ag15s8j4r4jadrs2x149qvlx"))))
|
||||||
"1bh250n0cf68jm68jd7pcrgf7zbsv74cq590ar1n002sijfcb80i"))))
|
(build-system pyproject-build-system)
|
||||||
(build-system python-build-system)
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:test-flags
|
||||||
|
#~(list "--test-path" "./tempest/tests"
|
||||||
|
;; XXX: Probably requires some setup.
|
||||||
|
"--exclude-regex" (string-join
|
||||||
|
(list "test_load_json_resource_list"
|
||||||
|
"test_load_json_saved_state"
|
||||||
|
"test_take_action_got_exception"
|
||||||
|
"test_hacking")
|
||||||
|
"|"))
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'remove-failing-tests
|
||||||
|
(lambda _
|
||||||
|
;; XXX: Most of those tests require network connection.
|
||||||
|
(delete-file-recursively "tempest/tests/lib/services/volume")
|
||||||
|
(delete-file "tempest/tests/test_hacking.py")))
|
||||||
(add-after 'unpack 'relax-requirements
|
(add-after 'unpack 'relax-requirements
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "test-requirements.txt"
|
(substitute* "test-requirements.txt"
|
||||||
;; unused, code-quality checks only
|
;; unused, code-quality checks only
|
||||||
(("hacking[<>!=]" line) (string-append "# " line))
|
(("(hacking|flake8-.*|pycodestyle|coverage)[<>!=]" line)
|
||||||
(("flake8-.*[<>!=]" line) (string-append "# " line))
|
(string-append "# " line)))))
|
||||||
(("pycodestyle[<>!=]" line) (string-append "# " line))
|
|
||||||
(("coverage[<>!=]" line) (string-append "# " line)))))
|
|
||||||
(add-before 'check 'setup-check
|
(add-before 'check 'setup-check
|
||||||
(lambda _
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(substitute* "tempest/tests/lib/cli/test_execute.py"
|
(substitute* "tempest/tests/lib/cli/test_execute.py"
|
||||||
(("cli_base.execute\\(\"env\",")
|
(("cli_base.execute\\(\"env\",")
|
||||||
(string-append "cli_base.execute('" (which "env") "',")))))
|
(string-append "cli_base.execute('"
|
||||||
|
(search-input-file inputs "bin/env") "',")))))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(lambda* (#:key tests? test-flags #:allow-other-keys)
|
||||||
(when tests?
|
(when tests?
|
||||||
(invoke "stestr" "--test-path" "./tempest/tests" "run")))))))
|
(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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue