GNU bug report logs -
#26524
Add conda and dependencies
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 26524 in the body.
You can then email your comments to 26524 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#26524
; Package
guix-patches
.
(Sat, 15 Apr 2017 19:28: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
.
(Sat, 15 Apr 2017 19:28:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Package: guix-patches
Version: 0.12.0
Dear Guix,
This is bug is to track adding conda and its dependencies. I will be
sending patches adding the dependencies for conda here, until we get
conda in mainline.
I will start with version 4.3.7, being the one I have tested, then I
can update it.
I had sent these to guix-devel <at> gnu.org, and was informed to send the
patches to guix-patches
--
Frederick M. Muriithi
[0001-gnu-Add-python-radon.patch (text/x-patch, attachment)]
[0002-gnu-Add-python-httpbin.patch (text/x-patch, attachment)]
[0003-gnu-Add-python-pytest-httpbin.patch (text/x-patch, attachment)]
[0004-gnu-Add-python-sphinx-rtd-theme-0.1.9.patch (text/x-patch, attachment)]
[0005-gnu-Add-python-sphinx-1.3.3.patch (text/x-patch, attachment)]
[0006-gnu-Add-python-coverage-4.0.3.patch (text/x-patch, attachment)]
[0007-gnu-Add-python-urllib3-1.12.patch (text/x-patch, attachment)]
[0008-gnu-Add-python-sure.patch (text/x-patch, attachment)]
[0009-gnu-Add-python-couleur.patch (text/x-patch, attachment)]
[0010-gnu-Add-python-misaka.patch (text/x-patch, attachment)]
[0011-gnu-Add-python-steadymark.patch (text/x-patch, attachment)]
[0012-gnu-Add-python-requests-2.8.1.patch (text/x-patch, attachment)]
[0013-gnu-Add-python-rednose-0.4.3.patch (text/x-patch, attachment)]
[0014-gnu-Add-python-nose-randomly.patch (text/x-patch, attachment)]
[0015-gnu-Add-python-pbr-2.0.0.patch (text/x-patch, attachment)]
[0016-gnu-Add-python-mock-1.3.0.patch (text/x-patch, attachment)]
[0017-gnu-Add-python-httpretty.patch (text/x-patch, attachment)]
[0018-gnu-Add-python-pyyaml-3.11.patch (text/x-patch, attachment)]
[0019-gnu-Add-python-requests-2.10.0.patch (text/x-patch, attachment)]
[0020-gnu-Add-python-xenon.patch (text/x-patch, attachment)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Sun, 23 Apr 2017 13:22:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 26524 <at> debbugs.gnu.org (full text, mbox):
Hi Frederick,
> This is bug is to track adding conda and its dependencies. I will be
> sending patches adding the dependencies for conda here, until we get
> conda in mainline.
Thanks a lot for your patches!
I have a couple of comments for the first batch of patches.
I’m not sure that the strict version requirements are actually
reasonable. Instead of packaging older versions it may make more sense
to patch away the version range from the setup.py files.
> * 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")
It would be good to add “python-radon” at the latest version and then
create a variant called “python-radon-1.4” with the comment that it is
required by “python-xenon”.
> +(define-public python2-radon
> + (package-with-python2 python-radon))
You only mentioned “python-radon” in the commit summary. Unless you
really need the Python 2 variant I’m thinking that maybe we shouldn’t
add it.
What do you think?
If it’s needed for conda then please keep it but mention it in the
commit summary, e.g.:
--8<---------------cut here---------------start------------->8---
gnu: Add python-radon.
* gnu/packages/python.scm (python-radon, python2-radon): New variables.
--8<---------------cut here---------------end--------------->8---
> * gnu/packages/python.scm (python-httpbin): New variable.
> ---
> gnu/packages/python.scm | 27 +++++++++++++++++++++++++++
> 1 file changed, 27 insertions(+)
The same comment as above applies. Please mention or drop the python2
variant. I think this package should go to “(gnu packages web)” where
we keep similar packages; the “(gnu packages python)” module is a little
too crowded.
> +
> +(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")
Please change this to “HTTP request and response service”.
> + (description "HTTP Request and Response Service which covers all kinds of HTTP
> +scenarios")
Please use full sentences and punctuation in the description.
> + (license license:expat)))
Actually, this is under the ISC license:
https://github.com/kennethreitz/httpbin/blob/master/LICENSE
> +
> +(define-public python2-httpbin
> + (package-with-python2 python-httpbin))
See above.
> From e9764356e3601c2927021eb5b687bc432b1eff20 Mon Sep 17 00:00:00 2001
> From: Muriithi Frederick Muriuki <fredmanglis <at> gmail.com>
> Date: Fri, 14 Apr 2017 10:55:59 +0300
> Subject: [PATCH 03/20] gnu: Add python-pytest-httpbin
>
> * 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")
Please do the same as I suggested above: package the latest version and
then create a variant using this version, and add a comment on top.
Before creating the variant, however, it would be good to check if this
exact version requirement is actually reasonable.
> + (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")
I would change this to “Test
> + (description
> + "Easily test your HTTP library against a local copy of httpbin")
Here’s a better description:
“Pytest-httpbin creates a @code{pytest} fixture that is
dependency-injected into your tests. It automatically starts up a HTTP
server in a separate thread running @code{httpbin} and provides your
test with the URL in the fixture.”
> + (license license:expat)))
> +
> +(define-public python2-pytest-httpbin
> + (package-with-python2 python-pytest-httpbin))
See above.
> From 1f4c44b1d47c2cc75cef75704ccd1cc386d5a862 Mon Sep 17 00:00:00 2001
> From: Muriithi Frederick Muriuki <fredmanglis <at> gmail.com>
> Date: Fri, 14 Apr 2017 11:02:10 +0300
> Subject: [PATCH 04/20] gnu: Add python-sphinx-rtd-theme-0.1.9
>
> * 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
Are these themes so different? Does it really make sense to use this
older variant instead of the latest version?
> + (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)))))
Does it really make sense to override the Sphinx version here? Can the
latest version be used?
> +
> +(define-public python2-sphinx-rtd-theme-0.1.9
> + (package-with-python2 python-sphinx-rtd-theme-0.1.9))
See above.
> From 77e2a627333baa82d4f83882e5bda629e5f2a381 Mon Sep 17 00:00:00 2001
> From: Muriithi Frederick Muriuki <fredmanglis <at> gmail.com>
> Date: Fri, 14 Apr 2017 11:06:00 +0300
> Subject: [PATCH 05/20] gnu: Add python-sphinx-1.3.3
>
> * 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
Hmm, yet another variant of Sphinx? We already have the latest version
and version 1.5.3. Can we really not do without this variant?
Also, please put this where the two other Sphinx packages are defined;
it’s best to keep them all together.
> + (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)
You defined another theme above. Are you sure that this latest version
of the theme package should be used here?
> + ("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))
Please only provide this variant if it is really needed. See above for
comment on commit summary.
> From 075fec8683fec552e030c4c5f4de92dd3d4942eb Mon Sep 17 00:00:00 2001
> From: Muriithi Frederick Muriuki <fredmanglis <at> gmail.com>
> Date: Fri, 14 Apr 2017 11:08:32 +0300
> Subject: [PATCH 06/20] gnu: Add python-coverage-4.0.3
>
> * 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"))))))
Please double-check that we httpretty must use this exact version.
Otherwise you could patch the version check in “setup.py”.
> +(define-public python2-coverage-4.0.3
> + (package-with-python2 python-coverage-4.0.3))
See above :)
> From 851864f62e82a10720cfe24642d22790f662f6bc Mon Sep 17 00:00:00 2001
> From: Muriithi Frederick Muriuki <fredmanglis <at> gmail.com>
> Date: Fri, 14 Apr 2017 11:12:38 +0300
> Subject: [PATCH 07/20] gnu: Add python-urllib3-1.12
>
> * 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"))))))
Why is this needed? If it is really necessary, please add a comment above.
> +(define-public python2-urllib3-1.12
> + (package-with-python2 python-urllib3-1.12))
See above :)
> From 45f52eee27ac62a7f2b5bc2acbd289d0151a7581 Mon Sep 17 00:00:00 2001
> From: Muriithi Frederick Muriuki <fredmanglis <at> gmail.com>
> Date: Fri, 14 Apr 2017 11:23:33 +0300
> Subject: [PATCH 08/20] gnu: Add python-sure
>
> * 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
Please see my comments above for how to handle this. Create a package
for the latest version, then inherit from it for “python-sure-1.2”. But
also check that httpretty really won’t work with the latest version. It
would be much better to patch httpretty than to add dozens of package
variants for one package.
> + (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}")
Please change this to:
"Sure is a Python library that leverages a DSL for writing
assertions. Sure is heavily inspired by @code{RSpec Expectations} and
@code{should.js}."
> + (license license:gpl3)))
This is actually GPLv3 or later. Please use “license:gpl3+”.
> +
> +(define-public python2-sure
> + (package-with-python2 python-sure))
See above.
> From fc1780bf7930de8c6b96966e19e7ba4aecf52589 Mon Sep 17 00:00:00 2001
> From: Muriithi Frederick Muriuki <fredmanglis <at> gmail.com>
> Date: Fri, 14 Apr 2017 11:35:40 +0300
> Subject: [PATCH 09/20] gnu: Add python-couleur
>
> * 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))
As far as I can tell, this is not a problem of testing. The package may
simply not work with Python 3 at all. I tried to import the package:
--8<---------------cut here---------------start------------->8---
rekado in guix: ./pre-inst-env guix environment --ad-hoc python-wrapper python-couleur
rekado in guix [env]: python
Python 3.5.3 (default, Jan 1 1970, 00:00:01)
[GCC 5.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import couleur
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/gnu/store/yc75aildgdxz7zcm0m2ffdn8hgysb777-profile/lib/python3.5/site-packages/couleur/__init__.py", line 104
up_count_regex = re.compile(wrap_escaped(ur'up'))
^
SyntaxError: invalid syntax
>>>
rekado in guix [env]:
--8<---------------cut here---------------end--------------->8---
I don’t think it’s right to disable the tests here. The Python 3
variant seems to be genuinely broken.
> + (home-page
> + "http://github.com/gabrielfalcao/couleur")
> + (synopsis
> + "ANSI terminal tool for python, colored shell and other handy
> fancy features")
Please capitalize “python”. If possible, please shorten it.
> + (description
> + "Couleur is a handy tool to play around with ANSI features in a
> unix terminal.")
I would remove “unix”.
> + (license license:asl2.0)))
The license seems to be GPLv3+. The license headers in
“couleur/__init.py__” and “setup.py” both state GPLv3+. Only the
classifiers section in “setup.py” says “License :: OSI Approved ::
Apache Software License”.
> +
> +(define-public python2-couleur
> + (package-with-python2 python-couleur))
See above.
Could you please review the comments so far and send updated patches?
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Thu, 27 Apr 2017 12:35:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 26524 <at> debbugs.gnu.org (full text, mbox):
On Sun, Apr 23, 2017 at 4:21 PM, Ricardo Wurmus <rekado <at> elephly.net> wrote:
>
>
> I’m not sure that the strict version requirements are actually
> reasonable. Instead of packaging older versions it may make more sense
> to patch away the version range from the setup.py files.
>
Okay. Thanks. I will fix the issues, and resend the patches, but I
think this time,
each patch in a separate email of its own, to make it easier to track.
Thanks for the feedback.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Thu, 27 Apr 2017 13:10:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 26524 <at> debbugs.gnu.org (full text, mbox):
Frederick Muriithi <fredmanglis <at> gmail.com> writes:
> On Sun, Apr 23, 2017 at 4:21 PM, Ricardo Wurmus <rekado <at> elephly.net> wrote:
>>
>>
>> I’m not sure that the strict version requirements are actually
>> reasonable. Instead of packaging older versions it may make more sense
>> to patch away the version range from the setup.py files.
>>
>
> Okay. Thanks. I will fix the issues, and resend the patches, but I
> think this time,
> each patch in a separate email of its own, to make it easier to track.
Here’s what I’d do:
git format-patch -10 # create patches for the past 10 commits
git send-email --to=26524 <at> debbugs.gnu.org *.patch
This will send one email per patch as a reply to this bug report. It’s
best to keep this all in one bug report to make sure we don’t lose track
of individual patches.
Thanks!
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Thu, 27 Apr 2017 15:55:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 26524 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python.scm (python-radon): 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 e51405b..b4ebe2d 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -13999,3 +13999,37 @@ exception message with a traceback that points to the culprit.")
(define-public python2-fudge
(package-with-python2 python-fudge))
+
+(define-public python-radon
+ (package
+ (name "python-radon")
+ (version "1.5.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "radon" version))
+ (sha256
+ (base32
+ "1h6jv36am0i827182a04ki6291lyx4kp957xfr5njgprj4nd0qsl"))))
+ (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)))
--
2.10.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Thu, 27 Apr 2017 15:55:03 GMT)
Full text and
rfc822 format available.
Message #20 received at 26524 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/web.scm (python-httpbin): New variable
---
gnu/packages/web.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index cb9912e..18a4d04 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -4528,3 +4528,29 @@ exploit attempts.")
(description "qutebrowser is a keyboard-focused browser with a minimal
GUI. It is based on PyQt5 and QtWebKit.")
(license l:gpl3+)))
+
+(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 "Testing an HTTP Library can become difficult sometimes.
+@code{RequestBin} is fantastic for testing POST requests, but doesn't let you control the
+response. This exists to cover all kinds of HTTP scenarios. All endpoint responses are
+JSON-encoded.")
+ (license l:isc)))
--
2.10.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Thu, 27 Apr 2017 15:55:03 GMT)
Full text and
rfc822 format available.
Message #23 received at 26524 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/web.scm (python-pytest-httpbin): New variable.
---
gnu/packages/web.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 18a4d04..e3f59e6 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -4554,3 +4554,29 @@ GUI. It is based on PyQt5 and QtWebKit.")
response. This exists to cover all kinds of HTTP scenarios. All endpoint responses are
JSON-encoded.")
(license l:isc)))
+
+(define-public python-pytest-httpbin
+ (package
+ (name "python-pytest-httpbin")
+ (version "0.2.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-httpbin" version))
+ (sha256
+ (base32
+ "1y0v2v7xpzpyd4djwp7ad8ifnlxp8r1y6dfbxg5ckzvllkgridn5"))))
+ (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
+ "Test your HTTP library against a local copy of httpbin")
+ (description
+ "@code{Pytest-httpbin} creates a @code{pytest} fixture that is dependency-injected
+into your tests. It automatically starts up a HTTP server in a separate thread running
+@code{httpbin} and provides your test with the URL in the fixture.")
+ (license l:expat)))
--
2.10.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Sun, 07 May 2017 02:30:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 26524 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/web.scm (python-httpbin): New variable.
---
gnu/packages/web.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 9c2074d..b975b18 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -4491,3 +4491,29 @@ functions of Tidy.")
Features include the ability to stop SQL injections, XSS and CSRF attacks and
exploit attempts.")
(license l:gpl2)))
+
+(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 "Testing an HTTP Library can become difficult sometimes.
+@code{RequestBin} is fantastic for testing POST requests, but doesn't let you control the
+response. This exists to cover all kinds of HTTP scenarios. All endpoint responses are
+JSON-encoded.")
+ (license l:isc)))
--
2.10.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Sun, 07 May 2017 02:30:03 GMT)
Full text and
rfc822 format available.
Message #29 received at 26524 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python.scm (python-pytest-httpbin): New variable.
---
gnu/packages/web.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index b975b18..a8e5463 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -4517,3 +4517,29 @@ exploit attempts.")
response. This exists to cover all kinds of HTTP scenarios. All endpoint responses are
JSON-encoded.")
(license l:isc)))
+
+(define-public python-pytest-httpbin
+ (package
+ (name "python-pytest-httpbin")
+ (version "0.2.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pytest-httpbin" version))
+ (sha256
+ (base32
+ "1y0v2v7xpzpyd4djwp7ad8ifnlxp8r1y6dfbxg5ckzvllkgridn5"))))
+ (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
+ "Test your HTTP library against a local copy of httpbin")
+ (description
+ "@code{Pytest-httpbin} creates a @code{pytest} fixture that is dependency-injected
+into your tests. It automatically starts up a HTTP server in a separate thread running
+@code{httpbin} and provides your test with the URL in the fixture.")
+ (license l:expat)))
--
2.10.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Sun, 07 May 2017 02:30:04 GMT)
Full text and
rfc822 format available.
Message #32 received at 26524 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python.scm (python-sure): New variable.
---
gnu/packages/python.scm | 28 +++++++++++++++++++++++++++-
1 file changed, 27 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 3ae51f0..367e494 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14173,4 +14173,30 @@ for Flask.")
@item Halstead metrics (all of them)
@item the Maintainability Index (a Visual Studio metric)
@end itemize")
-(license license:expat)))
+ (license license:expat)))
+
+(define-public python-sure
+ (package
+ (name "python-sure")
+ (version "1.4.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "sure" version))
+ (sha256
+ (base32
+ "1hiyqnrwwghbjikzkvvdb2rhxnck8dvpjy1lq41fb1xwfzips71r"))))
+ (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)))
--
2.10.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Sun, 07 May 2017 19:16:01 GMT)
Full text and
rfc822 format available.
Message #35 received at 26524 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Sun, May 07, 2017 at 05:29:43AM +0300, Muriithi Frederick Muriuki wrote:
> * gnu/packages/python.scm (python-sure): New variable.
This patch can't be applied on the master branch.
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -14173,4 +14173,30 @@ for Flask.")
> @item Halstead metrics (all of them)
> @item the Maintainability Index (a Visual Studio metric)
> @end itemize")
> -(license license:expat)))
> + (license license:expat)))
This context doesn't exist in the git repo...
> +(define-public python-sure
Also, if this package works with python-2, can you also add
python2-sure?
[signature.asc (application/pgp-signature, inline)]
Reply sent
to
Leo Famulari <leo <at> famulari.name>
:
You have taken responsibility.
(Sun, 07 May 2017 19:24:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Frederick Muriithi <fredmanglis <at> gmail.com>
:
bug acknowledged by developer.
(Sun, 07 May 2017 19:24:01 GMT)
Full text and
rfc822 format available.
Message #40 received at 26524-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Sun, May 07, 2017 at 05:29:41AM +0300, Muriithi Frederick Muriuki wrote:
> * gnu/packages/web.scm (python-httpbin): New variable.
Thanks! I added python2-httpbin and pushed as
ce949c10e50da6b385938c929c257c5ca421d651.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Sun, 07 May 2017 19:25:01 GMT)
Full text and
rfc822 format available.
Message #43 received at 26524-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Sun, May 07, 2017 at 05:29:42AM +0300, Muriithi Frederick Muriuki wrote:
> * gnu/packages/python.scm (python-pytest-httpbin): New variable.
Thanks! I added python2-pytest-httpbin and pushed as
86ab11205ed2b5c925ed9c8328736a433b0d933c.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Thu, 25 May 2017 08:44:02 GMT)
Full text and
rfc822 format available.
Message #46 received at 26524 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
[0001-gnu-Add-python-radon.patch (text/x-patch, attachment)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Sat, 27 May 2017 17:48:02 GMT)
Full text and
rfc822 format available.
Message #49 received at 26524-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Thu, May 25, 2017 at 11:42:38AM +0300, Frederick Muriithi wrote:
>
> From 0081505cb53811073d175b0f012cb6e6932d7913 Mon Sep 17 00:00:00 2001
> From: Muriithi Frederick Muriuki <fredmanglis <at> gmail.com>
> Date: Thu, 25 May 2017 11:25:34 +0300
> Subject: [PATCH] gnu: Add python-radon
>
> * gnu/packages/python.scm (python-radon, python2-radon): New variables.
Thanks! Pushed as 65e7d52a0c0643faf511e9ff7963e0053e41cf42
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Sun, 28 May 2017 15:33:02 GMT)
Full text and
rfc822 format available.
Message #52 received at 26524 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python.scm (python-sure, python2-sure): New variables.
---
gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 3e2141e7f..556d34d0c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14926,3 +14926,32 @@ Supported metrics are:
(define-public python2-radon
(package-with-python2 python-radon))
+
+(define-public python-sure
+ (package
+ (name "python-sure")
+ (version "1.4.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "sure" version))
+ (sha256
+ (base32
+ "1iyqsy2d6radi88g1qf0lziy5b39h5cpb3g5jiqyb4xi46ig3x1z"))))
+ (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.13.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Sun, 28 May 2017 15:33:02 GMT)
Full text and
rfc822 format available.
Message #55 received at 26524 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python.scm (python2-couleur): New variable.
---
gnu/packages/python.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 556d34d0c..989131680 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14955,3 +14955,28 @@ Sure is heavily inspired by @code{RSpec Expectations} and @code{should.js}.")
(define-public python2-sure
(package-with-python2 python-sure))
+
+(define-public python2-couleur
+ ;; This package does not seem to support python3 at all, hence,
+ ;; only the python2 variant definition is provided.
+ (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
+ `(#:python ,python-2))
+ (home-page
+ "http://github.com/gabrielfalcao/couleur")
+ (synopsis
+ "ANSI terminal tool for python, colored shell and other handy fancy features")
+ (description
+ "@code{Couleur} provides python programs a way to use the ANSI features in a unix
+terminal such as coloured output in the shell, overwriting output, indentation, etc.")
+ (license license:asl2.0)))
--
2.13.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Sun, 28 May 2017 15:33:03 GMT)
Full text and
rfc822 format available.
Message #58 received at 26524 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python.scm (python-misaka, python2-misaka): New
* variables.
---
gnu/packages/python.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 989131680..86cb034e4 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14980,3 +14980,36 @@ Sure is heavily inspired by @code{RSpec Expectations} and @code{should.js}.")
"@code{Couleur} provides python programs a way to use the ANSI features in a unix
terminal such as coloured output in the shell, overwriting output, indentation, etc.")
(license license:asl2.0)))
+
+(define-public python-misaka
+ (package
+ (name "python-misaka")
+ (version "2.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "misaka" version))
+ (sha256
+ (base32
+ "1yqrq3a5rracirmvk52n28nn6ckdaz897gnigv89a9gmyn87sqw7"))))
+ (build-system python-build-system)
+ (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/...-python-<version>/lib/python<version>/site-packages/
+ ;; for which it does not have the permission to write.
+ #:tests? #f))
+ (propagated-inputs
+ `(("python-cffi" ,python-cffi)))
+ (home-page "https://github.com/FSX/misaka")
+ (synopsis
+ "Misaka is a CFFI binding for Hoedown, a markdown parsing library")
+ (description
+ "@code{Misaka} is a CFFI-based binding for @code{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.13.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Sun, 28 May 2017 15:33:03 GMT)
Full text and
rfc822 format available.
Message #61 received at 26524 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python.scm (python2-steadymark): New variable.
---
gnu/packages/python.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 86cb034e4..f6b336904 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -15013,3 +15013,45 @@ renderers (e.g. man pages or LaTeX).")
(define-public python2-misaka
(package-with-python2 python-misaka))
+
+(define-public python2-steadymark
+ ;; This is forced into being a python2 only variant
+ ;; due to its dependence on couleur that has no support
+ ;; for python3
+ (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" ,python2-couleur)
+ ("python-sure" ,python2-sure)
+ ("python-misaka" ,python2-misaka)))
+ (arguments
+ `(#:python ,python-2
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build
+ 'patch-setup-py
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; Update requirements from dependecy==version
+ ;; to dependency>=version
+ (substitute* "setup.py"
+ (("==") ">="))
+ #t)))))
+ (home-page
+ "http://github.com/gabrielfalcao/steadymark")
+ (synopsis
+ "Markdown-based test runner for python. Good for github projects")
+ (description
+ "@code{Steadymark} allows documentation to be written in github-flavoured markdown.
+The documentation may contain snippets of code surrounded by python code blocks and
+@code{Steadymark} will find these snippets and run them, making sure that there are no old
+malfunctional examples in the documentation examples.")
+ (license license:expat)))
--
2.13.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Sun, 28 May 2017 15:33:03 GMT)
Full text and
rfc822 format available.
Message #64 received at 26524 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python.scm (python-nose-randomly, python2-nose-randomly):
* New variables.
---
gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index f6b336904..1c812b372 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -15055,3 +15055,33 @@ The documentation may contain snippets of code surrounded by python code blocks
@code{Steadymark} will find these snippets and run them, making sure that there are no old
malfunctional examples in the documentation examples.")
(license license:expat)))
+
+(define-public python-nose-randomly
+ (package
+ (name "python-nose-randomly")
+ (version "1.2.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "nose-randomly" version))
+ (sha256
+ (base32
+ "1cw9dlr1zh3w4i438kin7z0rm8092ki52hayisyc43h9pcplq7rn"))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("python-nose" ,python-nose)
+ ("python-numpy" ,python-numpy)))
+ (home-page
+ "https://github.com/adamchainz/nose-randomly")
+ (synopsis
+ "Nose plugin to randomly order tests and control random.seed")
+ (description
+ "This is a @code{Nose} plugin to randomly order tests which can be quite powerful in
+discovering hidden flaws in the tests themselves, while helping to reduce inter-test
+dependencies. It also helps in controlling random.seed, by resetting it to a repeatable
+number for each test, enabling the tests to create data based on random numbers and yet
+remain repeatable.")
+ (license license:bsd-3)))
+
+(define-public python2-nose-randomly
+ (package-with-python2 python-nose-randomly))
--
2.13.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Sun, 04 Jun 2017 12:17:02 GMT)
Full text and
rfc822 format available.
Message #67 received at 26524 <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 (python-sure, python2-sure): New variables.
> ---
> gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++
> 1 file changed, 29 insertions(+)
>
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
> index 3e2141e7f..556d34d0c 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -14926,3 +14926,32 @@ Supported metrics are:
>
> (define-public python2-radon
> (package-with-python2 python-radon))
> +
> +(define-public python-sure
> + (package
> + (name "python-sure")
> + (version "1.4.6")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (pypi-uri "sure" version))
> + (sha256
> + (base32
> + "1iyqsy2d6radi88g1qf0lziy5b39h5cpb3g5jiqyb4xi46ig3x1z"))))
> + (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)))
Committed with this diff:
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 70544058a..5adb35510 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -14944,14 +14944,12 @@ Supported metrics are:
("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")
+ (home-page "http://github.com/gabrielfalcao/sure")
+ (synopsis "Automated testing library in python for python")
(description
- "Sure is a python library for python that leverages a DSL for writing assertions.
+ "Sure is a python library that leverages a DSL for writing assertions.
Sure is heavily inspired by @code{RSpec Expectations} and @code{should.js}.")
- (license license:gpl3)))
+ (license license:gpl3+)))
Thanks!
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Sun, 04 Jun 2017 12:30:02 GMT)
Full text and
rfc822 format available.
Message #70 received at 26524 <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-couleur): New variable.
> ---
> gnu/packages/python.scm | 25 +++++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
>
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
> index 556d34d0c..989131680 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -14955,3 +14955,28 @@ Sure is heavily inspired by @code{RSpec Expectations} and @code{should.js}.")
>
> (define-public python2-sure
> (package-with-python2 python-sure))
> +
> +(define-public python2-couleur
> + ;; This package does not seem to support python3 at all, hence,
> + ;; only the python2 variant definition is provided.
> + (package
> + (name "python-couleur")
Applied with this name changed to python2-couleur...
> + (version "0.6.2")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (pypi-uri "couleur" version))
> + (sha256
> + (base32
> + "1qqaxyqz74wvid0cr119dhcwz0h0if5b5by44zl49pd5z65v58k1"))))
> + (build-system python-build-system)
> + (arguments
> + `(#:python ,python-2))
> + (home-page
> + "http://github.com/gabrielfalcao/couleur")
> + (synopsis
> + "ANSI terminal tool for python, colored shell and other handy fancy features")
> + (description
> + "@code{Couleur} provides python programs a way to use the ANSI features in a unix
> +terminal such as coloured output in the shell, overwriting output, indentation, etc.")
> + (license license:asl2.0)))
...oddly, README.md say ASL2.0, but all source code headers are LGPL3+.
https://github.com/gabrielfalcao/couleur/issues/11
I committed it as lgpl3+ and added this issue as a comment.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Sun, 04 Jun 2017 12:39:02 GMT)
Full text and
rfc822 format available.
Message #73 received at 26524 <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 (python-misaka, python2-misaka): New
> * variables.
[...]
> + (synopsis
> + "Misaka is a CFFI binding for Hoedown, a markdown parsing library")
I changed this to "Python binding for Hoedown". Applied!
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Sun, 04 Jun 2017 12:45:02 GMT)
Full text and
rfc822 format available.
Message #76 received at 26524 <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-steadymark): New variable.
Applied with this diff (description wrapped at 80 chars):
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index c8701f968..ee216116c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -15017,7 +15017,7 @@ renderers (e.g. man pages or LaTeX).")
;; due to its dependence on couleur that has no support
;; for python3
(package
- (name "python-steadymark")
+ (name "python2-steadymark")
(version "0.7.3")
(source
(origin
@@ -15035,21 +15035,18 @@ renderers (e.g. man pages or LaTeX).")
`(#:python ,python-2
#:phases
(modify-phases %standard-phases
- (add-before 'build
- 'patch-setup-py
- (lambda* (#:key inputs #:allow-other-keys)
- ;; Update requirements from dependecy==version
+ (add-before 'build 'patch-setup-py
+ (lambda _
+ ;; Update requirements from dependency==version
;; to dependency>=version
(substitute* "setup.py"
(("==") ">="))
#t)))))
- (home-page
- "http://github.com/gabrielfalcao/steadymark")
- (synopsis
- "Markdown-based test runner for python. Good for github projects")
+ (home-page "https://github.com/gabrielfalcao/steadymark")
+ (synopsis "Markdown-based test runner for python")
(description
- "@code{Steadymark} allows documentation to be written in github-flavoured markdown.
-The documentation may contain snippets of code surrounded by python code blocks and
-@code{Steadymark} will find these snippets and run them, making sure that there are no old
-malfunctional examples in the documentation examples.")
+ "@code{Steadymark} allows documentation to be written in github-flavoured
+markdown. The documentation may contain snippets of code surrounded by python
+code blocks and @code{Steadymark} will find these snippets and run them, making
+sure that there are no old malfunctional examples in the documentation examples.")
(license license:expat)))
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Sun, 04 Jun 2017 12:55:01 GMT)
Full text and
rfc822 format available.
Message #79 received at 26524-done <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 (python-nose-randomly, python2-nose-randomly):
> * New variables.
The star here is only for file paths. Applied with adjusted commit
message and wrapped description (maybe we should make the linter
stricter for descriptions; please try to wrap lines at 80 characters
or less).
I also added the missing python2 variant. Series pushed as
7e488f9991cfec1ef9e8ca5d1910a65920ab2750!
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Sun, 11 Jun 2017 01:08:02 GMT)
Full text and
rfc822 format available.
Message #82 received at 26524 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python.scm (python-sphinx-rtd-theme): Update to 0.2.4
[source]: Change release url and hash
---
gnu/packages/python.scm | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 44adcba01..366c7ea4e 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3134,16 +3134,14 @@ sources.")
(define-public python-sphinx-rtd-theme
(package
(name "python-sphinx-rtd-theme")
- (version "0.1.6")
+ (version "0.2.4")
(source
(origin
(method url-fetch)
- (uri (string-append "https://pypi.python.org/packages/source/s/"
- "sphinx_rtd_theme/sphinx_rtd_theme-"
- version ".tar.gz"))
+ (uri (pypi-uri "sphinx_rtd_theme" version))
(sha256
(base32
- "19nw3rn7awplcdrz63kg1njqwkbymfg9lwn7l2grhdyhyr2gaa8g"))))
+ "05rlhjzdyapr2w74jjs7mrm8hi69qskcr5vya9f9drpsys7lpxrd"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ; No tests.
(propagated-inputs
--
2.13.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Sun, 11 Jun 2017 01:08:02 GMT)
Full text and
rfc822 format available.
Message #85 received at 26524 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python.scm (python2-rednose): New variable.
---
gnu/packages/python.scm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 366c7ea4e..f4c7a49b6 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -13134,6 +13134,9 @@ asynchronous messaging environments.")
@command{nosetests} command of the Python Nose unit test framework.")
(license license:bsd-3)))
+(define-public python2-rednose
+ (package-with-python2 python-rednose))
+
(define-public python-flask-restplus
(package
(name "python-flask-restplus")
--
2.13.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Sun, 11 Jun 2017 01:08:03 GMT)
Full text and
rfc822 format available.
Message #88 received at 26524 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python.scm (python2-httpretty): New variable.
---
gnu/packages/python.scm | 51 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index f4c7a49b6..b21297bd9 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -15299,3 +15299,54 @@ from your Flask project. It is a fork of Flask-Swagger.")
(define-public python2-flasgger
(package-with-python2 python-flasgger))
+
+(define-public python2-httpretty
+ (package
+ (name "python2-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" ,python2-sphinx-rtd-theme)
+ ("python-sphinx" ,python2-sphinx)
+ ("python-coverage" ,python2-coverage)
+ ("python-tornado" ,python2-tornado)
+ ("python-urllib3" ,python2-urllib3)
+ ("python-sure" ,python2-sure)
+ ("python-steadymark" ,python2-steadymark)
+ ("python-requests" ,python2-requests)
+ ("python-rednose" ,python2-rednose)
+ ("python-nose-randomly" ,python2-nose-randomly)
+ ("python-misaka" ,python2-misaka)
+ ("python-pytest-httpbin" ,python2-pytest-httpbin)
+ ("python-nose" ,python2-nose)))
+ (arguments
+ `(#:tests? #f
+ ;; Requires mock>=1.3.0 which requires a more up-to-date
+ ;; python-pbr. After updating these trying to build the
+ ;; package leads to failures in python-flake8 and other
+ ;; packages. The cascade of updates and failures this
+ ;; leads to, seems to not be worth having the test run.
+ #: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* "development.txt"
+ (("==") ">="))
+ #t)))))
+ (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)))
--
2.13.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Mon, 12 Jun 2017 19:34:02 GMT)
Full text and
rfc822 format available.
Message #91 received at 26524 <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-httpretty): New variable.
Thanks!
[...]
> + (arguments
> + `(#:tests? #f
> + ;; Requires mock>=1.3.0 which requires a more up-to-date
> + ;; python-pbr. After updating these trying to build the
> + ;; package leads to failures in python-flake8 and other
> + ;; packages. The cascade of updates and failures this
> + ;; leads to, seems to not be worth having the test run.
Ugh. If you still have these patches, could you resubmit them to a new
bug report? Let's use them as a basis for a new 'python-updates' branch.
Please also include this patch as it did not apply for me. I've pushed
the other two to 'master' with slightly adjusted commit messages.
You can open a new issue by sending a message to guix-patches <at> gnu.org,
and send the patch series to [bug id]@debbugs.gnu.org. The initial email
is typically a cover letter generated by git-format-patch(1).
Python 3.6.2 is due in two weeks[0]. If we get 'core-updates' ready by
then, we can start building 3.6 substitutes right away. :-)
[0] https://www.python.org/dev/peps/pep-0494/#id2
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Tue, 13 Jun 2017 12:47:02 GMT)
Full text and
rfc822 format available.
Message #94 received at 26524 <at> debbugs.gnu.org (full text, mbox):
On Mon, Jun 12, 2017 at 10:33 PM, Marius Bakke <mbakke <at> fastmail.com> wrote:
> Muriithi Frederick Muriuki <fredmanglis <at> gmail.com> writes:
>
> Ugh. If you still have these patches, could you resubmit them to a new
> bug report? Let's use them as a basis for a new 'python-updates' branch.
> Please also include this patch as it did not apply for me. I've pushed
> the other two to 'master' with slightly adjusted commit messages.
>
I did not retain the patches, but I'll regenerate them and send them.
As for httpretty, it is one of the dependencies for conda: do I send
it here, or with the patches for the newer python?
--
Frederick M. Muriithi
Information forwarded
to
guix-patches <at> gnu.org
:
bug#26524
; Package
guix-patches
.
(Wed, 14 Jun 2017 18:06:01 GMT)
Full text and
rfc822 format available.
Message #97 received at 26524 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Frederick Muriithi <fredmanglis <at> gmail.com> writes:
> On Mon, Jun 12, 2017 at 10:33 PM, Marius Bakke <mbakke <at> fastmail.com> wrote:
>> Muriithi Frederick Muriuki <fredmanglis <at> gmail.com> writes:
>>
>> Ugh. If you still have these patches, could you resubmit them to a new
>> bug report? Let's use them as a basis for a new 'python-updates' branch.
>> Please also include this patch as it did not apply for me. I've pushed
>> the other two to 'master' with slightly adjusted commit messages.
>>
>
> I did not retain the patches, but I'll regenerate them and send them.
Great!
> As for httpretty, it is one of the dependencies for conda: do I send
> it here, or with the patches for the newer python?
Please do not send patches to closed bug-reports like this one. You can
send it with the others (but mention that it should go to 'master'),
standalone, or preferably along with other Conda-related patches :-)
Thanks!
[signature.asc (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 13 Jul 2017 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 343 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.