[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/57: gnu: python-pytest-django: Update to 3.10.0.
From: |
guix-commits |
Subject: |
07/57: gnu: python-pytest-django: Update to 3.10.0. |
Date: |
Tue, 22 Sep 2020 12:43:31 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 92607967c2dcad9d60bcbd0be593cf2dfc24aa36
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Sep 1 11:27:48 2020 +0200
gnu: python-pytest-django: Update to 3.10.0.
* gnu/packages/django.scm (python-pytest-django): Update to 3.10.0.
[arguments]: Remove #:tests?. Override check phase.
[native-inputs]: Add PYTHON-PYTEST-XDIST.
---
gnu/packages/django.scm | 35 ++++++++++++++++++++++++++---------
1 file changed, 26 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index c086cab..b1de294 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -309,26 +309,43 @@ size and quality.")
(define-public python-pytest-django
(package
(name "python-pytest-django")
- (version "3.1.2")
+ (version "3.10.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "pytest-django" version))
(sha256
(base32
- "02932m2sr8x22m4az8syr8g835g4ak77varrnw71n6xakmdcr303"))))
+ "19nvqsb7b9kz3ikpb50m8ppf7mfhzrapdxsqd5hhd1pdfz8dprjd"))))
(build-system python-build-system)
(arguments
- `(#:tests? #f ; FIXME: How to run tests?
- #:phases
+ `(#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'patch-setuppy
- (lambda _
- (substitute* "setup.py"
- (("setuptools_scm==1.11.1") "setuptools_scm"))
+ (replace 'check
+ (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+ (if tests?
+ (begin
+ (add-installed-pythonpath inputs outputs)
+ (setenv "PYTHONPATH"
+ (string-append ".:" ;for pytest_django_test
+ (getenv "PYTHONPATH")))
+ (setenv "PYTEST_DJANGO_TEST_RUNNER" "pytest")
+ (setenv "DJANGO_SETTINGS_MODULE"
+ "pytest_django_test.settings_sqlite_file")
+ (invoke "pytest" "-vv" "-k"
+ ;; FIXME: these tests fail to locate Django
templates ...
+ (string-append "not
test_django_not_loaded_without_settings"
+ " and not test_settings"
+ ;; ... and this does not discover
+ ;; 'pytest_django_test'.
+ " and not
test_urls_cache_is_cleared")))
+ (format #t "test suite not run~%"))
#t)))))
(native-inputs
`(("python-django" ,python-django)
- ("python-setuptools-scm" ,python-setuptools-scm)))
+ ("python-setuptools-scm" ,python-setuptools-scm)
+
+ ;; For tests.
+ ("python-pytest-xdist" ,python-pytest-xdist)))
(propagated-inputs
`(("python-pytest" ,python-pytest)))
(home-page "https://pytest-django.readthedocs.org/")
- branch master updated (c7011ff -> a2c0dbb), guix-commits, 2020/09/22
- 02/57: gnu: Remove pootle., guix-commits, 2020/09/22
- 01/57: gnu: python-uritemplate: Update to 3.0.1., guix-commits, 2020/09/22
- 04/57: gnu: Add python-asgiref., guix-commits, 2020/09/22
- 07/57: gnu: python-pytest-django: Update to 3.10.0.,
guix-commits <=
- 05/57: gnu: python-django: Update to 3.1.1., guix-commits, 2020/09/22
- 08/57: gnu: python-django-simple-math-captcha: Update to 1.0.9., guix-commits, 2020/09/22
- 09/57: gnu: python-django-classy-tags: Update to 2.0.0., guix-commits, 2020/09/22
- 03/57: gnu: Remove python2-django-mailman3., guix-commits, 2020/09/22
- 14/57: gnu: python-django-filter: Update to 2.3.0., guix-commits, 2020/09/22
- 15/57: gnu: python-django-allauth: Update to 0.42.0., guix-commits, 2020/09/22
- 18/57: gnu: python-django-jinja: Update to 2.6.0., guix-commits, 2020/09/22
- 06/57: gnu: python-django: Propagate python-sqlparse., guix-commits, 2020/09/22
- 11/57: gnu: python-django-taggit: Update to 1.3.0., guix-commits, 2020/09/22
- 24/57: gnu: python-django-picklefield: Update to 3.0.1., guix-commits, 2020/09/22