all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#42069] [PATCH 1/6] gnu: Add python-pytest-arraydiff.
@ 2020-06-26 22:15 Vinicius Monego
  2020-06-26 22:15 ` [bug#42071] [PATCH 2/6] gnu: Add python-pytest-doctestplus Vinicius Monego
                   ` (7 more replies)
  0 siblings, 8 replies; 17+ messages in thread
From: Vinicius Monego @ 2020-06-26 22:15 UTC (permalink / raw)
  To: 42069; +Cc: Vinicius Monego

* 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





^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [bug#42071] [PATCH 2/6] gnu: Add python-pytest-doctestplus.
  2020-06-26 22:15 [bug#42069] [PATCH 1/6] gnu: Add python-pytest-arraydiff Vinicius Monego
@ 2020-06-26 22:15 ` Vinicius Monego
  2020-06-26 22:15 ` [bug#42070] [PATCH 3/6] gnu: Add python-pytest-filter-subpackage Vinicius Monego
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 17+ messages in thread
From: Vinicius Monego @ 2020-06-26 22:15 UTC (permalink / raw)
  To: 42071; +Cc: Vinicius Monego

* gnu/packages/check.scm (python-pytest-doctestplus): New variable.
---
 gnu/packages/check.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index ccf74cfb46..6b682d18a2 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1196,6 +1196,34 @@ subprocess and see the output as well as any file modifications.")
 (define-public python2-testtools-bootstrap
   (package-with-python2 python-testtools-bootstrap))
 
+(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"))))))
+    (propagated-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-testtools
   (package
     (inherit python-testtools-bootstrap)
-- 
2.20.1





^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [bug#42070] [PATCH 3/6] gnu: Add python-pytest-filter-subpackage.
  2020-06-26 22:15 [bug#42069] [PATCH 1/6] gnu: Add python-pytest-arraydiff Vinicius Monego
  2020-06-26 22:15 ` [bug#42071] [PATCH 2/6] gnu: Add python-pytest-doctestplus Vinicius Monego
@ 2020-06-26 22:15 ` Vinicius Monego
  2020-06-26 22:15 ` [bug#42072] [PATCH 4/6] gnu: Add python-pytest-openfiles Vinicius Monego
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 17+ messages in thread
From: Vinicius Monego @ 2020-06-26 22:15 UTC (permalink / raw)
  To: 42070; +Cc: Vinicius Monego

* gnu/packages/check.scm (python-pytest-filter-subpackage): New variable.
---
 gnu/packages/check.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 6b682d18a2..d3ea6e31d6 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1538,6 +1538,43 @@ testing tools.  @code{pytest-asyncio} provides useful fixtures and markers
 to make testing async code easier.")
     (license license:asl2.0)))
 
+(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)))
+    (propagated-inputs
+     `(("python-pytest" ,python-pytest)))
+    (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-cov-core
   (package
     (name "python-cov-core")
-- 
2.20.1





^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [bug#42072] [PATCH 4/6] gnu: Add python-pytest-openfiles.
  2020-06-26 22:15 [bug#42069] [PATCH 1/6] gnu: Add python-pytest-arraydiff Vinicius Monego
  2020-06-26 22:15 ` [bug#42071] [PATCH 2/6] gnu: Add python-pytest-doctestplus Vinicius Monego
  2020-06-26 22:15 ` [bug#42070] [PATCH 3/6] gnu: Add python-pytest-filter-subpackage Vinicius Monego
@ 2020-06-26 22:15 ` Vinicius Monego
  2020-06-26 22:15 ` [bug#42073] [PATCH 5/6] gnu: Add python-pytest-remotedata Vinicius Monego
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 17+ messages in thread
From: Vinicius Monego @ 2020-06-26 22:15 UTC (permalink / raw)
  To: 42072; +Cc: Vinicius Monego

* gnu/packages/check.scm (python-pytest-openfiles): New variable.
---
 gnu/packages/check.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index d3ea6e31d6..136bdcc6d2 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -730,6 +730,38 @@ interfaces and processes.")
 (define-public python2-nose2
   (package-with-python2 python-nose2))
 
+(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)))
+    (propagated-inputs
+     `(("python-psutil" ,python-psutil)
+       ("python-pytest" ,python-pytest)))
+    (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-unittest2
   (package
     (name "python-unittest2")
-- 
2.20.1





^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [bug#42073] [PATCH 5/6] gnu: Add python-pytest-remotedata.
  2020-06-26 22:15 [bug#42069] [PATCH 1/6] gnu: Add python-pytest-arraydiff Vinicius Monego
                   ` (2 preceding siblings ...)
  2020-06-26 22:15 ` [bug#42072] [PATCH 4/6] gnu: Add python-pytest-openfiles Vinicius Monego
@ 2020-06-26 22:15 ` Vinicius Monego
  2020-06-26 22:15 ` [bug#42074] [PATCH 6/6] gnu: Add python-pytest-mpl Vinicius Monego
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 17+ messages in thread
From: Vinicius Monego @ 2020-06-26 22:15 UTC (permalink / raw)
  To: 42073; +Cc: Vinicius Monego

* gnu/packages/check.scm (python-pytest-remotedata): New variable.
---
 gnu/packages/check.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 136bdcc6d2..5ed5675998 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -2199,6 +2199,40 @@ pytest report.")
 (define-public python2-pytest-capturelog
   (package-with-python2 python-pytest-capturelog))
 
+(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 the 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")))))))
+    (propagated-inputs
+     `(("python-pytest" ,python-pytest)
+       ("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-catchlog
   (package
     (name "python-pytest-catchlog")
-- 
2.20.1





^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [bug#42074] [PATCH 6/6] gnu: Add python-pytest-mpl.
  2020-06-26 22:15 [bug#42069] [PATCH 1/6] gnu: Add python-pytest-arraydiff Vinicius Monego
                   ` (3 preceding siblings ...)
  2020-06-26 22:15 ` [bug#42073] [PATCH 5/6] gnu: Add python-pytest-remotedata Vinicius Monego
@ 2020-06-26 22:15 ` Vinicius Monego
  2020-07-07 12:30 ` [bug#42069] [PATCH 1/6] gnu: Add python-pytest-arraydiff Nicolas Goaziou
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 17+ messages in thread
From: Vinicius Monego @ 2020-06-26 22:15 UTC (permalink / raw)
  To: 42074; +Cc: Vinicius Monego

* gnu/packages/check.scm (python-pytest-mpl): New variable.
---
 gnu/packages/check.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 5ed5675998..b49fd9e162 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -2776,6 +2776,35 @@ loaded.")
 grew out of the @dfn{Vc} project.")
       (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"))))))
+    (propagated-inputs
+     `(("python-matplotlib" ,python-matplotlib)
+       ("python-nose" ,python-nose)
+       ("python-pillow" ,python-pillow)
+       ("python-pytest" ,python-pytest)))
+    (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-pyfakefs
   (package
     (name "python-pyfakefs")
-- 
2.20.1





^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [bug#42069] [PATCH 1/6] gnu: Add python-pytest-arraydiff.
  2020-06-26 22:15 [bug#42069] [PATCH 1/6] gnu: Add python-pytest-arraydiff Vinicius Monego
                   ` (4 preceding siblings ...)
  2020-06-26 22:15 ` [bug#42074] [PATCH 6/6] gnu: Add python-pytest-mpl Vinicius Monego
@ 2020-07-07 12:30 ` Nicolas Goaziou
  2020-07-23 18:23 ` [bug#42069] [PATCH v2 " Vinicius Monego
  2020-07-25  2:20 ` [bug#42069] [PATCH " Brett Gilio
  7 siblings, 0 replies; 17+ messages in thread
From: Nicolas Goaziou @ 2020-07-07 12:30 UTC (permalink / raw)
  To: Vinicius Monego; +Cc: 42069

Hello,

Vinicius Monego <monego@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




^ permalink raw reply	[flat|nested] 17+ messages in thread

* [bug#42069] [PATCH v2 1/6] gnu: Add python-pytest-arraydiff.
  2020-06-26 22:15 [bug#42069] [PATCH 1/6] gnu: Add python-pytest-arraydiff Vinicius Monego
                   ` (5 preceding siblings ...)
  2020-07-07 12:30 ` [bug#42069] [PATCH 1/6] gnu: Add python-pytest-arraydiff Nicolas Goaziou
@ 2020-07-23 18:23 ` Vinicius Monego
  2020-07-23 18:23   ` [bug#42069] [PATCH v2 2/6] gnu: Add python-pytest-doctestplus Vinicius Monego
                     ` (5 more replies)
  2020-07-25  2:20 ` [bug#42069] [PATCH " Brett Gilio
  7 siblings, 6 replies; 17+ messages in thread
From: Vinicius Monego @ 2020-07-23 18:23 UTC (permalink / raw)
  To: 42069; +Cc: Vinicius Monego

* 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@lepiller.eu>
 ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
 ;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com>
+;;; Copyright © 2020 Vinicius Monego <monego@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





^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [bug#42069] [PATCH v2 2/6] gnu: Add python-pytest-doctestplus.
  2020-07-23 18:23 ` [bug#42069] [PATCH v2 " Vinicius Monego
@ 2020-07-23 18:23   ` Vinicius Monego
  2020-07-23 18:23   ` [bug#42069] [PATCH v2 3/6] gnu: Add python-pytest-filter-subpackage Vinicius Monego
                     ` (4 subsequent siblings)
  5 siblings, 0 replies; 17+ messages in thread
From: Vinicius Monego @ 2020-07-23 18:23 UTC (permalink / raw)
  To: 42069; +Cc: Vinicius Monego

* 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





^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [bug#42069] [PATCH v2 3/6] gnu: Add python-pytest-filter-subpackage.
  2020-07-23 18:23 ` [bug#42069] [PATCH v2 " Vinicius Monego
  2020-07-23 18:23   ` [bug#42069] [PATCH v2 2/6] gnu: Add python-pytest-doctestplus Vinicius Monego
@ 2020-07-23 18:23   ` Vinicius Monego
  2020-07-23 18:23   ` [bug#42069] [PATCH v2 4/6] gnu: Add python-pytest-openfiles Vinicius Monego
                     ` (3 subsequent siblings)
  5 siblings, 0 replies; 17+ messages in thread
From: Vinicius Monego @ 2020-07-23 18:23 UTC (permalink / raw)
  To: 42069; +Cc: Vinicius Monego

* 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





^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [bug#42069] [PATCH v2 4/6] gnu: Add python-pytest-openfiles.
  2020-07-23 18:23 ` [bug#42069] [PATCH v2 " Vinicius Monego
  2020-07-23 18:23   ` [bug#42069] [PATCH v2 2/6] gnu: Add python-pytest-doctestplus Vinicius Monego
  2020-07-23 18:23   ` [bug#42069] [PATCH v2 3/6] gnu: Add python-pytest-filter-subpackage Vinicius Monego
@ 2020-07-23 18:23   ` Vinicius Monego
  2020-07-23 18:23   ` [bug#42069] [PATCH v2 5/6] gnu: Add python-pytest-remotedata Vinicius Monego
                     ` (2 subsequent siblings)
  5 siblings, 0 replies; 17+ messages in thread
From: Vinicius Monego @ 2020-07-23 18:23 UTC (permalink / raw)
  To: 42069; +Cc: Vinicius Monego

* 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





^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [bug#42069] [PATCH v2 5/6] gnu: Add python-pytest-remotedata.
  2020-07-23 18:23 ` [bug#42069] [PATCH v2 " Vinicius Monego
                     ` (2 preceding siblings ...)
  2020-07-23 18:23   ` [bug#42069] [PATCH v2 4/6] gnu: Add python-pytest-openfiles Vinicius Monego
@ 2020-07-23 18:23   ` Vinicius Monego
  2020-07-25 16:29     ` Marius Bakke
  2020-07-23 18:23   ` [bug#42069] [PATCH v2 6/6] gnu: Add python-pytest-mpl Vinicius Monego
  2020-07-25 16:24   ` [bug#42069] [PATCH v2 1/6] gnu: Add python-pytest-arraydiff Marius Bakke
  5 siblings, 1 reply; 17+ messages in thread
From: Vinicius Monego @ 2020-07-23 18:23 UTC (permalink / raw)
  To: 42069; +Cc: Vinicius Monego

* 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





^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [bug#42069] [PATCH v2 6/6] gnu: Add python-pytest-mpl.
  2020-07-23 18:23 ` [bug#42069] [PATCH v2 " Vinicius Monego
                     ` (3 preceding siblings ...)
  2020-07-23 18:23   ` [bug#42069] [PATCH v2 5/6] gnu: Add python-pytest-remotedata Vinicius Monego
@ 2020-07-23 18:23   ` Vinicius Monego
  2020-07-25 16:24   ` [bug#42069] [PATCH v2 1/6] gnu: Add python-pytest-arraydiff Marius Bakke
  5 siblings, 0 replies; 17+ messages in thread
From: Vinicius Monego @ 2020-07-23 18:23 UTC (permalink / raw)
  To: 42069; +Cc: Vinicius Monego

* 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





^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [bug#42069] [PATCH 1/6] gnu: Add python-pytest-arraydiff.
  2020-06-26 22:15 [bug#42069] [PATCH 1/6] gnu: Add python-pytest-arraydiff Vinicius Monego
                   ` (6 preceding siblings ...)
  2020-07-23 18:23 ` [bug#42069] [PATCH v2 " Vinicius Monego
@ 2020-07-25  2:20 ` Brett Gilio
  2020-07-25 16:29   ` bug#42069: " Marius Bakke
  7 siblings, 1 reply; 17+ messages in thread
From: Brett Gilio @ 2020-07-25  2:20 UTC (permalink / raw)
  To: Vinicius Monego; +Cc: control, 42069

merge 42069 42070 42071 42072 42073 42074




^ permalink raw reply	[flat|nested] 17+ messages in thread

* [bug#42069] [PATCH v2 1/6] gnu: Add python-pytest-arraydiff.
  2020-07-23 18:23 ` [bug#42069] [PATCH v2 " Vinicius Monego
                     ` (4 preceding siblings ...)
  2020-07-23 18:23   ` [bug#42069] [PATCH v2 6/6] gnu: Add python-pytest-mpl Vinicius Monego
@ 2020-07-25 16:24   ` Marius Bakke
  5 siblings, 0 replies; 17+ messages in thread
From: Marius Bakke @ 2020-07-25 16:24 UTC (permalink / raw)
  To: Vinicius Monego, 42069; +Cc: Vinicius Monego

[-- Attachment #1: Type: text/plain, Size: 138 bytes --]

Vinicius Monego <monego@posteo.net> writes:

> * gnu/packages/python-check.scm (python-pytest-arraydiff): New variable.

Applied, thanks!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [bug#42069] [PATCH v2 5/6] gnu: Add python-pytest-remotedata.
  2020-07-23 18:23   ` [bug#42069] [PATCH v2 5/6] gnu: Add python-pytest-remotedata Vinicius Monego
@ 2020-07-25 16:29     ` Marius Bakke
  0 siblings, 0 replies; 17+ messages in thread
From: Marius Bakke @ 2020-07-25 16:29 UTC (permalink / raw)
  To: Vinicius Monego, 42069; +Cc: Vinicius Monego

[-- Attachment #1: Type: text/plain, Size: 829 bytes --]

Vinicius Monego <monego@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!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* bug#42069: [PATCH 1/6] gnu: Add python-pytest-arraydiff.
  2020-07-25  2:20 ` [bug#42069] [PATCH " Brett Gilio
@ 2020-07-25 16:29   ` Marius Bakke
  0 siblings, 0 replies; 17+ messages in thread
From: Marius Bakke @ 2020-07-25 16:29 UTC (permalink / raw)
  To: Brett Gilio, Vinicius Monego; +Cc: 42069-done

[-- Attachment #1: Type: text/plain, Size: 129 bytes --]

Brett Gilio <brettg@gnu.org> writes:

> merge 42069 42070 42071 42072 42073 42074

Applied the whole series, thank you Vinicius!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2020-07-25 16:30 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-26 22:15 [bug#42069] [PATCH 1/6] gnu: Add python-pytest-arraydiff Vinicius Monego
2020-06-26 22:15 ` [bug#42071] [PATCH 2/6] gnu: Add python-pytest-doctestplus Vinicius Monego
2020-06-26 22:15 ` [bug#42070] [PATCH 3/6] gnu: Add python-pytest-filter-subpackage Vinicius Monego
2020-06-26 22:15 ` [bug#42072] [PATCH 4/6] gnu: Add python-pytest-openfiles Vinicius Monego
2020-06-26 22:15 ` [bug#42073] [PATCH 5/6] gnu: Add python-pytest-remotedata Vinicius Monego
2020-06-26 22:15 ` [bug#42074] [PATCH 6/6] gnu: Add python-pytest-mpl Vinicius Monego
2020-07-07 12:30 ` [bug#42069] [PATCH 1/6] gnu: Add python-pytest-arraydiff Nicolas Goaziou
2020-07-23 18:23 ` [bug#42069] [PATCH v2 " Vinicius Monego
2020-07-23 18:23   ` [bug#42069] [PATCH v2 2/6] gnu: Add python-pytest-doctestplus Vinicius Monego
2020-07-23 18:23   ` [bug#42069] [PATCH v2 3/6] gnu: Add python-pytest-filter-subpackage Vinicius Monego
2020-07-23 18:23   ` [bug#42069] [PATCH v2 4/6] gnu: Add python-pytest-openfiles Vinicius Monego
2020-07-23 18:23   ` [bug#42069] [PATCH v2 5/6] gnu: Add python-pytest-remotedata Vinicius Monego
2020-07-25 16:29     ` Marius Bakke
2020-07-23 18:23   ` [bug#42069] [PATCH v2 6/6] gnu: Add python-pytest-mpl Vinicius Monego
2020-07-25 16:24   ` [bug#42069] [PATCH v2 1/6] gnu: Add python-pytest-arraydiff Marius Bakke
2020-07-25  2:20 ` [bug#42069] [PATCH " Brett Gilio
2020-07-25 16:29   ` bug#42069: " Marius Bakke

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.