GNU bug report logs - #37598
[PATCH 0/4] gnu: Add Cookiecutter and its inputs

Previous Next

Package: guix-patches;

Reported by: Tanguy Le Carrour <tanguy <at> bioneland.org>

Date: Thu, 3 Oct 2019 12:14:02 UTC

Severity: normal

Tags: patch

Done: Mathieu Othacehe <m.othacehe <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37598 in the body.
You can then email your comments to 37598 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Thu, 03 Oct 2019 12:14:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tanguy Le Carrour <tanguy <at> bioneland.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 03 Oct 2019 12:14:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: Guix <guix-patches <at> gnu.org>
Subject: [PATCH 0/4] gnu: Add Cookiecutter and its inputs
Date: Thu, 3 Oct 2019 14:13:16 +0200
Add packages for [cookiecutter][] and its inputs.

[cookiecutter]: https://github.com/cookiecutter/cookiecutter

-- 
Tanguy




Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Thu, 03 Oct 2019 12:17:01 GMT) Full text and rfc822 format available.

Message #8 received at 37598 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 37598 <at> debbugs.gnu.org
Subject: [PATCH 1/4] gnu: Add Cookiecutter and its inputs
Date: Thu, 3 Oct 2019 14:16:15 +0200
[Message part 1 (text/plain, inline)]
-- 
Tanguy
[0001-gnu-Add-Cookiecutter-and-its-inputs.patch (text/plain, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Thu, 03 Oct 2019 12:18:02 GMT) Full text and rfc822 format available.

Message #11 received at 37598 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 37598 <at> debbugs.gnu.org
Subject: [PATCH 2/4] gnu: Add Cookiecutter and its inputs
Date: Thu, 3 Oct 2019 14:17:07 +0200
[Message part 1 (text/plain, inline)]
-- 
Tanguy
[0002-gnu-Add-Cookiecutter-and-its-inputs.patch (text/plain, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Thu, 03 Oct 2019 12:19:02 GMT) Full text and rfc822 format available.

Message #14 received at 37598 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 37598 <at> debbugs.gnu.org
Subject: [PATCH 3/4] gnu: Add Cookiecutter and its inputs
Date: Thu, 3 Oct 2019 14:18:35 +0200
[Message part 1 (text/plain, inline)]
-- 
Tanguy
[0003-gnu-Add-Cookiecutter-and-its-inputs.patch (text/plain, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Thu, 03 Oct 2019 12:20:01 GMT) Full text and rfc822 format available.

Message #17 received at 37598 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 37598 <at> debbugs.gnu.org
Subject: [PATCH 4/4] gnu: Add Cookiecutter and its inputs
Date: Thu, 3 Oct 2019 14:19:33 +0200
[Message part 1 (text/plain, inline)]
-- 
Tanguy
[0004-gnu-Add-Cookiecutter-and-its-inputs.patch (text/plain, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Fri, 04 Oct 2019 07:01:02 GMT) Full text and rfc822 format available.

Message #20 received at 37598 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 37598 <at> debbugs.gnu.org
Subject: [PATCH 0/4] gnu: Add python-cookiecutter and its inputs.
Date: Fri, 4 Oct 2019 09:00:44 +0200
I've just figured out that the patches were not properly inlined!
Sorry for that! I'm re-sending them.

-- 
Tanguy




Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Fri, 04 Oct 2019 07:21:01 GMT) Full text and rfc822 format available.

Message #23 received at 37598 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 37598 <at> debbugs.gnu.org
Subject: [PATCH 1/4] gnu: Add python-jinja2-time.
Date: Fri, 4 Oct 2019 09:20:40 +0200
[Message part 1 (text/plain, inline)]

[Message part 2 (text/plain, inline)]
From 4a36e29b417f5a3ca109f3148d8352f6177dc52d Mon Sep 17 00:00:00 2001
From: "tanguy <at> bioneland.org" <tanguy <at> bioneland.org>
Date: Thu, 3 Oct 2019 09:05:26 +0200
Subject: [PATCH 1/4] gnu: Add python-jinja2-time.

---
 gnu/packages/python-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 413d68c258..6309ac4b8e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -66,6 +66,7 @@
 ;;; Copyright © 2019 Jacob MacDonald <jaccarmac <at> gmail.com>
 ;;; Copyright © 2019 Giacomo Leidi <goodoldpaul <at> autistici.org>
 ;;; Copyright © 2019 Wiktor Żelazny <wzelazny <at> vurv.cz>
+;;; Copyright © 2019 Tanguy Le Carrour <tanguy <at> bioneland.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2475,6 +2476,28 @@ written in pure Python.")
 (define-public python2-jinja2
   (package-with-python2 python-jinja2))
 
+(define-public python-jinja2-time
+  (package
+    (name "python-jinja2-time")
+    (version "0.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "jinja2-time" version))
+       (sha256
+        (base32
+         "0h0dr7cfpjnjj8bgl2vk9063a53649pn37wnlkd8hxjy656slkni"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-arrow" ,python-arrow)
+       ("python-jinja2" ,python-jinja2)))
+    (home-page
+     "https://github.com/hackebrot/jinja2-time")
+    (synopsis "Jinja2 Extension for Dates and Times")
+    (description
+     "Jinja2 Extension for Dates and Times")
+    (license license:expat)))
+
 (define-public python-pystache
   (package
     (name "python-pystache")
-- 
2.23.0


Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Fri, 04 Oct 2019 07:23:02 GMT) Full text and rfc822 format available.

Message #26 received at 37598 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 37598 <at> debbugs.gnu.org
Subject: [PATCH 2/4] gnu: Add python-poyo.
Date: Fri, 4 Oct 2019 09:21:57 +0200
[Message part 1 (text/plain, inline)]

[Message part 2 (text/plain, inline)]
From d813e412ef063f4b1574a631d66ef526f955e044 Mon Sep 17 00:00:00 2001
From: "tanguy <at> bioneland.org" <tanguy <at> bioneland.org>
Date: Thu, 3 Oct 2019 09:13:59 +0200
Subject: [PATCH 2/4] gnu: Add python-poyo.

---
 gnu/packages/python-xyz.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6309ac4b8e..a21029a5dc 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1552,6 +1552,25 @@ existing ones.")
                    ;; Tests don't work with python2.
                    #:tests? #f)))))
 
+(define-public python-poyo
+  (package
+    (name "python-poyo")
+    (version "0.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "poyo" version))
+       (sha256
+        (base32
+         "1pflivs6j22frz0v3dqxnvc8yb8fb52g11lqr88z0i8cg2m5csg2"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/hackebrot/poyo")
+    (synopsis
+     "Lightweight YAML Parser for Python")
+    (description
+     "A lightweight YAML Parser for Python.")
+    (license license:expat)))
+
 (define-public scons
   (package
     (name "scons")
-- 
2.23.0


Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Fri, 04 Oct 2019 07:24:01 GMT) Full text and rfc822 format available.

Message #29 received at 37598 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 37598 <at> debbugs.gnu.org
Subject: [PATCH 3/4] gnu: Add python-whichcraft.
Date: Fri, 4 Oct 2019 09:23:21 +0200
[Message part 1 (text/plain, inline)]

[Message part 2 (text/plain, inline)]
From 400f3e8de89021604a0aae16df9eab28cf8f56e7 Mon Sep 17 00:00:00 2001
From: "tanguy <at> bioneland.org" <tanguy <at> bioneland.org>
Date: Thu, 3 Oct 2019 09:17:05 +0200
Subject: [PATCH 3/4] gnu: Add python-whichcraft.

---
 gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a21029a5dc..cd3a3e6c99 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9108,6 +9108,28 @@ server with very acceptable performance.")
 (define-public python2-waitress
   (package-with-python2 python-waitress))
 
+(define-public python-whichcraft
+  (package
+    (name "python-whichcraft")
+    (version "0.6.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "whichcraft" version))
+       (sha256
+        (base32
+         "11yfkzyplizdgndy34vyd5qlmr1n5mxis3a3svxmx8fnccdvknxc"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
+    (home-page
+     "https://github.com/pydanny/whichcraft")
+    (synopsis
+     "This package provides cross-platform cross-python shutil.which functionality")
+    (description
+     "This package provides cross-platform cross-python shutil.which functionality.")
+    (license license:bsd-3)))
+
 (define-public python-pyquery
   (package
     (name "python-pyquery")
-- 
2.23.0


Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Fri, 04 Oct 2019 07:25:02 GMT) Full text and rfc822 format available.

Message #32 received at 37598 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 37598 <at> debbugs.gnu.org
Subject: [PATCH 4/4] gnu: Add python-cookiecutter.
Date: Fri, 4 Oct 2019 09:24:36 +0200
[Message part 1 (text/plain, inline)]

[Message part 2 (text/plain, inline)]
From ef47c7b065efa56c773ed66eff92984b15a4b6fd Mon Sep 17 00:00:00 2001
From: "tanguy <at> bioneland.org" <tanguy <at> bioneland.org>
Date: Thu, 3 Oct 2019 09:23:24 +0200
Subject: [PATCH 4/4] gnu: Add python-cookiecutter.

---
 gnu/packages/python-xyz.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index cd3a3e6c99..9cdd1f2e70 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9130,6 +9130,41 @@ server with very acceptable performance.")
      "This package provides cross-platform cross-python shutil.which functionality.")
     (license license:bsd-3)))
 
+(define-public python-cookiecutter
+  (package
+    (name "python-cookiecutter")
+    (version "1.6.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "cookiecutter" version))
+       (sha256
+        (base32
+         "0glsvaz8igi2wy1hsnhm9fkn6560vdvdixzvkq6dn20z3hpaa5hk"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-freezegun" ,python-freezegun)
+       ("python-pytest" ,python-pytest)
+       ("python-pytest-catchlog" ,python-pytest-catchlog)
+       ("python-pytest-cov" ,python-pytest-cov)
+       ("python-pytest-mock" ,python-pytest-mock)))
+    (propagated-inputs
+     `(("python-binaryornot" ,python-binaryornot)
+       ("python-click" ,python-click)
+       ("python-future" ,python-future)
+       ("python-jinja2" ,python-jinja2)
+       ("python-jinja2-time" ,python-jinja2-time)
+       ("python-poyo" ,python-poyo)
+       ("python-requests" ,python-requests)
+       ("python-whichcraft" ,python-whichcraft)))
+    (home-page
+     "https://github.com/audreyr/cookiecutter")
+    (synopsis
+     "Command-line utility that creates projects from project templates")
+    (description "A command-line utility that creates projects from project templates,
+e.g. creating a Python package project from a Python package project template.")
+    (license license:bsd-3)))
+
 (define-public python-pyquery
   (package
     (name "python-pyquery")
-- 
2.23.0


Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Fri, 04 Oct 2019 07:51:02 GMT) Full text and rfc822 format available.

Message #35 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mathieu Othacehe <m.othacehe <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: 37598 <at> debbugs.gnu.org
Subject: Re: [bug#37598] [PATCH 1/4] gnu: Add python-jinja2-time.
Date: Fri, 04 Oct 2019 09:50:40 +0200
Hello Tanguy,

Thanks for your patches. A few remarks (more details at
https://guix.gnu.org/manual/en/html_node/Submitting-Patches.html):

> Subject: [PATCH 1/4] gnu: Add python-jinja2-time.
>

You need to add a commit message, compliant with ChangeLog format. You
can find examples in commit history.

> +    (description
> +     "Jinja2 Extension for Dates and Times")

Description should follow the rules dictated at
https://guix.gnu.org/manual/en/html_node/Synopses-and-Descriptions.html#Synopses-and-Descriptions,
most specifically "Descriptions should take between five and ten
lines. Use full sentences, and avoid using acronyms without first
introducing them".

Otherwise, your serie seems fine :)

Thanks,

Mathieu





Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Fri, 04 Oct 2019 07:51:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Sun, 13 Oct 2019 22:03:01 GMT) Full text and rfc822 format available.

Message #41 received at 37598 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Tanguy Le Carrour <tanguy <at> bioneland.org>
Cc: 37598 <at> debbugs.gnu.org, Mathieu Othacehe <m.othacehe <at> gmail.com>
Subject: Re: [bug#37598] [PATCH 1/4] gnu: Add python-jinja2-time.
Date: Mon, 14 Oct 2019 00:02:43 +0200
Hi Tanguy,

Did you have a chance to look into Mathieu’s suggestions (below)?

We’re almost there so let’s make sure we don’t forget about this patch
series!

Thanks in advance,
Ludo’.

Mathieu Othacehe <m.othacehe <at> gmail.com> skribis:

> Hello Tanguy,
>
> Thanks for your patches. A few remarks (more details at
> https://guix.gnu.org/manual/en/html_node/Submitting-Patches.html):
>
>> Subject: [PATCH 1/4] gnu: Add python-jinja2-time.
>>
>
> You need to add a commit message, compliant with ChangeLog format. You
> can find examples in commit history.
>
>> +    (description
>> +     "Jinja2 Extension for Dates and Times")
>
> Description should follow the rules dictated at
> https://guix.gnu.org/manual/en/html_node/Synopses-and-Descriptions.html#Synopses-and-Descriptions,
> most specifically "Descriptions should take between five and ten
> lines. Use full sentences, and avoid using acronyms without first
> introducing them".
>
> Otherwise, your serie seems fine :)
>
> Thanks,
>
> Mathieu




Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Mon, 14 Oct 2019 07:10:01 GMT) Full text and rfc822 format available.

Message #44 received at 37598 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 37598 <at> debbugs.gnu.org, Mathieu Othacehe <m.othacehe <at> gmail.com>
Subject: Re: [bug#37598] [PATCH 1/4] gnu: Add python-jinja2-time.
Date: Mon, 14 Oct 2019 09:09:30 +0200
Hi Ludovic, Hi Mathieu!


Le 10/14, Ludovic Courtès a écrit :
> Did you have a chance to look into Mathieu’s suggestions (below)?

No!… because I don't get notifications when someone sends a comment on a
bug I opened! :-(
I have to go and check the 2 others I opened, I guess! I hope I didn't
seem to give up on them!


> Mathieu Othacehe <m.othacehe <at> gmail.com> skribis:
> > Hello Tanguy,

Sorry for not answering! And thanks for the time you spent into
reviewing my patches!


> > Thanks for your patches. A few remarks (more details at
> > https://guix.gnu.org/manual/en/html_node/Submitting-Patches.html):
> >
> >> Subject: [PATCH 1/4] gnu: Add python-jinja2-time.
> >
> > You need to add a commit message, compliant with ChangeLog format. You
> > can find examples in commit history.

I have to confess that I am… a minimalist! :-)
I thought that `gnu: Add python-jinja2-time.` would be enough and I didn't have
to go into more details about the "why"!
Please believe me when I say that it was not out of laziness.
I'll go dig into commit messages and see what I have to add.


> >> +    (description
> >> +     "Jinja2 Extension for Dates and Times")
> >
> > Description should follow the rules dictated at
> > https://guix.gnu.org/manual/en/html_node/Synopses-and-Descriptions.html#Synopses-and-Descriptions,
> > most specifically "Descriptions should take between five and ten
> > lines. Use full sentences, and avoid using acronyms without first
> > introducing them".

OK, this one was pure laziness! So far, I've never modified description/synopsis
provided by `guix import`.
I guess, now that I'm more comfortable with the process, I can focus more on
"what" I am submitting and less on "how" I am submitting it!

Thanks again guys for your time. I'll fix the patches and resubmit them as
soon as I can!


-- 
Tanguy




Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Mon, 14 Oct 2019 14:30:02 GMT) Full text and rfc822 format available.

Message #47 received at 37598 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 37598 <at> debbugs.gnu.org
Subject: Updating patches
Date: Mon, 14 Oct 2019 16:29:16 +0200
I've updated the commit messages.

For the "descriptions", I did what I could, but the one for
python-jinja2-time will remain "Jinja2 Extension for Dates and Times".
Am I supposed to put more than what is on the source code?

-- 
Tanguy




Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Mon, 14 Oct 2019 14:31:02 GMT) Full text and rfc822 format available.

Message #50 received at 37598 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 37598 <at> debbugs.gnu.org
Subject: [PATCH 1/4] gnu: Add python-jinja2-time.
Date: Mon, 14 Oct 2019 16:30:55 +0200
[Message part 1 (text/plain, inline)]

[Message part 2 (text/plain, inline)]
From 46e1cf437a89a045f78b4d07c3d6865edbecea19 Mon Sep 17 00:00:00 2001
From: Tanguy Le Carrour <tanguy <at> bioneland.org>
Date: Thu, 3 Oct 2019 09:05:26 +0200
Subject: [PATCH 1/4] gnu: Add python-jinja2-time.

* gnu/packages/python-xyz.scm (python-jinja2-time): New public variable.
---
 gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8137d665fd..2bcf352278 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -66,6 +66,7 @@
 ;;; Copyright © 2019 Jacob MacDonald <jaccarmac <at> gmail.com>
 ;;; Copyright © 2019 Giacomo Leidi <goodoldpaul <at> autistici.org>
 ;;; Copyright © 2019 Wiktor Żelazny <wzelazny <at> vurv.cz>
+;;; Copyright © 2019 Tanguy Le Carrour <tanguy <at> bioneland.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2495,6 +2496,27 @@ written in pure Python.")
 (define-public python2-jinja2
   (package-with-python2 python-jinja2))
 
+(define-public python-jinja2-time
+  (package
+    (name "python-jinja2-time")
+    (version "0.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "jinja2-time" version))
+       (sha256
+        (base32
+         "0h0dr7cfpjnjj8bgl2vk9063a53649pn37wnlkd8hxjy656slkni"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-arrow" ,python-arrow)
+       ("python-jinja2" ,python-jinja2)))
+    (home-page
+     "https://github.com/hackebrot/jinja2-time")
+    (synopsis "Jinja2 Extension for Dates and Times")
+    (description "Jinja2 Extension for Dates and Times.")
+    (license license:expat)))
+
 (define-public python-pystache
   (package
     (name "python-pystache")
-- 
2.23.0


Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Mon, 14 Oct 2019 14:32:01 GMT) Full text and rfc822 format available.

Message #53 received at 37598 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 37598 <at> debbugs.gnu.org
Subject: [PATCH 2/4] gnu: Add python-poyo.
Date: Mon, 14 Oct 2019 16:31:25 +0200
[Message part 1 (text/plain, inline)]

[Message part 2 (text/plain, inline)]
From 37783c5809b0ca20ef0c8fdd0a9667881ed04ade Mon Sep 17 00:00:00 2001
From: Tanguy Le Carrour <tanguy <at> bioneland.org>
Date: Thu, 3 Oct 2019 09:13:59 +0200
Subject: [PATCH 2/4] gnu: Add python-poyo.

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

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2bcf352278..6a137c9c90 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1572,6 +1572,23 @@ existing ones.")
                    ;; Tests don't work with python2.
                    #:tests? #f)))))
 
+(define-public python-poyo
+  (package
+    (name "python-poyo")
+    (version "0.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "poyo" version))
+       (sha256
+        (base32
+         "1pflivs6j22frz0v3dqxnvc8yb8fb52g11lqr88z0i8cg2m5csg2"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/hackebrot/poyo")
+    (synopsis "Lightweight YAML Parser for Python")
+    (description "A lightweight YAML Parser for Python.")
+    (license license:expat)))
+
 (define-public scons
   (package
     (name "scons")
-- 
2.23.0


Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Mon, 14 Oct 2019 14:32:02 GMT) Full text and rfc822 format available.

Message #56 received at 37598 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 37598 <at> debbugs.gnu.org
Subject: [PATCH 3/4] gnu: Add python-whichcraft.
Date: Mon, 14 Oct 2019 16:31:53 +0200
[Message part 1 (text/plain, inline)]

[Message part 2 (text/plain, inline)]
From d3c25dee610fbf6f7e06166bd001d5c0b6b39809 Mon Sep 17 00:00:00 2001
From: Tanguy Le Carrour <tanguy <at> bioneland.org>
Date: Thu, 3 Oct 2019 09:17:05 +0200
Subject: [PATCH 3/4] gnu: Add python-whichcraft.

* gnu/packages/python-xyz.scm (python-whichcraft): New public variable.
---
 gnu/packages/python-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6a137c9c90..5874725f8e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9120,6 +9120,29 @@ server with very acceptable performance.")
 (define-public python2-waitress
   (package-with-python2 python-waitress))
 
+(define-public python-whichcraft
+  (package
+    (name "python-whichcraft")
+    (version "0.6.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "whichcraft" version))
+       (sha256
+        (base32
+         "11yfkzyplizdgndy34vyd5qlmr1n5mxis3a3svxmx8fnccdvknxc"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
+    (home-page
+     "https://github.com/pydanny/whichcraft")
+    (synopsis "Cross-platform cross-python shutil.which functionality")
+    (description
+     "A shim of the shutil.which function that's designed to work
+across multiple versions of Python. The code for Python 2.x is based on
+Python 3 code that I extracted from source.")
+    (license license:bsd-3)))
+
 (define-public python-pyquery
   (package
     (name "python-pyquery")
-- 
2.23.0


Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Mon, 14 Oct 2019 14:33:01 GMT) Full text and rfc822 format available.

Message #59 received at 37598 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 37598 <at> debbugs.gnu.org
Subject: [PATCH 4/4] gnu: Add python-cookiecutter.
Date: Mon, 14 Oct 2019 16:32:18 +0200
[Message part 1 (text/plain, inline)]

[Message part 2 (text/plain, inline)]
From 477884a1dc3a479bba89d44a9f0f1ef5189c3e09 Mon Sep 17 00:00:00 2001
From: Tanguy Le Carrour <tanguy <at> bioneland.org>
Date: Thu, 3 Oct 2019 09:23:24 +0200
Subject: [PATCH 4/4] gnu: Add python-cookiecutter.

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

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5874725f8e..a7580519f9 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9143,6 +9143,42 @@ across multiple versions of Python. The code for Python 2.x is based on
 Python 3 code that I extracted from source.")
     (license license:bsd-3)))
 
+(define-public python-cookiecutter
+  (package
+    (name "python-cookiecutter")
+    (version "1.6.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "cookiecutter" version))
+       (sha256
+        (base32
+         "0glsvaz8igi2wy1hsnhm9fkn6560vdvdixzvkq6dn20z3hpaa5hk"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-freezegun" ,python-freezegun)
+       ("python-pytest" ,python-pytest)
+       ("python-pytest-catchlog" ,python-pytest-catchlog)
+       ("python-pytest-cov" ,python-pytest-cov)
+       ("python-pytest-mock" ,python-pytest-mock)))
+    (propagated-inputs
+     `(("python-binaryornot" ,python-binaryornot)
+       ("python-click" ,python-click)
+       ("python-future" ,python-future)
+       ("python-jinja2" ,python-jinja2)
+       ("python-jinja2-time" ,python-jinja2-time)
+       ("python-poyo" ,python-poyo)
+       ("python-requests" ,python-requests)
+       ("python-whichcraft" ,python-whichcraft)))
+    (home-page
+     "https://github.com/audreyr/cookiecutter")
+    (synopsis
+     "Command-line utility that creates projects from project templates")
+    (description
+     "A command-line utility that creates projects from project templates,
+e.g. creating a Python package project from a Python package project template.")
+    (license license:bsd-3)))
+
 (define-public python-pyquery
   (package
     (name "python-pyquery")
-- 
2.23.0


Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Mon, 14 Oct 2019 15:21:01 GMT) Full text and rfc822 format available.

Message #62 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mathieu Othacehe <m.othacehe <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: 37598 <at> debbugs.gnu.org
Subject: Re: [bug#37598] Updating patches
Date: Mon, 14 Oct 2019 17:20:15 +0200
Hey Tanguy,

> I've updated the commit messages.

Good!

>
> For the "descriptions", I did what I could, but the one for
> python-jinja2-time will remain "Jinja2 Extension for Dates and Times".
> Am I supposed to put more than what is on the source code?

Yes, as I said earlier, you need to make a full sentence, for example:

"This package provides an extension to Jinja2 to support dates and
times."

Then it would be nice to add some more informations if possible. For
instance Debian is saying that:

"This extension for the template engine Jinja2 adds a "now" tag
providing a convenient access to the arrow.now() API from templates. A
format string can be provided to control the output."

This is also true for the rest of the serie.

Thanks,

Mathieu




Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Mon, 14 Oct 2019 15:21:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Mon, 14 Oct 2019 20:26:01 GMT) Full text and rfc822 format available.

Message #68 received at 37598 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Tanguy Le Carrour <tanguy <at> bioneland.org>
Cc: 37598 <at> debbugs.gnu.org, Mathieu Othacehe <m.othacehe <at> gmail.com>
Subject: Re: [bug#37598] [PATCH 1/4] gnu: Add python-jinja2-time.
Date: Mon, 14 Oct 2019 22:25:41 +0200
Hi,

Tanguy Le Carrour <tanguy <at> bioneland.org> skribis:

> Thanks again guys for your time. I'll fix the patches and resubmit them as
> soon as I can!

Alright, thank you!  :-)

Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Tue, 15 Oct 2019 07:39:02 GMT) Full text and rfc822 format available.

Message #71 received at 37598 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 37598 <at> debbugs.gnu.org
Subject: [PATCH 1/4] gnu: Add python-jinja2-time.
Date: Tue, 15 Oct 2019 09:37:59 +0200
[Message part 1 (text/plain, inline)]

[Message part 2 (text/plain, inline)]
From db4b5fe42bab56aca9fd5d5846349f3dd3c72d1d Mon Sep 17 00:00:00 2001
From: Tanguy Le Carrour <tanguy <at> bioneland.org>
Date: Thu, 3 Oct 2019 09:05:26 +0200
Subject: [PATCH 1/4] gnu: Add python-jinja2-time.

* gnu/packages/python-xyz.scm (python-jinja2-time): New public variable.
---
 gnu/packages/python-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d555512ed7..74898d1a87 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -66,6 +66,7 @@
 ;;; Copyright © 2019 Jacob MacDonald <jaccarmac <at> gmail.com>
 ;;; Copyright © 2019 Giacomo Leidi <goodoldpaul <at> autistici.org>
 ;;; Copyright © 2019 Wiktor Żelazny <wzelazny <at> vurv.cz>
+;;; Copyright © 2019 Tanguy Le Carrour <tanguy <at> bioneland.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2495,6 +2496,30 @@ written in pure Python.")
 (define-public python2-jinja2
   (package-with-python2 python-jinja2))
 
+(define-public python-jinja2-time
+  (package
+    (name "python-jinja2-time")
+    (version "0.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "jinja2-time" version))
+       (sha256
+        (base32
+         "0h0dr7cfpjnjj8bgl2vk9063a53649pn37wnlkd8hxjy656slkni"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-arrow" ,python-arrow)
+       ("python-jinja2" ,python-jinja2)))
+    (home-page
+     "https://github.com/hackebrot/jinja2-time")
+    (synopsis "Jinja2 Extension for Dates and Times")
+    (description
+     "This extension for the template engine Jinja2 adds a 'now' tag providing
+a convenient access to the arrow.now() API from templates. A format string can
+be provided to control the output.")
+    (license license:expat)))
+
 (define-public python-pystache
   (package
     (name "python-pystache")
-- 
2.23.0


Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Tue, 15 Oct 2019 07:39:02 GMT) Full text and rfc822 format available.

Message #74 received at 37598 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 37598 <at> debbugs.gnu.org
Subject: [PATCH 2/4] gnu: Add python-poyo.
Date: Tue, 15 Oct 2019 09:38:24 +0200
[Message part 1 (text/plain, inline)]

[Message part 2 (text/plain, inline)]
From a08b69b276c31b42b13d86732c93abc6984b6048 Mon Sep 17 00:00:00 2001
From: Tanguy Le Carrour <tanguy <at> bioneland.org>
Date: Thu, 3 Oct 2019 09:13:59 +0200
Subject: [PATCH 2/4] gnu: Add python-poyo.

* gnu/packages/python-xyz.scm (python-poyo): New public variable.
---
 gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 74898d1a87..0852877eb2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1572,6 +1572,27 @@ existing ones.")
                    ;; Tests don't work with python2.
                    #:tests? #f)))))
 
+(define-public python-poyo
+  (package
+    (name "python-poyo")
+    (version "0.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "poyo" version))
+       (sha256
+        (base32
+         "1pflivs6j22frz0v3dqxnvc8yb8fb52g11lqr88z0i8cg2m5csg2"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/hackebrot/poyo")
+    (synopsis "Lightweight YAML Parser for Python")
+    (description
+     "A lightweight YAML Parser for Python. It supports only a chosen subset
+of the YAML format that is required to parse cookiecutter user configuration
+files. It does not have support for serializing into YAML and is not compatible
+with JSON.")
+    (license license:expat)))
+
 (define-public scons
   (package
     (name "scons")
-- 
2.23.0


Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Tue, 15 Oct 2019 07:41:02 GMT) Full text and rfc822 format available.

Message #77 received at 37598 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 37598 <at> debbugs.gnu.org
Subject: [PATCH 3/4] gnu: Add python-whichcraft.
Date: Tue, 15 Oct 2019 09:40:59 +0200
[Message part 1 (text/plain, inline)]

[Message part 2 (text/plain, inline)]
From 7e6bea798c400db245ae77c12b667cd3771dfb45 Mon Sep 17 00:00:00 2001
From: Tanguy Le Carrour <tanguy <at> bioneland.org>
Date: Thu, 3 Oct 2019 09:17:05 +0200
Subject: [PATCH 3/4] gnu: Add python-whichcraft.

* gnu/packages/python-xyz.scm (python-whichcraft): New public variable.
---
 gnu/packages/python-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0852877eb2..1a175295e7 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9127,6 +9127,29 @@ server with very acceptable performance.")
 (define-public python2-waitress
   (package-with-python2 python-waitress))
 
+(define-public python-whichcraft
+  (package
+    (name "python-whichcraft")
+    (version "0.6.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "whichcraft" version))
+       (sha256
+        (base32
+         "11yfkzyplizdgndy34vyd5qlmr1n5mxis3a3svxmx8fnccdvknxc"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
+    (home-page
+     "https://github.com/pydanny/whichcraft")
+    (synopsis "Cross-platform cross-python shutil.which functionality")
+    (description
+     "A shim of the shutil.which function that's designed to work
+across multiple versions of Python. The code for Python 2.x is based on
+Python 3 code that I extracted from source.")
+    (license license:bsd-3)))
+
 (define-public python-pyquery
   (package
     (name "python-pyquery")
-- 
2.23.0


Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Tue, 15 Oct 2019 07:42:02 GMT) Full text and rfc822 format available.

Message #80 received at 37598 <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: 37598 <at> debbugs.gnu.org
Subject: [PATCH 4/4] gnu: Add python-cookiecutter.
Date: Tue, 15 Oct 2019 09:41:28 +0200
[Message part 1 (text/plain, inline)]

[Message part 2 (text/plain, inline)]
From cf7ec0ca0510536bd7b067b81ba02fdcaadb8c0c Mon Sep 17 00:00:00 2001
From: Tanguy Le Carrour <tanguy <at> bioneland.org>
Date: Thu, 3 Oct 2019 09:23:24 +0200
Subject: [PATCH 4/4] gnu: Add python-cookiecutter.

* gnu/packages/python-xyz.scm (python-cookiecutter): New public variable.
---
 gnu/packages/python-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 1a175295e7..ca3b033c71 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9150,6 +9150,45 @@ across multiple versions of Python. The code for Python 2.x is based on
 Python 3 code that I extracted from source.")
     (license license:bsd-3)))
 
+(define-public python-cookiecutter
+  (package
+    (name "python-cookiecutter")
+    (version "1.6.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "cookiecutter" version))
+       (sha256
+        (base32
+         "0glsvaz8igi2wy1hsnhm9fkn6560vdvdixzvkq6dn20z3hpaa5hk"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-freezegun" ,python-freezegun)
+       ("python-pytest" ,python-pytest)
+       ("python-pytest-catchlog" ,python-pytest-catchlog)
+       ("python-pytest-cov" ,python-pytest-cov)
+       ("python-pytest-mock" ,python-pytest-mock)))
+    (propagated-inputs
+     `(("python-binaryornot" ,python-binaryornot)
+       ("python-click" ,python-click)
+       ("python-future" ,python-future)
+       ("python-jinja2" ,python-jinja2)
+       ("python-jinja2-time" ,python-jinja2-time)
+       ("python-poyo" ,python-poyo)
+       ("python-requests" ,python-requests)
+       ("python-whichcraft" ,python-whichcraft)))
+    (home-page
+     "https://github.com/audreyr/cookiecutter")
+    (synopsis
+     "Command-line utility that creates projects from project templates")
+    (description
+     "A command-line utility that creates projects from project templates,
+e.g. creating a Python package project from a Python package project
+template.  It's cross-platform (Windows, Mac, and Linux are officially
+supported). It works with Python 2.7, 3.4, 3.5, 3.6, and PyPy. Project templates
+can be in any programming language or markup format.")
+    (license license:bsd-3)))
+
 (define-public python-pyquery
   (package
     (name "python-pyquery")
-- 
2.23.0


Reply sent to Mathieu Othacehe <m.othacehe <at> gmail.com>:
You have taken responsibility. (Tue, 15 Oct 2019 12:29:01 GMT) Full text and rfc822 format available.

Notification sent to Tanguy Le Carrour <tanguy <at> bioneland.org>:
bug acknowledged by developer. (Tue, 15 Oct 2019 12:29:02 GMT) Full text and rfc822 format available.

Message #85 received at 37598-done <at> debbugs.gnu.org (full text, mbox):

From: Mathieu Othacehe <m.othacehe <at> gmail.com>
To: Tanguy Le Carrour <tanguy <at> bioneland.org>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 37598-done <at> debbugs.gnu.org
Subject: Re: [bug#37598] [PATCH 1/4] gnu: Add python-jinja2-time.
Date: Tue, 15 Oct 2019 14:28:42 +0200
Hello Tanguy,

> Thanks again guys for your time. I'll fix the patches and resubmit them as
> soon as I can!

I pushed this serie with a few adjustments to description fields.

Thanks,

Mathieu





Information forwarded to guix-patches <at> gnu.org:
bug#37598; Package guix-patches. (Tue, 15 Oct 2019 13:15:02 GMT) Full text and rfc822 format available.

Message #88 received at 37598-done <at> debbugs.gnu.org (full text, mbox):

From: Tanguy Le Carrour <tanguy <at> bioneland.org>
To: Mathieu Othacehe <m.othacehe <at> gmail.com>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 37598-done <at> debbugs.gnu.org
Subject: Re: [bug#37598] [PATCH 1/4] gnu: Add python-jinja2-time.
Date: Tue, 15 Oct 2019 15:14:07 +0200
Le 10/15, Mathieu Othacehe a écrit :
> I pushed this serie with a few adjustments to description fields.

Thanks! Can't wait to see the adjustments! :-) So many things I still
have to learn!

-- 
Tanguy




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 13 Nov 2019 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 166 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.