[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
96/131: gnu: python-apispec: Do not set PYTHONPATH.
From: |
guix-commits |
Subject: |
96/131: gnu: python-apispec: Do not set PYTHONPATH. |
Date: |
Fri, 29 Jan 2021 09:22:12 -0500 (EST) |
apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.
commit d3e6b588990c051499c2b48e706061688fc4a1ac
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 3398cfd..8cf3418 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -16460,19 +16460,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
- 63/131: gnu: python-pytest-isort: Do not set PYTHONPATH., (continued)
- 63/131: gnu: python-pytest-isort: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 62/131: gnu: pagekit: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 75/131: gnu: python-text-unidecode: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 76/131: gnu: python-markupsafe: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 77/131: gnu: python-jinja2: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 79/131: gnu: python-matplotlib-documentation: Do not read PYTHONPATH., guix-commits, 2021/01/29
- 40/131: gnu: python-django: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 44/131: gnu: python-django-sortedm2m: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 70/131: gnu: python-pymediainfo: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 82/131: gnu: python-flake8-polyfill: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 96/131: gnu: python-apispec: Do not set PYTHONPATH.,
guix-commits <=
- 73/131: gnu: python-click: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 78/131: gnu: python-pygithub: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 83/131: gnu: python-msgpack: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 56/131: gnu: python-fenics-ufl: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 89/131: gnu: python-odfpy: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 99/131: gnu: python-aiohttp: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 102/131: gnu: python-cfn-lint: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 103/131: gnu: python-jsonpickle: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 111/131: gnu: redshift: Wrap with GUIX_PYTHONPATH., guix-commits, 2021/01/29
- 129/131: gnu: mpd: Update comment., guix-commits, 2021/01/29