unofficial mirror of guix-patches@gnu.org 
 help / color / 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
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ 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	[flat|nested] 6+ 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
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ 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	[flat|nested] 6+ 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
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ 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	[flat|nested] 6+ 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
  2020-06-26 22:15 ` [bug#42074] [PATCH 6/6] gnu: Add python-pytest-mpl Vinicius Monego
  4 siblings, 0 replies; 6+ 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	[flat|nested] 6+ 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
  4 siblings, 0 replies; 6+ 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	[flat|nested] 6+ 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
  4 siblings, 0 replies; 6+ 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	[flat|nested] 6+ messages in thread

end of thread, back to index

Thread overview: 6+ 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

unofficial mirror of guix-patches@gnu.org 

Archives are clonable:
	git clone --mirror https://yhetil.org/guix-patches/1 guix-patches/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-patches guix-patches/ https://yhetil.org/guix-patches \
		guix-patches@gnu.org
	public-inbox-index guix-patches

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.patches


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git