GNU bug report logs -
#42069
[PATCH 1/6] gnu: Add python-pytest-arraydiff.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 42069 in the body.
You can then email your comments to 42069 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#42069
; Package
guix-patches
.
(Fri, 26 Jun 2020 22:17:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Vinicius Monego <monego <at> posteo.net>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Fri, 26 Jun 2020 22:17:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/check.scm (python-pytest-arraydiff): New variable.
---
gnu/packages/check.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index df9d380f71..ccf74cfb46 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1750,6 +1750,33 @@ look and feel of py.test, using a progress bar and showing failures and errors
instantly.")
(license license:bsd-3)))
+(define-public python-pytest-arraydiff
+ (package
+ (name "python-pytest-arraydiff")
+ (version "0.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-arraydiff" version))
+ (sha256
+ (base32 "05bcvhh2ycxa35znl8b3l9vkcmx7vwm5c3fpakbpw46c7vsn4bfy"))))
+ (build-system python-build-system)
+ (arguments
+ ;; Tests require python-astropy, which itself requires this package.
+ ;; Disable tests to avoid the circular dependency problem.
+ '(#:tests? #f))
+ (propagated-inputs
+ `(("python-numpy" ,python-numpy)
+ ("python-pytest" ,python-pytest)
+ ("python-six" ,python-six)))
+ (home-page "https://github.com/astropy/pytest-arraydiff")
+ (synopsis "Pytest plugin to help with comparing array output from tests")
+ (description
+ "This is a py.test plugin to facilitate the generation and comparison of
+data arrays produced during tests, in particular in cases where the arrays
+are too large to conveniently hard-code them in the tests.")
+ (license license:bsd-3)))
+
(define-public python-hypothesis
(package
(name "python-hypothesis")
--
2.20.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#42069
; Package
guix-patches
.
(Tue, 07 Jul 2020 12:32:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 42069 <at> debbugs.gnu.org (full text, mbox):
Hello,
Vinicius Monego <monego <at> posteo.net> writes:
> * gnu/packages/check.scm (python-pytest-arraydiff): New variable.
Would it make sense to add all the python-pytest-* stuff to
"python-check.scm" instead of "check.scm"?
Regards,
--
Nicolas Goaziou
Information forwarded
to
guix-patches <at> gnu.org
:
bug#42069
; Package
guix-patches
.
(Thu, 23 Jul 2020 18:25:02 GMT)
Full text and
rfc822 format available.
Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python-check.scm (python-pytest-arraydiff): New variable.
---
gnu/packages/python-check.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 200bce6ced..bc0da40cbd 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -7,6 +7,7 @@
;;; Copyright © 2020 Julien Lepiller <julien <at> lepiller.eu>
;;; Copyright © 2020 Marius Bakke <mbakke <at> fastmail.com>
;;; Copyright © 2020 Edouard Klein <edk <at> beaver-labs.com>
+;;; Copyright © 2020 Vinicius Monego <monego <at> posteo.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -125,6 +126,32 @@ detect the absence of a cassette file and once again record all HTTP
interactions, which will update them to correspond to the new API.")
(license license:expat)))
+(define-public python-pytest-arraydiff
+ (package
+ (name "python-pytest-arraydiff")
+ (version "0.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-arraydiff" version))
+ (sha256
+ (base32 "05bcvhh2ycxa35znl8b3l9vkcmx7vwm5c3fpakbpw46c7vsn4bfy"))))
+ (build-system python-build-system)
+ (arguments
+ ;; Tests require python-astropy, which itself requires this package.
+ ;; Disable tests to avoid the circular dependency problem.
+ '(#:tests? #f))
+ (propagated-inputs
+ `(("python-numpy" ,python-numpy)
+ ("python-six" ,python-six)))
+ (home-page "https://github.com/astropy/pytest-arraydiff")
+ (synopsis "Pytest plugin to help with comparing array output from tests")
+ (description
+ "This is a py.test plugin to facilitate the generation and comparison of
+data arrays produced during tests, in particular in cases where the arrays
+are too large to conveniently hard-code them in the tests.")
+ (license license:bsd-3)))
+
(define-public python-pytest-vcr
(package
(name "python-pytest-vcr")
--
2.20.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#42069
; Package
guix-patches
.
(Thu, 23 Jul 2020 18:25:02 GMT)
Full text and
rfc822 format available.
Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python-check.scm (python-pytest-doctestplus): New variable.
---
gnu/packages/python-check.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index bc0da40cbd..bdcfce7c82 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -152,6 +152,34 @@ data arrays produced during tests, in particular in cases where the arrays
are too large to conveniently hard-code them in the tests.")
(license license:bsd-3)))
+(define-public python-pytest-doctestplus
+ (package
+ (name "python-pytest-doctestplus")
+ (version "0.7.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-doctestplus" version))
+ (sha256
+ (base32 "1ai9kvd7xbq2jg2h8gmkb8lqzyrxvdh4zg3vxndg149iwd1hyi7d"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ ;; Make the installed plugin discoverable by Pytest.
+ (add-installed-pythonpath inputs outputs)
+ (invoke "pytest" "-vv"))))))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)))
+ (home-page "https://github.com/astropy/pytest-doctestplus")
+ (synopsis "Pytest plugin with advanced doctest features")
+ (description
+ "This package contains a plugin for the Pytest framework that provides
+advanced doctest support and enables the testing of reStructuredText files.")
+ (license license:bsd-3)))
+
(define-public python-pytest-vcr
(package
(name "python-pytest-vcr")
--
2.20.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#42069
; Package
guix-patches
.
(Thu, 23 Jul 2020 18:25:03 GMT)
Full text and
rfc822 format available.
Message #17 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python-check.scm (python-pytest-filter-subpackage): New variable.
---
gnu/packages/python-check.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index bdcfce7c82..b21fa995c6 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -180,6 +180,41 @@ are too large to conveniently hard-code them in the tests.")
advanced doctest support and enables the testing of reStructuredText files.")
(license license:bsd-3)))
+(define-public python-pytest-filter-subpackage
+ (package
+ (name "python-pytest-filter-subpackage")
+ (version "0.1.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-filter-subpackage" version))
+ (sha256
+ (base32 "1s4s2kd31yc65rfvl4xhy8xx806xhy59kc7668h6b6wq88xgrn5p"))))
+ (build-system python-build-system)
+ (arguments
+ '(;; One test is failing. There's an issue reported upstream. See
+ ;; https://github.com/astropy/pytest-filter-subpackage/issues/3.
+ ;; Disable it for now.
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ ;; Make the installed plugin discoverable by Pytest.
+ (add-installed-pythonpath inputs outputs)
+ (invoke "pytest" "-vv" "-k" "not test_with_rst"))))))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)
+ ("python-pytest-doctestplus"
+ ,python-pytest-doctestplus)))
+ (home-page "https://github.com/astropy/pytest-filter-subpackage")
+ (synopsis "Pytest plugin for filtering based on sub-packages")
+ (description
+ "This package contains a simple plugin for the pytest framework that
+provides a shortcut to testing all code and documentation for a given
+sub-package.")
+ (license license:bsd-3)))
+
(define-public python-pytest-vcr
(package
(name "python-pytest-vcr")
--
2.20.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#42069
; Package
guix-patches
.
(Thu, 23 Jul 2020 18:25:03 GMT)
Full text and
rfc822 format available.
Message #20 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python-check.scm (python-pytest-openfiles): New variable.
---
gnu/packages/python-check.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index b21fa995c6..de8cb09c48 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -215,6 +215,38 @@ provides a shortcut to testing all code and documentation for a given
sub-package.")
(license license:bsd-3)))
+(define-public python-pytest-openfiles
+ (package
+ (name "python-pytest-openfiles")
+ (version "0.5.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-openfiles" version))
+ (sha256
+ (base32 "0n0a7fdc9m86360y96l23fvdmd6rw04bl6h5xqgl9qxfv08jk70p"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ ;; Make the installed plugin discoverable by Pytest.
+ (add-installed-pythonpath inputs outputs)
+ (invoke "pytest" "-vv"))))))
+ (native-inputs
+ `(("python-setuptools-scm" ,python-setuptools-scm)
+ ("python-pytest" ,python-pytest)))
+ (propagated-inputs
+ `(("python-psutil" ,python-psutil)))
+ (home-page "https://github.com/astropy/pytest-openfiles")
+ (synopsis "Pytest plugin for detecting inadvertent open file handles")
+ (description
+ "This package provides a plugin for the pytest framework that allows
+developers to detect whether any file handles or other file-like objects
+were inadvertently left open at the end of a unit test.")
+ (license license:bsd-3)))
+
(define-public python-pytest-vcr
(package
(name "python-pytest-vcr")
--
2.20.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#42069
; Package
guix-patches
.
(Thu, 23 Jul 2020 18:25:03 GMT)
Full text and
rfc822 format available.
Message #23 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python-check.scm (python-pytest-remotedata): New variable.
---
gnu/packages/python-check.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index de8cb09c48..507d9cf468 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -247,6 +247,41 @@ developers to detect whether any file handles or other file-like objects
were inadvertently left open at the end of a unit test.")
(license license:bsd-3)))
+(define-public python-pytest-remotedata
+ (package
+ (name "python-pytest-remotedata")
+ (version "0.3.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-remotedata" version))
+ (sha256
+ (base32 "1h6g6shib6z07azf12rnsa053470ggbd7hy3bnbw8nf3nza5h372"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ ;; Make ;TODO: he installed plugin discoverable by Pytest.
+ (add-installed-pythonpath inputs outputs)
+ (invoke "pytest" "-vv" "-k"
+ (string-append
+ ;; These tests require internet access. Disable them.
+ "not test_default_behavior"
+ " and not test_strict_with_decorator")))))))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)))
+ (propagated-inputs
+ `(("python-six" ,python-six)))
+ (home-page "https://github.com/astropy/pytest-remotedata")
+ (synopsis "Pytest plugin for controlling remote data access")
+ (description
+ "This package provides a plugin for the Pytest framework that allows
+developers to control unit tests that require access to data from the
+internet.")
+ (license license:bsd-3)))
+
(define-public python-pytest-vcr
(package
(name "python-pytest-vcr")
--
2.20.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#42069
; Package
guix-patches
.
(Thu, 23 Jul 2020 18:25:04 GMT)
Full text and
rfc822 format available.
Message #26 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python-check.scm (python-pytest-mpl): New variable.
---
gnu/packages/python-check.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 507d9cf468..617e474bf0 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -282,6 +282,35 @@ developers to control unit tests that require access to data from the
internet.")
(license license:bsd-3)))
+(define-public python-pytest-mpl
+ (package
+ (name "python-pytest-mpl")
+ (version "0.11")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-mpl" version))
+ (sha256
+ (base32 "1km202c1s5kcn52fx0266p06qb34va3warcby594dh6vixxa9i96"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (invoke "pytest" "-vv"))))))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)))
+ (propagated-inputs
+ `(("python-matplotlib" ,python-matplotlib)
+ ("python-pillow" ,python-pillow)))
+ (home-page "https://github.com/matplotlib/pytest-mpl")
+ (synopsis "Pytest plugin to help with testing figures output from Matplotlib")
+ (description
+ "This is a plugin to facilitate image comparison for Matplotlib figures
+in Pytest.")
+ (license license:bsd-3)))
+
(define-public python-pytest-vcr
(package
(name "python-pytest-vcr")
--
2.20.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#42069
; Package
guix-patches
.
(Sat, 25 Jul 2020 02:21:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 42069 <at> debbugs.gnu.org (full text, mbox):
merge 42069 42070 42071 42072 42073 42074
Information forwarded
to
guix-patches <at> gnu.org
:
bug#42069
; Package
guix-patches
.
(Sat, 25 Jul 2020 16:26:02 GMT)
Full text and
rfc822 format available.
Message #34 received at 42069 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Vinicius Monego <monego <at> posteo.net> writes:
> * gnu/packages/python-check.scm (python-pytest-arraydiff): New variable.
Applied, thanks!
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#42069
; Package
guix-patches
.
(Sat, 25 Jul 2020 16:30:02 GMT)
Full text and
rfc822 format available.
Message #37 received at 42069 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Vinicius Monego <monego <at> posteo.net> writes:
> * gnu/packages/python-check.scm (python-pytest-remotedata): New variable.
[...]
> +(define-public python-pytest-remotedata
> + (package
> + (name "python-pytest-remotedata")
> + (version "0.3.2")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (pypi-uri "pytest-remotedata" version))
> + (sha256
> + (base32 "1h6g6shib6z07azf12rnsa053470ggbd7hy3bnbw8nf3nza5h372"))))
> + (build-system python-build-system)
> + (arguments
> + '(#:phases
> + (modify-phases %standard-phases
> + (replace 'check
> + (lambda* (#:key inputs outputs #:allow-other-keys)
> + ;; Make ;TODO: he installed plugin discoverable by Pytest.
I removed the stray TODO and committed. Thanks!
[signature.asc (application/pgp-signature, inline)]
Reply sent
to
Marius Bakke <marius <at> gnu.org>
:
You have taken responsibility.
(Sat, 25 Jul 2020 16:30:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Vinicius Monego <monego <at> posteo.net>
:
bug acknowledged by developer.
(Sat, 25 Jul 2020 16:30:03 GMT)
Full text and
rfc822 format available.
Message #42 received at 42069-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Brett Gilio <brettg <at> gnu.org> writes:
> merge 42069 42070 42071 42072 42073 42074
Applied the whole series, thank you Vinicius!
[signature.asc (application/pgp-signature, inline)]
Reply sent
to
Marius Bakke <marius <at> gnu.org>
:
You have taken responsibility.
(Sat, 25 Jul 2020 16:30:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Vinicius Monego <monego <at> posteo.net>
:
bug acknowledged by developer.
(Sat, 25 Jul 2020 16:30:03 GMT)
Full text and
rfc822 format available.
Reply sent
to
Marius Bakke <marius <at> gnu.org>
:
You have taken responsibility.
(Sat, 25 Jul 2020 16:30:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Vinicius Monego <monego <at> posteo.net>
:
bug acknowledged by developer.
(Sat, 25 Jul 2020 16:30:04 GMT)
Full text and
rfc822 format available.
Reply sent
to
Marius Bakke <marius <at> gnu.org>
:
You have taken responsibility.
(Sat, 25 Jul 2020 16:30:04 GMT)
Full text and
rfc822 format available.
Notification sent
to
Vinicius Monego <monego <at> posteo.net>
:
bug acknowledged by developer.
(Sat, 25 Jul 2020 16:30:04 GMT)
Full text and
rfc822 format available.
Reply sent
to
Marius Bakke <marius <at> gnu.org>
:
You have taken responsibility.
(Sat, 25 Jul 2020 16:30:04 GMT)
Full text and
rfc822 format available.
Notification sent
to
Vinicius Monego <monego <at> posteo.net>
:
bug acknowledged by developer.
(Sat, 25 Jul 2020 16:30:04 GMT)
Full text and
rfc822 format available.
Reply sent
to
Marius Bakke <marius <at> gnu.org>
:
You have taken responsibility.
(Sat, 25 Jul 2020 16:30:04 GMT)
Full text and
rfc822 format available.
Notification sent
to
Vinicius Monego <monego <at> posteo.net>
:
bug acknowledged by developer.
(Sat, 25 Jul 2020 16:30:04 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 23 Aug 2020 11:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 217 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.