[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
151/163: gnu: python-apispec: Do not set PYTHONPATH.
From: |
guix-commits |
Subject: |
151/163: gnu: python-apispec: Do not set PYTHONPATH. |
Date: |
Mon, 25 Jan 2021 02:02:02 -0500 (EST) |
apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.
commit f44781bcbcaa87a5f46f10f01fb2b6f6740062c8
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sun Jan 24 10:44:51 2021 -0500
gnu: python-apispec: Do not set PYTHONPATH.
* gnu/packages/python-xyz.scm (python-apispec)
{disable-prance-tests}: Remove phase.
[phases]{check}: Do not set PYTHONPATH. Exclude the tests using the CLI of
Pytest.
---
gnu/packages/python-xyz.scm | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ea7ad17..cf7abbb 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -16428,19 +16428,13 @@ complex datatypes to and from native Python
datatypes.")
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
- (add-after 'unpack 'disable-prance-tests
- (lambda _
- ;; Disable validation tests since they require the
- ;; optional 'prance' library which is not yet in Guix.
- (substitute* "tests/test_ext_marshmallow_openapi.py"
- (("def test_openapi_tools_validate.*" all)
- (string-append "@pytest.mark.xfail\n" all)))))
(replace 'check
(lambda _
- (setenv "PYTHONPATH"
- (string-append "./build/lib:"
- (getenv "PYTHONPATH")))
- (invoke "pytest" "-vv"))))))
+ (invoke "pytest" "-vv"
+ ;; Disable validation tests since they require
+ ;; the optional 'prance' library which is not
+ ;; yet in Guix.
+ "-k" "not openapi_tools_validate"))))))
(propagated-inputs
`(("python-pyyaml" ,python-pyyaml)))
(native-inputs
- 117/163: gnu: terminator: Wrap with the new Guix PYTHONPATH., (continued)
- 117/163: gnu: terminator: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 76/163: gnu: fifengine: Do not alter PYTHONPATH., guix-commits, 2021/01/25
- 124/163: gnu: python-colorlog: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 118/163: gnu: setzer: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 135/163: gnu: python-multidict: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 134/163: gnu: python-matplotlib-documentation: Do not read PYTHONPATH., guix-commits, 2021/01/25
- 136/163: gnu: python2-backports-shutil-get-terminal-size: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 144/163: gnu: python-odfpy: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 145/163: gnu: python-natsort: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 146/163: gnu: python-validictory: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 151/163: gnu: python-apispec: Do not set PYTHONPATH.,
guix-commits <=
- 152/163: gnu: python-flasgger: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 153/163: gnu: python2-send2trash: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 155/163: gnu: python-asgiref: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 156/163: gnu: python-aws-xray-sdk: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 160/163: gnu: python-flask: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 162/163: gnu: python-webassets: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 147/163: gnu: python-pyelftools: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 115/163: gnu: orca: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 82/163: gnu: inkscape-1.0: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 114/163: gnu: gnome-todo: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25