guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

27/104: gnu: python-pytest-cov: Use upstream options for testing.


From: Hartmut Goebel
Subject: 27/104: gnu: python-pytest-cov: Use upstream options for testing.
Date: Tue, 15 Nov 2016 21:37:01 +0000 (UTC)

htgoebel pushed a commit to branch python-build-system
in repository guix.

commit ce40b3839535c4858bec61ac23a557fca4c79cc0
Author: Hartmut Goebel <address@hidden>
Date:   Sun Oct 2 23:15:14 2016 +0200

    gnu: python-pytest-cov: Use upstream options for testing.
    
    * gnu/packages/python.scm (python-pytest-cov): Replace phase "check"
      by one passing the options found in upstream's tox.ini-file
      to "python setup.py check".
---
 gnu/packages/python.scm |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 2f7ae95..b0c1411 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1662,6 +1662,16 @@ and many external plugins.")
          (base32
           "1yl4nbhzfgsxqlsyk4clafgp9x11zvgrkprm9i2p3fgkwx9jxcm8"))))
     (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+          (lambda _
+            ;; options taken from tox.ini
+            ;; TODO: make "--restructuredtext" tests pass. They currently fail
+            ;; with "Duplicate implicit target name"
+            (zero? (system* "python" "./setup.py" "check"
+                            "--strict" "--metadata")))))))
     (propagated-inputs
      `(("python-coverage" ,python-coverage)
        ("python-pytest" ,python-pytest)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]