diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-21 22:16:21 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-21 22:20:16 +0000 |
| commit | 6168d3740468b34e6f39bf45b134609f6cc745ef (patch) | |
| tree | ddca1b341dc01deff329a8b18899ab196e6b471b | |
| parent | 992bcd7eede06bd37e076cec17c03e7ca4dbdffe (diff) | |
gnu: podman-compose: Use unittest.
* gnu/packages/containers.scm (podman-compose):
[arguments] <test-backend, test-flags>: Use unittest as seen in
project's GitHub Actons.
<phases>: Remove 'pre-check.
[native-inputs]: Remove python-pytest and python-wheel.
Change-Id: I6da2f7f4c55f4cd22919d7f7827b2be58993f2e2
| -rw-r--r-- | gnu/packages/containers.scm | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm index 9260d2562f..b8d9653e3d 100644 --- a/gnu/packages/containers.scm +++ b/gnu/packages/containers.scm @@ -708,8 +708,8 @@ To get @code{podman machine} working, install @code{qemu-minimal}, and (origin (method git-fetch) (uri (git-reference - (url "https://github.com/containers/podman-compose") - (commit (string-append "v" version)))) + (url "https://github.com/containers/podman-compose") + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "08pz9axvgfyr0jd8rlndmhh8147s864mz17ng6qs07831g9ylj80")))) @@ -717,17 +717,19 @@ To get @code{podman machine} working, install @code{qemu-minimal}, and (arguments (list ;; Only run tests in `tests/unit`, skipping the ones in - ;; `tests/integration`. The integration tests need an environment with the - ;; ability to manage containers and volumes using the `podman` command. - #:test-flags #~(list "tests/unit") - #:phases - #~(modify-phases %standard-phases - (add-before 'check 'pre-check - (lambda _ - ;; This fixes "ModuleNotFoundError: No module named 'tests'" - (invoke "touch" "tests/__init__.py")))))) - (native-inputs (list python-pytest python-parameterized python-setuptools python-wheel)) - (propagated-inputs (list python-dotenv python-pyyaml)) + ;; `tests/integration`. The integration tests need an environment with + ;; the ability to manage containers and volumes using the `podman` + ;; command. + ;; + ;; tests: 378 tests + #:test-backend #~'unittest + #:test-flags #~(list "discover" "tests/unit"))) + (native-inputs + (list python-parameterized + python-setuptools)) + (propagated-inputs + (list python-dotenv + python-pyyaml)) (home-page "https://github.com/containers/podman-compose") (synopsis "Script to run docker-compose.yml using podman") (description |
