summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-07-24 03:59:33 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-07-27 00:25:51 +0100
commitf64d8a651e1ef9e80f6e2a8f80e1638f0edd784d (patch)
treebe8cab9cc51217a4da0e683f9745a4a3125e0ec5 /gnu/packages
parent8fe6eddc841e3e54412979f3f08a5cb057c69942 (diff)
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>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/openstack.scm78
1 files changed, 49 insertions, 29 deletions
diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm
index 2e84a2a31d3..eb49814fc15 100644
--- a/gnu/packages/openstack.scm
+++ b/gnu/packages/openstack.scm
@@ -404,37 +404,52 @@ extensions.")
404(define-public python-tempest 404(define-public python-tempest
405 (package 405 (package
406 (name "python-tempest") 406 (name "python-tempest")
407 (version "31.1.0") 407 (version "42.0.0")
408 (source (origin 408 (source
409 (method url-fetch) 409 (origin
410 (uri (pypi-uri "tempest" version)) 410 (method url-fetch)
411 (sha256 411 (uri (pypi-uri "tempest" version))
412 (base32 412 (sha256
413 "1bh250n0cf68jm68jd7pcrgf7zbsv74cq590ar1n002sijfcb80i")))) 413 (base32 "03jc474y57k4c2ydlzw8qx327am9ag15s8j4r4jadrs2x149qvlx"))))
414 (build-system python-build-system) 414 (build-system pyproject-build-system)
415 (arguments 415 (arguments
416 `(#:phases 416 (list
417 (modify-phases %standard-phases 417 #:test-flags
418 (add-after 'unpack 'relax-requirements 418 #~(list "--test-path" "./tempest/tests"
419 (lambda _ 419 ;; XXX: Probably requires some setup.
420 (substitute* "test-requirements.txt" 420 "--exclude-regex" (string-join
421 ;; unused, code-quality checks only 421 (list "test_load_json_resource_list"
422 (("hacking[<>!=]" line) (string-append "# " line)) 422 "test_load_json_saved_state"
423 (("flake8-.*[<>!=]" line) (string-append "# " line)) 423 "test_take_action_got_exception"
424 (("pycodestyle[<>!=]" line) (string-append "# " line)) 424 "test_hacking")
425 (("coverage[<>!=]" line) (string-append "# " line))))) 425 "|"))
426 (add-before 'check 'setup-check 426 #:phases
427 (lambda _ 427 #~(modify-phases %standard-phases
428 (substitute* "tempest/tests/lib/cli/test_execute.py" 428 (add-after 'unpack 'remove-failing-tests
429 (("cli_base.execute\\(\"env\",") 429 (lambda _
430 (string-append "cli_base.execute('" (which "env") "',"))))) 430 ;; XXX: Most of those tests require network connection.
431 (replace 'check 431 (delete-file-recursively "tempest/tests/lib/services/volume")
432 (lambda* (#:key tests? #:allow-other-keys) 432 (delete-file "tempest/tests/test_hacking.py")))
433 (when tests? 433 (add-after 'unpack 'relax-requirements
434 (invoke "stestr" "--test-path" "./tempest/tests" "run"))))))) 434 (lambda _
435 (substitute* "test-requirements.txt"
436 ;; unused, code-quality checks only
437 (("(hacking|flake8-.*|pycodestyle|coverage)[<>!=]" line)
438 (string-append "# " line)))))
439 (add-before 'check 'setup-check
440 (lambda* (#:key inputs #:allow-other-keys)
441 (substitute* "tempest/tests/lib/cli/test_execute.py"
442 (("cli_base.execute\\(\"env\",")
443 (string-append "cli_base.execute('"
444 (search-input-file inputs "bin/env") "',")))))
445 (replace 'check
446 (lambda* (#:key tests? test-flags #:allow-other-keys)
447 (when tests?
448 (apply invoke "stestr" "run" test-flags)))))))
435 (propagated-inputs (list python-cliff 449 (propagated-inputs (list python-cliff
436 python-cryptography 450 python-cryptography
437 python-debtcollector 451 python-defusedxml
452 python-fasteners
438 python-fixtures 453 python-fixtures
439 python-jsonschema 454 python-jsonschema
440 python-netaddr 455 python-netaddr
@@ -450,7 +465,12 @@ extensions.")
450 python-subunit 465 python-subunit
451 python-testtools 466 python-testtools
452 python-urllib3)) 467 python-urllib3))
453 (native-inputs (list python-oslotest python-pbr python-stestr python-hacking)) 468 (native-inputs (list python-oslotest
469 python-pbr
470 python-setuptools
471 python-stestr
472 python-testscenarios
473 python-wheel))
454 (home-page "https://docs.openstack.org/tempest/latest/") 474 (home-page "https://docs.openstack.org/tempest/latest/")
455 (synopsis "OpenStack Integration Testing") 475 (synopsis "OpenStack Integration Testing")
456 (description "This is a set of integration tests to be run against a live 476 (description "This is a set of integration tests to be run against a live