GNU bug report logs -
#27423
gnu: Add python2-xenon
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 27423 in the body.
You can then email your comments to 27423 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#27423
; Package
guix-patches
.
(Sun, 18 Jun 2017 18:52:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Frederick Muriithi <fredmanglis <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sun, 18 Jun 2017 18:52:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
python2-xenon is a dependency of conda. I'm working on getting conda on guix.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#27423
; Package
guix-patches
.
(Sun, 18 Jun 2017 18:54:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 27423 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python.scm (python2-xenon): New variable.
---
gnu/packages/python.scm | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index c07bbae3e..e84b71701 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -15406,3 +15406,44 @@ window memory map manager.")
(define-public python2-smmap2
(package-with-python2 python-smmap2))
+
+(define-public python2-xenon
+ (package
+ (name "python2-xenon")
+ (version "0.5.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "xenon" version))
+ (sha256
+ (base32
+ "14kby2y48vp3sgwxqlm5d5789yibqwb1qli5fwcmdqg3iayrbklc"))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("python-pyyaml" ,python2-pyyaml)
+ ("python-radon" ,python2-radon)
+ ("python-requests" ,python2-requests)
+ ("python-flake8" ,python2-flake8)
+ ("python2-httpretty" ,python2-httpretty)
+ ("python-tox" ,python2-tox)))
+ (arguments
+ `(#:python ,python-2
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'patch-test-requirements
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; Update requirements from dependecy==version
+ ;; to dependency>=version
+ (substitute* "requirements.txt"
+ (("==") ">=")
+ ((",<1.5.0") ""))
+ #t)))))
+ (home-page "https://xenon.readthedocs.org/")
+ (synopsis
+ "Monitor code metrics for Python on your CI server")
+ (description
+ "@code{Xenon} is a monitoring tool based on Radon. It monitors code’s complexity.
+Ideally, @code{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)))
--
2.13.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#27423
; Package
guix-patches
.
(Tue, 20 Jun 2017 20:20:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 27423 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Muriithi Frederick Muriuki <fredmanglis <at> gmail.com> writes:
> * gnu/packages/python.scm (python2-xenon): New variable.
According to the README.rst, this package also supports python3. Could
you add the python3 variant as well and make the python2 package inherit
from it? Please also keep line lengths below 80 characters. TIA!
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#27423
; Package
guix-patches
.
(Sat, 24 Jun 2017 03:57:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 27423 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python.scm (python-xenon, python2-xenon) New variables.
---
gnu/packages/python.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 6150a8798..63d05e9e2 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -15500,3 +15500,49 @@ pure Python module.")
(define-public python2-rencode
(package-with-python2 python-rencode))
+
+(define-public python-xenon
+ (package
+ (name "python-xenon")
+ (version "0.5.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "xenon" version))
+ (sha256
+ (base32
+ "14kby2y48vp3sgwxqlm5d5789yibqwb1qli5fwcmdqg3iayrbklc"))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("python-pyyaml" ,python-pyyaml)
+ ("python-radon" ,python-radon)
+ ("python-requests" ,python-requests)
+ ("python-flake8" ,python-flake8)
+ ("python-tox" ,python-tox)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'patch-test-requirements
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; Update requirements from dependecy==version
+ ;; to dependency>=version
+ (substitute* "requirements.txt"
+ (("==") ">=")
+ ((",<1.5.0") ""))
+ ;; Remove httpretty dependency for tests
+ (substitute* "setup.py"
+ (("httpretty") ""))
+ #t)))))
+ (home-page "https://xenon.readthedocs.org/")
+ (synopsis
+ "Monitor code metrics for Python on your CI server")
+ (description
+ "@code{Xenon} is a monitoring tool based on Radon. It monitors code’s
+complexity. Ideally, @code{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.13.1
Reply sent
to
ludo <at> gnu.org (Ludovic Courtès)
:
You have taken responsibility.
(Fri, 01 Sep 2017 22:47:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Frederick Muriithi <fredmanglis <at> gmail.com>
:
bug acknowledged by developer.
(Fri, 01 Sep 2017 22:47:03 GMT)
Full text and
rfc822 format available.
Message #19 received at 27423-done <at> debbugs.gnu.org (full text, mbox):
Hi Frederick,
Muriithi Frederick Muriuki <fredmanglis <at> gmail.com> skribis:
> * gnu/packages/python.scm (python-xenon, python2-xenon) New variables.
Finally committed, apologies for the delay!
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 30 Sep 2017 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 181 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.