unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 01/20] gnu: Add python-radon
@ 2017-04-14 10:13 Muriithi Frederick Muriuki
  2017-04-14 10:13 ` [PATCH 02/20] gnu: Add python-httpbin Muriithi Frederick Muriuki
                   ` (21 more replies)
  0 siblings, 22 replies; 30+ messages in thread
From: Muriithi Frederick Muriuki @ 2017-04-14 10:13 UTC (permalink / raw)
  To: guix-devel; +Cc: pjotr2017

* gnu/packages/python.scm (python-radon): New variable.
---
 gnu/packages/python.scm | 40 +++++++++++++++++++++++++++++++++++++++-
 1 file changed, 39 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 231c629..23b6d86 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -13950,7 +13950,7 @@ recognize TestCases.")
   (package-with-python2 python-mando))
 
 (define-public python-mando-0.3.1
-  ;; python-radon (version 1.5.0) has a requirement
+  ;; python-radon has a requirement
   ;; for mando<0.4,>=0.3
   (package
     (inherit python-mando)
@@ -13965,3 +13965,41 @@ recognize TestCases.")
        (sha256
         (base32
          "17jlkdpqw22z1nyml5ybslilqkzmnk0dxxjml8bfghav1l5hbwd2"))))))
+
+(define-public python-radon
+  ;; xenon has a hard requirement for radon>=1.4.0,<1.5
+  (package
+    (name "python-radon")
+    (version "1.4.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "radon" version))
+       (sha256
+        (base32
+         "15xyzavfj1zwb5rn07fs2wfi6ccys9b5q0s8hmnpqz712mifl92g"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-colorama" ,python-colorama)
+       ("python-flake8-polyfill"
+        ,python-flake8-polyfill)
+       ("python-mando" ,python-mando-0.3.1)))
+    (native-inputs
+     `(("python-flake8" ,python-flake8)
+       ("python-tox" ,python-tox)
+       ("python-pytest" ,python-pytest)
+       ("python-paramunittest" ,python-paramunittest)))
+    (home-page "https://radon.readthedocs.org/")
+    (synopsis "Code Metrics in Python")
+    (description "Radon is a Python tool which computes various code metrics.  Supported
+ metrics are:
+@itemize @bullet
+@item raw metrics: SLOC, comment lines, blank lines, &c.
+@item Cyclomatic Complexity (i.e.  McCabe’s Complexity)
+@item Halstead metrics (all of them)
+@item the Maintainability Index (a Visual Studio metric)
+@end itemize")
+    (license license:expat)))
+
+(define-public python2-radon
+  (package-with-python2 python-radon))
-- 
2.10.2

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

* [PATCH 02/20] gnu: Add python-httpbin
  2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
@ 2017-04-14 10:13 ` Muriithi Frederick Muriuki
  2017-04-14 10:13 ` [PATCH 03/20] gnu: Add python-pytest-httpbin Muriithi Frederick Muriuki
                   ` (20 subsequent siblings)
  21 siblings, 0 replies; 30+ messages in thread
From: Muriithi Frederick Muriuki @ 2017-04-14 10:13 UTC (permalink / raw)
  To: guix-devel; +Cc: pjotr2017

* gnu/packages/python.scm (python-httpbin): New variable.
---
 gnu/packages/python.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 23b6d86..618b965 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14003,3 +14003,30 @@ recognize TestCases.")
 
 (define-public python2-radon
   (package-with-python2 python-radon))
+
+(define-public python-httpbin
+  (package
+    (name "python-httpbin")
+    (version "0.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "httpbin" version))
+       (sha256
+        (base32
+         "1dc92lnk846hpilslrqnr63x55cxll4qx88gif8fm521gv9cbyvr"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-decorator" ,python-decorator)
+       ("python-flask" ,python-flask)
+       ("python-itsdangerous" ,python-itsdangerous)
+       ("python-markupsafe" ,python-markupsafe)
+       ("python-six" ,python-six)))
+    (home-page "https://github.com/Runscope/httpbin")
+    (synopsis "HTTP Request and Response Service")
+    (description "HTTP Request and Response Service which covers all kinds of HTTP
+scenarios")
+    (license license:expat)))
+
+(define-public python2-httpbin
+  (package-with-python2 python-httpbin))
-- 
2.10.2

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

* [PATCH 03/20] gnu: Add python-pytest-httpbin
  2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
  2017-04-14 10:13 ` [PATCH 02/20] gnu: Add python-httpbin Muriithi Frederick Muriuki
@ 2017-04-14 10:13 ` Muriithi Frederick Muriuki
  2017-04-14 10:13 ` [PATCH 04/20] gnu: Add python-sphinx-rtd-theme-0.1.9 Muriithi Frederick Muriuki
                   ` (19 subsequent siblings)
  21 siblings, 0 replies; 30+ messages in thread
From: Muriithi Frederick Muriuki @ 2017-04-14 10:13 UTC (permalink / raw)
  To: guix-devel; +Cc: pjotr2017

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

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 618b965..73d217b 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14030,3 +14030,31 @@ scenarios")
 
 (define-public python2-httpbin
   (package-with-python2 python-httpbin))
+
+(define-public python-pytest-httpbin
+  ;; httpretty requires pytest-httpbin==0.0.7
+  (package
+    (name "python-pytest-httpbin")
+    (version "0.0.7")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pytest-httpbin" version))
+       (sha256
+        (base32
+         "08ghq923dn33rllip3vap2p9fb680g0i96jdn5lcpfy8amq8mbq3"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-six" ,python-six)
+       ("python-httpbin" ,python-httpbin)
+       ("python-pytest" ,python-pytest)))
+    (home-page
+     "https://github.com/kevin1024/pytest-httpbin")
+    (synopsis
+     "Easily test your HTTP library against a local copy of httpbin")
+    (description
+     "Easily test your HTTP library against a local copy of httpbin")
+    (license license:expat)))
+
+(define-public python2-pytest-httpbin
+  (package-with-python2 python-pytest-httpbin))
-- 
2.10.2

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

* [PATCH 04/20] gnu: Add python-sphinx-rtd-theme-0.1.9
  2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
  2017-04-14 10:13 ` [PATCH 02/20] gnu: Add python-httpbin Muriithi Frederick Muriuki
  2017-04-14 10:13 ` [PATCH 03/20] gnu: Add python-pytest-httpbin Muriithi Frederick Muriuki
@ 2017-04-14 10:13 ` Muriithi Frederick Muriuki
  2017-04-14 10:13 ` [PATCH 05/20] gnu: Add python-sphinx-1.3.3 Muriithi Frederick Muriuki
                   ` (18 subsequent siblings)
  21 siblings, 0 replies; 30+ messages in thread
From: Muriithi Frederick Muriuki @ 2017-04-14 10:13 UTC (permalink / raw)
  To: guix-devel; +Cc: pjotr2017

* gnu/packages/python.scm (python-sphinx-rtd-theme-0.1.9) New variable
---
 gnu/packages/python.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 73d217b..631b6fd 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14058,3 +14058,24 @@ scenarios")
 
 (define-public python2-pytest-httpbin
   (package-with-python2 python-pytest-httpbin))
+
+(define-public python-sphinx-rtd-theme-0.1.9
+  ;; python-httpretty has a hard requirement for
+  ;; python-sphinx-rtd-theme version 0.1.9
+  (package
+    (inherit python-sphinx-rtd-theme)
+    (name "python-sphinx-rtd-theme")
+    (version "0.1.9")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "sphinx_rtd_theme" version))
+       (sha256
+        (base32
+         "18d0r63w7jpdrk4q5qy26n08vdlmnj9sar93akwjphyambw4cf17"))))
+    (propagated-inputs
+     `(("python-sphinx" ,python-sphinx-1.5.3)
+       ("python-snowballstemmer" ,python-snowballstemmer)))))
+
+(define-public python2-sphinx-rtd-theme-0.1.9
+  (package-with-python2 python-sphinx-rtd-theme-0.1.9))
-- 
2.10.2

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

* [PATCH 05/20] gnu: Add python-sphinx-1.3.3
  2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
                   ` (2 preceding siblings ...)
  2017-04-14 10:13 ` [PATCH 04/20] gnu: Add python-sphinx-rtd-theme-0.1.9 Muriithi Frederick Muriuki
@ 2017-04-14 10:13 ` Muriithi Frederick Muriuki
  2017-04-15 17:28   ` Hartmut Goebel
  2017-04-14 10:13 ` [PATCH 06/20] gnu: Add python-coverage-4.0.3 Muriithi Frederick Muriuki
                   ` (17 subsequent siblings)
  21 siblings, 1 reply; 30+ messages in thread
From: Muriithi Frederick Muriuki @ 2017-04-14 10:13 UTC (permalink / raw)
  To: guix-devel; +Cc: pjotr2017

* gnu/packages/python.scm (python-sphinx-1.3.3): New variable.
---
 gnu/packages/python.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 631b6fd..a849e70 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14079,3 +14079,40 @@ scenarios")
 
 (define-public python2-sphinx-rtd-theme-0.1.9
   (package-with-python2 python-sphinx-rtd-theme-0.1.9))
+
+(define-public python-sphinx-1.3.3
+  ;; python-httpretty has a hard requirement for
+  ;; sphinx == 1.3.3
+  (package
+    (inherit python-sphinx)
+    (name "python-sphinx")
+    (version "1.3.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "Sphinx" version))
+       (sha256
+        (base32
+         "1n3h08qxfx9bywv7nhjz0p5bpp1xgy4nzalxr3mx6syra7rvyxs0"))))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+                  (lambda _
+                    ;; Requires Internet access.
+                    (delete-file "tests/test_build.py")
+                    (delete-file "tests/test_build_applehelp.py")
+                    (delete-file "tests/test_i18n.py")
+                    (delete-file "tests/test_build_html.py")
+                    (delete-file "tests/test_build_texinfo.py")
+                    (delete-file "tests/test_build_latex.py")
+                    (zero? (system* "make" "test")))))))
+    (native-inputs
+     `(("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
+       ("python-nose" ,python-nose)
+       ("graphviz" ,graphviz)
+       ("python-html5lib" ,python-html5lib)
+       ("python-mock" ,python-mock)))))
+
+(define-public python2-sphinx-1.3.3
+  (package-with-python2 python-sphinx-1.3.3))
-- 
2.10.2

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

* [PATCH 06/20] gnu: Add python-coverage-4.0.3
  2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
                   ` (3 preceding siblings ...)
  2017-04-14 10:13 ` [PATCH 05/20] gnu: Add python-sphinx-1.3.3 Muriithi Frederick Muriuki
@ 2017-04-14 10:13 ` Muriithi Frederick Muriuki
  2017-04-15 17:29   ` Hartmut Goebel
  2017-04-14 10:13 ` [PATCH 07/20] gnu: Add python-urllib3-1.12 Muriithi Frederick Muriuki
                   ` (16 subsequent siblings)
  21 siblings, 1 reply; 30+ messages in thread
From: Muriithi Frederick Muriuki @ 2017-04-14 10:13 UTC (permalink / raw)
  To: guix-devel; +Cc: pjotr2017

* gnu/packages/python.scm (python-coverage-4.0.3): New variable.
---
 gnu/packages/python.scm | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index a849e70..1ec1744 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14116,3 +14116,20 @@ scenarios")
 
 (define-public python2-sphinx-1.3.3
   (package-with-python2 python-sphinx-1.3.3))
+
+(define-public python-coverage-4.0.3
+  ;; httpretty has a hard requirement for coverage==4.0.3
+  (package
+    (inherit python-coverage)
+    (name "python-coverage")
+    (version "4.0.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "coverage" version))
+       (sha256
+        (base32
+         "0qjlja8ny4gcfp8abqfwdrvr8qw9kr69lkja0b4cqqbsdmdjgcc5"))))))
+
+(define-public python2-coverage-4.0.3
+  (package-with-python2 python-coverage-4.0.3))
-- 
2.10.2

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

* [PATCH 07/20] gnu: Add python-urllib3-1.12
  2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
                   ` (4 preceding siblings ...)
  2017-04-14 10:13 ` [PATCH 06/20] gnu: Add python-coverage-4.0.3 Muriithi Frederick Muriuki
@ 2017-04-14 10:13 ` Muriithi Frederick Muriuki
  2017-04-14 10:13 ` [PATCH 08/20] gnu: Add python-sure Muriithi Frederick Muriuki
                   ` (15 subsequent siblings)
  21 siblings, 0 replies; 30+ messages in thread
From: Muriithi Frederick Muriuki @ 2017-04-14 10:13 UTC (permalink / raw)
  To: guix-devel; +Cc: pjotr2017

* gnu/packages/python.scm (python-urllib3-1.12): New variable.
---
 gnu/packages/python.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 1ec1744..9cb27d8 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14133,3 +14133,19 @@ scenarios")
 
 (define-public python2-coverage-4.0.3
   (package-with-python2 python-coverage-4.0.3))
+
+(define-public python-urllib3-1.12
+  (package
+    (inherit python-urllib3)
+    (name "python-urllib3")
+    (version "1.12")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "urllib3" version))
+       (sha256
+        (base32
+         "1ikj72kd4cdcq7pmmcd5p6s9dvp7wi0zw01635v4xzkid5vi598f"))))))
+
+(define-public python2-urllib3-1.12
+  (package-with-python2 python-urllib3-1.12))
-- 
2.10.2

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

* [PATCH 08/20] gnu: Add python-sure
  2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
                   ` (5 preceding siblings ...)
  2017-04-14 10:13 ` [PATCH 07/20] gnu: Add python-urllib3-1.12 Muriithi Frederick Muriuki
@ 2017-04-14 10:13 ` Muriithi Frederick Muriuki
  2017-04-14 10:13 ` [PATCH 09/20] gnu: Add python-couleur Muriithi Frederick Muriuki
                   ` (14 subsequent siblings)
  21 siblings, 0 replies; 30+ messages in thread
From: Muriithi Frederick Muriuki @ 2017-04-14 10:13 UTC (permalink / raw)
  To: guix-devel; +Cc: pjotr2017

* gnu/package/python.scm (python-sure): New variable.
---
 gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 9cb27d8..951b7c7 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14149,3 +14149,33 @@ scenarios")
 
 (define-public python2-urllib3-1.12
   (package-with-python2 python-urllib3-1.12))
+
+(define-public python-sure
+  (package
+    ;; httpretty has a hard requirement for sure==1.2.24
+    (name "python-sure")
+    (version "1.2.24")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "sure" version))
+       (sha256
+        (base32
+         "1lyjq0rvkbv585dppjdq90lbkm6gyvag3wgrggjzyh7cpyh5c12w"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-mock" ,python-mock)
+       ("python-six" ,python-six)))
+    (native-inputs
+     `(("python-nose" ,python-nose)))
+    (home-page
+     "http://github.com/gabrielfalcao/sure")
+    (synopsis
+     "Sure is an automated testing library in python for python")
+    (description
+     "Sure is a python library for python that leverages a DSL for writing assertions.
+Sure is heavily inspired by @code{RSpec Expectations} and @code{should.js}")
+    (license license:gpl3)))
+
+(define-public python2-sure
+  (package-with-python2 python-sure))
-- 
2.10.2

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

* [PATCH 09/20] gnu: Add python-couleur
  2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
                   ` (6 preceding siblings ...)
  2017-04-14 10:13 ` [PATCH 08/20] gnu: Add python-sure Muriithi Frederick Muriuki
@ 2017-04-14 10:13 ` Muriithi Frederick Muriuki
  2017-04-14 10:13 ` [PATCH 10/20] gnu: Add python-misaka Muriithi Frederick Muriuki
                   ` (13 subsequent siblings)
  21 siblings, 0 replies; 30+ messages in thread
From: Muriithi Frederick Muriuki @ 2017-04-14 10:13 UTC (permalink / raw)
  To: guix-devel; +Cc: pjotr2017

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

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 951b7c7..148ed74 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14179,3 +14179,32 @@ Sure is heavily inspired by @code{RSpec Expectations} and @code{should.js}")
 
 (define-public python2-sure
   (package-with-python2 python-sure))
+
+(define-public python-couleur
+  (package
+    (name "python-couleur")
+    (version "0.6.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "couleur" version))
+       (sha256
+        (base32
+         "1qqaxyqz74wvid0cr119dhcwz0h0if5b5by44zl49pd5z65v58k1"))))
+    (build-system python-build-system)
+    (arguments
+     `(;; The package builds successfully with python3, but the
+       ;; tests are python-2 dependent, (strings of the form
+       ;; ur'val-of-str' and imports of python-2 specific
+       ;; modules)
+       #:tests? #f))
+    (home-page
+     "http://github.com/gabrielfalcao/couleur")
+    (synopsis
+     "ANSI terminal tool for python, colored shell and other handy fancy features")
+    (description
+     "Couleur is a handy tool to play around with ANSI features in a unix terminal.")
+    (license license:asl2.0)))
+
+(define-public python2-couleur
+  (package-with-python2 python-couleur))
-- 
2.10.2

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

* [PATCH 10/20] gnu: Add python-misaka
  2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
                   ` (7 preceding siblings ...)
  2017-04-14 10:13 ` [PATCH 09/20] gnu: Add python-couleur Muriithi Frederick Muriuki
@ 2017-04-14 10:13 ` Muriithi Frederick Muriuki
  2017-04-14 10:13 ` [PATCH 11/20] gnu: Add python-steadymark Muriithi Frederick Muriuki
                   ` (12 subsequent siblings)
  21 siblings, 0 replies; 30+ messages in thread
From: Muriithi Frederick Muriuki @ 2017-04-14 10:13 UTC (permalink / raw)
  To: guix-devel; +Cc: pjotr2017

* gnu/packages/python.scm (python-misaka): New variable.
---
 gnu/packages/python.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 148ed74..0e3860f 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14208,3 +14208,39 @@ Sure is heavily inspired by @code{RSpec Expectations} and @code{should.js}")
 
 (define-public python2-couleur
   (package-with-python2 python-couleur))
+
+(define-public python-misaka
+  (package
+    (name "python-misaka")
+    (version "2.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "misaka" version))
+       (sha256
+        (base32
+         "011nyw2xnwp9xzqzrp6qmqvfc5xg5165ryd9gmmh8h5q38wg2vik"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-cffi" ,python-cffi)))
+    (arguments
+     `(;; Line 37 of setup.py calls self.run_command('develop')
+       ;; in the 'check' phase. This command seems to be trying
+       ;; to write to
+       ;; /gnu/store/3aw9x...-python-3.5.3/lib/python3.5/site-packages/
+       ;; which is not the appropriate output directory, and unlike the
+       ;; install command, passing the --prefix or --install-dir
+       ;; arguments to the test command fails.
+       ;; This seems to be required by easy_install, to run the tests
+       #:tests? #f))
+    (home-page "https://github.com/FSX/misaka")
+    (synopsis
+     "Misaka is a CFFI binding for Hoedown, a markdown parsing library")
+    (description
+     "Misaka is a CFFI-based binding for Hoedown, a fast markdown processing library
+written in C.  It features a fast HTML renderer and functionality to make custom renderers
+(e.g. man pages or LaTeX).")
+    (license license:expat)))
+
+(define-public python2-misaka
+  (package-with-python2 python-misaka))
-- 
2.10.2

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

* [PATCH 11/20] gnu: Add python-steadymark
  2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
                   ` (8 preceding siblings ...)
  2017-04-14 10:13 ` [PATCH 10/20] gnu: Add python-misaka Muriithi Frederick Muriuki
@ 2017-04-14 10:13 ` Muriithi Frederick Muriuki
  2017-04-14 10:13 ` [PATCH 12/20] gnu: Add python-requests-2.8.1 Muriithi Frederick Muriuki
                   ` (11 subsequent siblings)
  21 siblings, 0 replies; 30+ messages in thread
From: Muriithi Frederick Muriuki @ 2017-04-14 10:13 UTC (permalink / raw)
  To: guix-devel; +Cc: pjotr2017

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

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 0e3860f..9bae47b 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14244,3 +14244,37 @@ written in C.  It features a fast HTML renderer and functionality to make custom
 
 (define-public python2-misaka
   (package-with-python2 python-misaka))
+
+(define-public python-steadymark
+  (package
+    (name "python-steadymark")
+    (version "0.7.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "steadymark" version))
+       (sha256
+        (base32
+         "1640i9g8dycql3cc8j0bky0jkzj0q39blfbp4lsgpkprkfgcdk8v"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-couleur" ,python-couleur)
+       ("python-sure" ,python-sure)
+       ("python-misaka" ,python-misaka)))
+    (arguments
+     `(;; These tests seem to depend on python-couleurs tests, which
+       ;; are dependent on python2-specific features, preventing those,
+       ;; and hence, these tests from running
+       #:tests? #f))
+    (home-page
+     "http://github.com/gabrielfalcao/steadymark")
+    (synopsis
+     "Markdown-based test runner for python. Good for github projects")
+    (description
+     "Steadymark allows testing of code snippets in documentation written in
+github-flavoured markdown, to ensure that the examples in the documentation are up-to-date
+and correct.")
+    (license license:expat)))
+
+(define-public python2-steadymark
+  (package-with-python2 python-steadymark))
-- 
2.10.2

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

* [PATCH 12/20] gnu: Add python-requests-2.8.1
  2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
                   ` (9 preceding siblings ...)
  2017-04-14 10:13 ` [PATCH 11/20] gnu: Add python-steadymark Muriithi Frederick Muriuki
@ 2017-04-14 10:13 ` Muriithi Frederick Muriuki
  2017-04-14 10:13 ` [PATCH 13/20] gnu: Add python-rednose-0.4.3 Muriithi Frederick Muriuki
                   ` (10 subsequent siblings)
  21 siblings, 0 replies; 30+ messages in thread
From: Muriithi Frederick Muriuki @ 2017-04-14 10:13 UTC (permalink / raw)
  To: guix-devel; +Cc: pjotr2017

* gnu/packages/python.scm (python-requests-2.8.1) New variable.
---
 gnu/packages/python.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 9bae47b..82258b5 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14278,3 +14278,19 @@ and correct.")
 
 (define-public python2-steadymark
   (package-with-python2 python-steadymark))
+
+(define-public python-requests-2.8.1
+  ;; httpretty has a hard requirement for requests==2.8.1
+  (package
+    (inherit python-requests)
+    (version "2.8.1")
+  (source
+    (origin
+      (method url-fetch)
+      (uri (pypi-uri "requests" version))
+      (sha256
+        (base32
+         "0ny2nr1sqr4hcn3903ghmh7w2yni8shlfv240a8c9p6wyidqvzl4"))))))
+
+(define-public python2-requests-2.8.1
+  (package-with-python2 python-requests-2.8.1))
-- 
2.10.2

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

* [PATCH 13/20] gnu: Add python-rednose-0.4.3
  2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
                   ` (10 preceding siblings ...)
  2017-04-14 10:13 ` [PATCH 12/20] gnu: Add python-requests-2.8.1 Muriithi Frederick Muriuki
@ 2017-04-14 10:13 ` Muriithi Frederick Muriuki
  2017-04-14 10:13 ` [PATCH 14/20] gnu: Add python-nose-randomly Muriithi Frederick Muriuki
                   ` (9 subsequent siblings)
  21 siblings, 0 replies; 30+ messages in thread
From: Muriithi Frederick Muriuki @ 2017-04-14 10:13 UTC (permalink / raw)
  To: guix-devel; +Cc: pjotr2017

* gnu/packages/python.scm (python-rednose-0.4.3): New variable.
---
 gnu/packages/python.scm | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 82258b5..7aba1ca 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14294,3 +14294,20 @@ and correct.")
 
 (define-public python2-requests-2.8.1
   (package-with-python2 python-requests-2.8.1))
+
+(define-public python-rednose-0.4.3
+  ;; httpretty has a hard requirement for rednose==0.4.3
+  (package
+    (inherit python-rednose)
+    (name "python-rednose")
+  (version "0.4.3")
+  (source
+    (origin
+      (method url-fetch)
+      (uri (pypi-uri "rednose" version))
+      (sha256
+        (base32
+         "1mv4aknbl80wday41924l1gfqia2n6q7h5l4n8irlmn5fh2x9rbc"))))))
+
+(define-public python2-rednose-0.4.3
+  (package-with-python2 python-rednose-0.4.3))
-- 
2.10.2

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

* [PATCH 14/20] gnu: Add python-nose-randomly
  2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
                   ` (11 preceding siblings ...)
  2017-04-14 10:13 ` [PATCH 13/20] gnu: Add python-rednose-0.4.3 Muriithi Frederick Muriuki
@ 2017-04-14 10:13 ` Muriithi Frederick Muriuki
  2017-04-14 10:13 ` [PATCH 15/20] gnu: Add python-pbr-2.0.0 Muriithi Frederick Muriuki
                   ` (8 subsequent siblings)
  21 siblings, 0 replies; 30+ messages in thread
From: Muriithi Frederick Muriuki @ 2017-04-14 10:13 UTC (permalink / raw)
  To: guix-devel; +Cc: pjotr2017

* gnu/packages/python.scm (python-nose-randomly): New variable.
---
 gnu/packages/python.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 7aba1ca..37b736e 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14311,3 +14311,41 @@ and correct.")
 
 (define-public python2-rednose-0.4.3
   (package-with-python2 python-rednose-0.4.3))
+
+(define-public python-nose-randomly
+  (package
+    (name "python-nose-randomly")
+    (version "1.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "nose-randomly" version))
+       (sha256
+        (base32
+         "17iggrvhvxzgci34x14x31i1ym8f7jdkklmq1yfnwjcglh7z70hk"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-nose" ,python-nose)))
+    (home-page
+     "https://github.com/adamchainz/nose-randomly")
+    (synopsis
+     "Nose plugin to randomly order tests and control random.seed")
+    (description
+     "Nose plugin to randomly order tests and control random.seed.  It has the following
+features:
+@itemize @bullet
+@item Randomly shuffles the submodules, @code{TestCase} classes + test functions when
+loading a module of tests.
+@item Randomly shuffles the test functions inside a @code{TestCase} when loading it.
+@item Resets @code{random.seed()} at the start of every test case and test to a fixed
+number - this defaults to @code{time.time()} from the start of your test run, but you can
+pass in @code{--randomly-seed} to repeat a randomness-induced failure.
+@item If @code{factory boy} is installed, its random state is reset at the start of every
+test.  This allows for repeatable use of its random @code{fuzzy} features.
+@item If @code{faker} is installed, its random state is reset at the start of every test.
+This is also for repeatable fuzzy data in tests - factory boy uses faker for lots of data.
+@end itemize")
+    (license license:bsd-3)))
+
+(define-public python2-nose-randomly
+  (package-with-python2 python-nose-randomly))
-- 
2.10.2

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

* [PATCH 15/20] gnu: Add python-pbr-2.0.0
  2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
                   ` (12 preceding siblings ...)
  2017-04-14 10:13 ` [PATCH 14/20] gnu: Add python-nose-randomly Muriithi Frederick Muriuki
@ 2017-04-14 10:13 ` Muriithi Frederick Muriuki
  2017-04-14 10:13 ` [PATCH 16/20] gnu: Add python-mock-1.3.0 Muriithi Frederick Muriuki
                   ` (7 subsequent siblings)
  21 siblings, 0 replies; 30+ messages in thread
From: Muriithi Frederick Muriuki @ 2017-04-14 10:13 UTC (permalink / raw)
  To: guix-devel; +Cc: pjotr2017

* gnu/packages/python.scm (python-pbr-2.0.0): New variable.
---
 gnu/packages/python.scm | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 37b736e..9b2debc 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14349,3 +14349,20 @@ This is also for repeatable fuzzy data in tests - factory boy uses faker for lot
 
 (define-public python2-nose-randomly
   (package-with-python2 python-nose-randomly))
+
+(define-public python-pbr-2.0.0
+  ;; mock-1.3.0 has a requirement for pbr>=1.3
+  (package
+    (inherit python-pbr)
+    (name "python-pbr")
+  (version "2.0.0")
+  (source
+    (origin
+      (method url-fetch)
+      (uri (pypi-uri "pbr" version))
+      (sha256
+        (base32
+         "0p96pbx32x8fh250y5s177h3vm012kq225avh7gp1l5g56sjvk8c"))))))
+
+(define-public python2-pbr-2.0.0
+  (package-with-python2 python-pbr-2.0.0))
-- 
2.10.2

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

* [PATCH 16/20] gnu: Add python-mock-1.3.0
  2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
                   ` (13 preceding siblings ...)
  2017-04-14 10:13 ` [PATCH 15/20] gnu: Add python-pbr-2.0.0 Muriithi Frederick Muriuki
@ 2017-04-14 10:13 ` Muriithi Frederick Muriuki
  2017-04-14 10:13 ` [PATCH 17/20] gnu: Add python-httpretty Muriithi Frederick Muriuki
                   ` (6 subsequent siblings)
  21 siblings, 0 replies; 30+ messages in thread
From: Muriithi Frederick Muriuki @ 2017-04-14 10:13 UTC (permalink / raw)
  To: guix-devel; +Cc: pjotr2017

* gnu/packages/python.scm (python-mock-1.3.0): New variable.
---
 gnu/packages/python.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 9b2debc..f2355bd 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14366,3 +14366,22 @@ This is also for repeatable fuzzy data in tests - factory boy uses faker for lot
 
 (define-public python2-pbr-2.0.0
   (package-with-python2 python-pbr-2.0.0))
+
+(define-public python-mock-1.3.0
+  ;; httpretty has a hard requirement for mock==1.3.0
+  (package
+    (inherit python-mock)
+    (name "python-mock")
+  (version "1.3.0")
+  (source
+    (origin
+      (method url-fetch)
+      (uri (pypi-uri "mock" version))
+      (sha256
+        (base32
+         "1xm0xkaz8d8d26kdk09f2n9vn543ssd03vmpkqlmgq3crjz7s90y"))))
+  (propagated-inputs
+   `(("python-pbr" ,python-pbr-2.0.0)))))
+
+(define-public python2-mock-1.3.0
+  (package-with-python2 python-mock-1.3.0))
-- 
2.10.2

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

* [PATCH 17/20] gnu: Add python-httpretty
  2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
                   ` (14 preceding siblings ...)
  2017-04-14 10:13 ` [PATCH 16/20] gnu: Add python-mock-1.3.0 Muriithi Frederick Muriuki
@ 2017-04-14 10:13 ` Muriithi Frederick Muriuki
  2017-04-17 19:11   ` Leo Famulari
  2017-04-14 10:13 ` [PATCH 18/20] gnu: Add python-pyyaml-3.11 Muriithi Frederick Muriuki
                   ` (5 subsequent siblings)
  21 siblings, 1 reply; 30+ messages in thread
From: Muriithi Frederick Muriuki @ 2017-04-14 10:13 UTC (permalink / raw)
  To: guix-devel; +Cc: pjotr2017

* gnu/packages/python.scm (python-httpretty): New variable.
---
 gnu/packages/python.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index f2355bd..71ea495 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14385,3 +14385,47 @@ This is also for repeatable fuzzy data in tests - factory boy uses faker for lot
 
 (define-public python2-mock-1.3.0
   (package-with-python2 python-mock-1.3.0))
+
+(define-public python-httpretty
+  (package
+    (name "python-httpretty")
+    (version "0.8.14")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "httpretty" version))
+       (sha256
+        (base32
+         "0vlp5qkyw3pxwwsg7xmdcfh1csvypvaz4m6abida8s4xmjxpdhc3"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme-0.1.9)
+       ("python-sphinx" ,python-sphinx-1.3.3)
+       ("python-coverage" ,python-coverage-4.0.3)
+       ("python-tornado" ,python-tornado)
+       ("python-urllib3" ,python-urllib3-1.12)
+       ("python-sure" ,python-sure)
+       ("python-steadymark" ,python-steadymark)
+       ("python-requests" ,python-requests-2.8.1)
+       ("python-rednose" ,python-rednose-0.4.3)
+       ("python-nose-randomly" ,python-nose-randomly)
+       ("python-mock" ,python-mock-1.3.0)
+       ("python-misaka" ,python-misaka)
+       ("python-pytest-httpbin" ,python-pytest-httpbin)))
+    (arguments
+     `(;; One of ipdb's dependency keeps failing with a response
+       ;; of 410, "Gone"
+       ;; The dependency seems to have a name "texlive-texmf-2016"
+       ;; and seems to be one of texlive's dependencies
+       ;; As such, the tests for this will fail due to the missing
+       ;; dependency ("python-ipdb" ,python-ipdb)
+       #:tests? #f))
+    (home-page
+     "http://github.com/gabrielfalcao/httpretty")
+    (synopsis "HTTP client mock for Python")
+    (description "@code{httpretty} is a helper for faking web requests, inspired by Ruby's
+@code{fakeweb}.")
+    (license license:expat)))
+
+(define-public python2-httpretty
+  (package-with-python2 python-httpretty))
-- 
2.10.2

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

* [PATCH 18/20] gnu: Add python-pyyaml-3.11
  2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
                   ` (15 preceding siblings ...)
  2017-04-14 10:13 ` [PATCH 17/20] gnu: Add python-httpretty Muriithi Frederick Muriuki
@ 2017-04-14 10:13 ` Muriithi Frederick Muriuki
  2017-04-14 10:13 ` [PATCH 19/20] gnu: Add python-requests-2.10.0 Muriithi Frederick Muriuki
                   ` (4 subsequent siblings)
  21 siblings, 0 replies; 30+ messages in thread
From: Muriithi Frederick Muriuki @ 2017-04-14 10:13 UTC (permalink / raw)
  To: guix-devel; +Cc: pjotr2017

* gnu/packages/python.scm (python-pyyaml-3.11): New variable.
---
 gnu/packages/python.scm | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 71ea495..96849b5 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14429,3 +14429,20 @@ This is also for repeatable fuzzy data in tests - factory boy uses faker for lot
 
 (define-public python2-httpretty
   (package-with-python2 python-httpretty))
+
+(define-public python-pyyaml-3.11
+  ;; Required by python-xenon
+  (package
+    (inherit python-pyyaml)
+    (name "python-pyyaml")
+    (version "3.11")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "PyYAML" version))
+       (sha256
+        (base32
+         "1s26125vfnskng58ym37xhwv8v0mm95b2cwbjfag8prfhy596v63"))))))
+
+(define-public python2-pyyaml-3.11
+  (package-with-python2 python-pyyaml-3.11))
-- 
2.10.2

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

* [PATCH 19/20] gnu: Add python-requests-2.10.0
  2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
                   ` (16 preceding siblings ...)
  2017-04-14 10:13 ` [PATCH 18/20] gnu: Add python-pyyaml-3.11 Muriithi Frederick Muriuki
@ 2017-04-14 10:13 ` Muriithi Frederick Muriuki
  2017-04-14 10:13 ` [PATCH 20/20] gnu: Add python-xenon Muriithi Frederick Muriuki
                   ` (3 subsequent siblings)
  21 siblings, 0 replies; 30+ messages in thread
From: Muriithi Frederick Muriuki @ 2017-04-14 10:13 UTC (permalink / raw)
  To: guix-devel; +Cc: pjotr2017

* gnu/packages/python.scm (python-requests-2.10.0): New variable.
---
 gnu/packages/python.scm | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 96849b5..fe911de 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14446,3 +14446,20 @@ This is also for repeatable fuzzy data in tests - factory boy uses faker for lot
 
 (define-public python2-pyyaml-3.11
   (package-with-python2 python-pyyaml-3.11))
+
+(define-public python-requests-2.10.0
+  ;; Required by python-xenon
+  (package
+    (inherit python-requests)
+    (name "python-requests")
+    (version "2.10.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "requests" version))
+       (sha256
+        (base32
+         "0m2vaasjdhrsf9nk05q0bybqw0w4w4p3p4vaw7730w8mi1bq3wb3"))))))
+
+(define-public python2-requests-2.10.0
+  (package-with-python2 python-requests-2.10.0))
-- 
2.10.2

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

* [PATCH 20/20] gnu: Add python-xenon
  2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
                   ` (17 preceding siblings ...)
  2017-04-14 10:13 ` [PATCH 19/20] gnu: Add python-requests-2.10.0 Muriithi Frederick Muriuki
@ 2017-04-14 10:13 ` Muriithi Frederick Muriuki
  2017-04-14 10:36 ` [PATCH 01/20] gnu: Add python-radon ng0
                   ` (2 subsequent siblings)
  21 siblings, 0 replies; 30+ messages in thread
From: Muriithi Frederick Muriuki @ 2017-04-14 10:13 UTC (permalink / raw)
  To: guix-devel; +Cc: pjotr2017

* gnu/packages/python.scm (python-xenon): New variable.
---
 gnu/packages/python.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index fe911de..a0dc4fb 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14463,3 +14463,36 @@ This is also for repeatable fuzzy data in tests - factory boy uses faker for lot
 
 (define-public python2-requests-2.10.0
   (package-with-python2 python-requests-2.10.0))
+
+(define-public python-xenon
+  (package
+    (name "python-xenon")
+    (version "0.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "xenon" version))
+       (sha256
+        (base32
+         "1c03nis488ls50cgcq7ghbj55nxsi6a9683lsvg6z6vaj4smc8g8"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-pyyaml" ,python-pyyaml-3.11)
+       ("python-radon" ,python-radon)
+       ("python-requests" ,python-requests-2.10.0)
+       ("python-pyyaml" ,python-pyyaml)
+       ("python-httpretty" ,python-httpretty)
+       ("python-flake8" ,python-flake8)
+       ("python-tox" ,python-tox)))
+    (home-page "https://xenon.readthedocs.org/")
+    (synopsis
+     "Monitor code metrics for Python on your CI server")
+    (description
+     "Xenon is a monitoring tool based on Radon.  It monitors code’s complexity.  Ideally,
+ Xenon is run every time code is committed.  Through command line options, various
+ thresholds can be set for the complexity of code.  It will fail (i.e.  it will exit with
+ a non-zero exit code) when any of these requirements is not met")
+    (license license:expat)))
+
+(define-public python2-xenon
+  (package-with-python2 python-xenon))
-- 
2.10.2

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

* Re: [PATCH 01/20] gnu: Add python-radon
  2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
                   ` (18 preceding siblings ...)
  2017-04-14 10:13 ` [PATCH 20/20] gnu: Add python-xenon Muriithi Frederick Muriuki
@ 2017-04-14 10:36 ` ng0
       [not found]   ` <CALjrZwaHDnWrCNq6v2f=yV5MoMTu3=na3jmYapLsB7Go57P=uw@mail.gmail.com>
  2017-04-15 17:24 ` Hartmut Goebel
  2017-04-17 19:19 ` Leo Famulari
  21 siblings, 1 reply; 30+ messages in thread
From: ng0 @ 2017-04-14 10:36 UTC (permalink / raw)
  To: Muriithi Frederick Muriuki; +Cc: guix-devel, pjotr2017

Hi,

thanks for the patch series. I just have a short advice:
Recently, about 2 or 3 months ago, we introduced the
guix-patches@gnu.org mailinglist. It has been documented in "CONTRIBUTING"
chapter of the handbook/documentation and in "HACKING" (toplevel file).
This has lead to making the guix-devel@gnu.org list a list for
discussions concerning the development.
It's not bad that you've sent the patches here, but for the next time
opening a bug ticket and sending them there will be prefered. It also
introduces the possibility to track the patches so that they don't get
lost.

Thanks!

Muriithi Frederick Muriuki transcribed 2.0K bytes:
> * gnu/packages/python.scm (python-radon): New variable.
> ---
>  gnu/packages/python.scm | 40 +++++++++++++++++++++++++++++++++++++++-
>  1 file changed, 39 insertions(+), 1 deletion(-)
> 
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
> index 231c629..23b6d86 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -13950,7 +13950,7 @@ recognize TestCases.")
>    (package-with-python2 python-mando))
>  
>  (define-public python-mando-0.3.1
> -  ;; python-radon (version 1.5.0) has a requirement
> +  ;; python-radon has a requirement
>    ;; for mando<0.4,>=0.3
>    (package
>      (inherit python-mando)
> @@ -13965,3 +13965,41 @@ recognize TestCases.")
>         (sha256
>          (base32
>           "17jlkdpqw22z1nyml5ybslilqkzmnk0dxxjml8bfghav1l5hbwd2"))))))
> +
> +(define-public python-radon
> +  ;; xenon has a hard requirement for radon>=1.4.0,<1.5
> +  (package
> +    (name "python-radon")
> +    (version "1.4.2")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (pypi-uri "radon" version))
> +       (sha256
> +        (base32
> +         "15xyzavfj1zwb5rn07fs2wfi6ccys9b5q0s8hmnpqz712mifl92g"))))
> +    (build-system python-build-system)
> +    (propagated-inputs
> +     `(("python-colorama" ,python-colorama)
> +       ("python-flake8-polyfill"
> +        ,python-flake8-polyfill)
> +       ("python-mando" ,python-mando-0.3.1)))
> +    (native-inputs
> +     `(("python-flake8" ,python-flake8)
> +       ("python-tox" ,python-tox)
> +       ("python-pytest" ,python-pytest)
> +       ("python-paramunittest" ,python-paramunittest)))
> +    (home-page "https://radon.readthedocs.org/")
> +    (synopsis "Code Metrics in Python")
> +    (description "Radon is a Python tool which computes various code metrics.  Supported
> + metrics are:
> +@itemize @bullet
> +@item raw metrics: SLOC, comment lines, blank lines, &c.
> +@item Cyclomatic Complexity (i.e.  McCabe’s Complexity)
> +@item Halstead metrics (all of them)
> +@item the Maintainability Index (a Visual Studio metric)
> +@end itemize")
> +    (license license:expat)))
> +
> +(define-public python2-radon
> +  (package-with-python2 python-radon))
> -- 
> 2.10.2
> 
> 

-- 
PGP and more: https://people.pragmatique.xyz/ng0/

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

* Re: [PATCH 01/20] gnu: Add python-radon
       [not found]   ` <CALjrZwaHDnWrCNq6v2f=yV5MoMTu3=na3jmYapLsB7Go57P=uw@mail.gmail.com>
@ 2017-04-14 11:47     ` Frederick Muriithi
  2017-04-14 11:55       ` ng0
  0 siblings, 1 reply; 30+ messages in thread
From: Frederick Muriithi @ 2017-04-14 11:47 UTC (permalink / raw)
  To: guix-devel, Pjotr Prins

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

On 14 Apr 2017 1:36 p.m., "ng0" <contact.ng0@cryptolab.net> wrote:

Hi,

thanks for the patch series. I just have a short advice:
Recently, about 2 or 3 months ago, we introduced the
guix-patches@gnu.org mailinglist. It has been documented in "CONTRIBUTING"
chapter of the handbook/documentation and in "HACKING" (toplevel file).


Thank you.
I will do that in the future. Would you recommend I do that for this series
of patches, or do I leave it off for now?

[-- Attachment #2: Type: text/html, Size: 1108 bytes --]

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

* Re: [PATCH 01/20] gnu: Add python-radon
  2017-04-14 11:47     ` Frederick Muriithi
@ 2017-04-14 11:55       ` ng0
  0 siblings, 0 replies; 30+ messages in thread
From: ng0 @ 2017-04-14 11:55 UTC (permalink / raw)
  To: Frederick Muriithi; +Cc: guix-devel, Pjotr Prins

Frederick Muriithi transcribed 1.8K bytes:
> On 14 Apr 2017 1:36 p.m., "ng0" <contact.ng0@cryptolab.net> wrote:
> 
> Hi,
> 
> thanks for the patch series. I just have a short advice:
> Recently, about 2 or 3 months ago, we introduced the
> guix-patches@gnu.org mailinglist. It has been documented in "CONTRIBUTING"
> chapter of the handbook/documentation and in "HACKING" (toplevel file).
> 
> 
> Thank you.
> I will do that in the future. Would you recommend I do that for this series
> of patches, or do I leave it off for now?

I think it's up to you. Not everyone has catched up with the new
procedure, but as you CC'd Pjotr I assume Pjotr will handle the review?
-- 
PGP and more: https://people.pragmatique.xyz/ng0/

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

* Re: [PATCH 01/20] gnu: Add python-radon
  2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
                   ` (19 preceding siblings ...)
  2017-04-14 10:36 ` [PATCH 01/20] gnu: Add python-radon ng0
@ 2017-04-15 17:24 ` Hartmut Goebel
  2017-04-17 19:19 ` Leo Famulari
  21 siblings, 0 replies; 30+ messages in thread
From: Hartmut Goebel @ 2017-04-15 17:24 UTC (permalink / raw)
  To: guix-devel

Am 14.04.2017 um 12:13 schrieb Muriithi Frederick Muriuki:
> +       ("python-flake8-polyfill"
> +        ,python-flake8-polyfill)
I assume this should be a native-input, shouldn't it.

Also please write this in a single line.

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |

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

* Re: [PATCH 05/20] gnu: Add python-sphinx-1.3.3
  2017-04-14 10:13 ` [PATCH 05/20] gnu: Add python-sphinx-1.3.3 Muriithi Frederick Muriuki
@ 2017-04-15 17:28   ` Hartmut Goebel
  2017-04-15 17:38     ` Hartmut Goebel
  0 siblings, 1 reply; 30+ messages in thread
From: Hartmut Goebel @ 2017-04-15 17:28 UTC (permalink / raw)
  To: guix-devel

Am 14.04.2017 um 12:13 schrieb Muriithi Frederick Muriuki:
>  (define-public python2-sphinx-rtd-theme-0.1.9
>    (package-with-python2 python-sphinx-rtd-theme-0.1.9))
> +
> +(define-public python-sphinx-1.3.3
> +  ;; python-httpretty has a hard requirement for
> +  ;; sphinx == 1.3.3

Please test if it works with an up-to-date version of sphinx, too. There
are very few reasons for requiring strict version of a tool like sphinx
or sphinx-rtd-them. And we should avoid adding versions over versions of
packages.

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |

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

* Re: [PATCH 06/20] gnu: Add python-coverage-4.0.3
  2017-04-14 10:13 ` [PATCH 06/20] gnu: Add python-coverage-4.0.3 Muriithi Frederick Muriuki
@ 2017-04-15 17:29   ` Hartmut Goebel
  0 siblings, 0 replies; 30+ messages in thread
From: Hartmut Goebel @ 2017-04-15 17:29 UTC (permalink / raw)
  To: guix-devel

Am 14.04.2017 um 12:13 schrieb Muriithi Frederick Muriuki:
> +  ;; httpretty has a hard requirement for coverage==4.0.3

Same here.

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |

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

* Re: [PATCH 05/20] gnu: Add python-sphinx-1.3.3
  2017-04-15 17:28   ` Hartmut Goebel
@ 2017-04-15 17:38     ` Hartmut Goebel
  2017-04-17 19:15       ` Leo Famulari
  0 siblings, 1 reply; 30+ messages in thread
From: Hartmut Goebel @ 2017-04-15 17:38 UTC (permalink / raw)
  To: guix-devel

Am 15.04.2017 um 19:28 schrieb Hartmut Goebel:
> Am 14.04.2017 um 12:13 schrieb Muriithi Frederick Muriuki:
>>  (define-public python2-sphinx-rtd-theme-0.1.9
>>    (package-with-python2 python-sphinx-rtd-theme-0.1.9))
>> +
>> +(define-public python-sphinx-1.3.3
>> +  ;; python-httpretty has a hard requirement for
>> +  ;; sphinx == 1.3.3
> Please test if it works with an up-to-date version of sphinx, too. There
> are very few reasons for requiring strict version of a tool like sphinx
> or sphinx-rtd-them. And we should avoid adding versions over versions of
> packages.
https://github.com/gabrielfalcao/HTTPretty/blob/0.8.14/requirements.txt
says:

# HTTPretty doesn't have any requirements per se so far. yay!

So I assume you take the version definitions in "development.txt" as
"hard requirement" - but this file only defines *one* valid set of
dependencies. So please review *all* the packages you say
"python-httpretty has a hard requirement" and try to get rid of them. It
may be even better to patch or "substitute" httpretty to make it work
with our set of versions instead of piling of version of packages used
only for this one. Thanks.

-- 
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer
Information Security Management, Security Governance, Secure Software
Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog: http://www.goebel-consult.de/blog/verschlusselte-mailingslisten
Kolumne:
http://www.cissp-gefluester.de/2011-08-horrorszenario-bring-your-own-device

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

* Re: [PATCH 17/20] gnu: Add python-httpretty
  2017-04-14 10:13 ` [PATCH 17/20] gnu: Add python-httpretty Muriithi Frederick Muriuki
@ 2017-04-17 19:11   ` Leo Famulari
  0 siblings, 0 replies; 30+ messages in thread
From: Leo Famulari @ 2017-04-17 19:11 UTC (permalink / raw)
  To: Muriithi Frederick Muriuki; +Cc: guix-devel, pjotr2017

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

On Fri, Apr 14, 2017 at 01:13:17PM +0300, Muriithi Frederick Muriuki wrote:
> * gnu/packages/python.scm (python-httpretty): New variable.

> +    (arguments
> +     `(;; One of ipdb's dependency keeps failing with a response
> +       ;; of 410, "Gone"
> +       ;; The dependency seems to have a name "texlive-texmf-2016"
> +       ;; and seems to be one of texlive's dependencies
> +       ;; As such, the tests for this will fail due to the missing
> +       ;; dependency ("python-ipdb" ,python-ipdb)
> +       #:tests? #f))

When the substituter fails, it should suggest that you re-try the
command with '--fallback'.

Does it matter that httpretty would be missing this dependency and
failing its test suite?

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

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

* Re: [PATCH 05/20] gnu: Add python-sphinx-1.3.3
  2017-04-15 17:38     ` Hartmut Goebel
@ 2017-04-17 19:15       ` Leo Famulari
  0 siblings, 0 replies; 30+ messages in thread
From: Leo Famulari @ 2017-04-17 19:15 UTC (permalink / raw)
  To: Hartmut Goebel; +Cc: guix-devel

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

On Sat, Apr 15, 2017 at 07:38:57PM +0200, Hartmut Goebel wrote:
> Am 15.04.2017 um 19:28 schrieb Hartmut Goebel:
> > Am 14.04.2017 um 12:13 schrieb Muriithi Frederick Muriuki:
> >>  (define-public python2-sphinx-rtd-theme-0.1.9
> >>    (package-with-python2 python-sphinx-rtd-theme-0.1.9))
> >> +
> >> +(define-public python-sphinx-1.3.3
> >> +  ;; python-httpretty has a hard requirement for
> >> +  ;; sphinx == 1.3.3
> > Please test if it works with an up-to-date version of sphinx, too. There
> > are very few reasons for requiring strict version of a tool like sphinx
> > or sphinx-rtd-them. And we should avoid adding versions over versions of
> > packages.
> https://github.com/gabrielfalcao/HTTPretty/blob/0.8.14/requirements.txt
> says:
> 
> # HTTPretty doesn't have any requirements per se so far. yay!
> 
> So I assume you take the version definitions in "development.txt" as
> "hard requirement" - but this file only defines *one* valid set of
> dependencies. So please review *all* the packages you say
> "python-httpretty has a hard requirement" and try to get rid of them. It
> may be even better to patch or "substitute" httpretty to make it work
> with our set of versions instead of piling of version of packages used
> only for this one. Thanks.

I agree, it would be best if we could avoid collecting many versions of
packages like Sphinx; it will become a pain to maintain them later.

On the other hand, it is also a burden to maintain patches against
upstream code. Both approaches cost human time and energy.

Personally, I think it's up to Frederick how he decides to handle this,
since he will be maintaining these packages in the future :)

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

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

* Re: [PATCH 01/20] gnu: Add python-radon
  2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
                   ` (20 preceding siblings ...)
  2017-04-15 17:24 ` Hartmut Goebel
@ 2017-04-17 19:19 ` Leo Famulari
  21 siblings, 0 replies; 30+ messages in thread
From: Leo Famulari @ 2017-04-17 19:19 UTC (permalink / raw)
  To: Muriithi Frederick Muriuki; +Cc: guix-devel, pjotr2017

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

On Fri, Apr 14, 2017 at 01:13:01PM +0300, Muriithi Frederick Muriuki wrote:
> * gnu/packages/python.scm (python-radon): New variable.

Thanks for these patches!

I've sent my patch-specific comments. Can you also run `guix lint` on
each new package? I noticed a few minor issues in synopses, and there
are problem a few more issues lurking.

Once you decide what to do about the comments you've received, please do
one of the following:

1) Send an updated patch series to <guix-patches@gnu.org>, or
2) Write back here to say that this is the final revision of the
patches.

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

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

end of thread, other threads:[~2017-04-17 19:20 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-14 10:13 [PATCH 01/20] gnu: Add python-radon Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 02/20] gnu: Add python-httpbin Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 03/20] gnu: Add python-pytest-httpbin Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 04/20] gnu: Add python-sphinx-rtd-theme-0.1.9 Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 05/20] gnu: Add python-sphinx-1.3.3 Muriithi Frederick Muriuki
2017-04-15 17:28   ` Hartmut Goebel
2017-04-15 17:38     ` Hartmut Goebel
2017-04-17 19:15       ` Leo Famulari
2017-04-14 10:13 ` [PATCH 06/20] gnu: Add python-coverage-4.0.3 Muriithi Frederick Muriuki
2017-04-15 17:29   ` Hartmut Goebel
2017-04-14 10:13 ` [PATCH 07/20] gnu: Add python-urllib3-1.12 Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 08/20] gnu: Add python-sure Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 09/20] gnu: Add python-couleur Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 10/20] gnu: Add python-misaka Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 11/20] gnu: Add python-steadymark Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 12/20] gnu: Add python-requests-2.8.1 Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 13/20] gnu: Add python-rednose-0.4.3 Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 14/20] gnu: Add python-nose-randomly Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 15/20] gnu: Add python-pbr-2.0.0 Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 16/20] gnu: Add python-mock-1.3.0 Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 17/20] gnu: Add python-httpretty Muriithi Frederick Muriuki
2017-04-17 19:11   ` Leo Famulari
2017-04-14 10:13 ` [PATCH 18/20] gnu: Add python-pyyaml-3.11 Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 19/20] gnu: Add python-requests-2.10.0 Muriithi Frederick Muriuki
2017-04-14 10:13 ` [PATCH 20/20] gnu: Add python-xenon Muriithi Frederick Muriuki
2017-04-14 10:36 ` [PATCH 01/20] gnu: Add python-radon ng0
     [not found]   ` <CALjrZwaHDnWrCNq6v2f=yV5MoMTu3=na3jmYapLsB7Go57P=uw@mail.gmail.com>
2017-04-14 11:47     ` Frederick Muriithi
2017-04-14 11:55       ` ng0
2017-04-15 17:24 ` Hartmut Goebel
2017-04-17 19:19 ` Leo Famulari

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).