GNU bug report logs - #48289
[PATCH] gnu: Add python-pythonanywhere.

Previous Next

Package: guix-patches;

Reported by: Filip Lajszczak <filip <at> lajszczak.dev>

Date: Sat, 8 May 2021 15:51:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

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 48289 in the body.
You can then email your comments to 48289 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#48289; Package guix-patches. (Sat, 08 May 2021 15:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Filip Lajszczak <filip <at> lajszczak.dev>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 08 May 2021 15:51:02 GMT) Full text and rfc822 format available.

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

From: Filip Lajszczak <filip <at> lajszczak.dev>
To: guix-patches <at> gnu.org
Cc: Filip Lajszczak <filip <at> lajszczak.dev>
Subject: [PATCH] gnu: Add python-pythonanywhere.
Date: Sat,  8 May 2021 15:28:49 +0200
* gnu/packages/python-xyz.scm (python-pythonanywhere): New variable.
---
 gnu/packages/python-xyz.scm | 47 +++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index de7c303b6c..083d26c212 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -99,6 +99,7 @@
 ;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus <at> gmail.com>
 ;;; Copyright © 2021 Ellis Kenyő <me <at> elken.dev>
 ;;; Copyright © 2021 LibreMiami <packaging-guix <at> libremiami.org>
+;;; Copyright © 2021 Filip Lajszczak <filip <at> lajszczak.dev>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -11455,6 +11456,52 @@ programmatically with command-line parsers like @code{getopt} and
 (define-public python2-docopt
   (package-with-python2 python-docopt))
 
+(define-public python-pythonanywhere
+  (package
+   (name "python-pythonanywhere")
+   (version "0.9.8")
+   (source
+    (origin
+     (method git-fetch)
+     (uri (git-reference
+      (url "https://github.com/pythonanywhere/helper_scripts")
+      (commit (string-append "v" version))))
+     (file-name (git-file-name name version))
+     (sha256
+      (base32
+       "0yd0hk9awfk4kc99nn008by8jbz2h709qvzzixjyjhcg6xjmc2zh"))))
+   (build-system python-build-system)
+   (arguments
+    `(#:phases (modify-phases %standard-phases
+      (add-before 'check 'change-home
+       (lambda _
+        (setenv "HOME" "/tmp") #t))
+      (replace 'check
+       (lambda _
+        (invoke "pytest" "-m" "not slowtest") #t)))))
+   (native-inputs
+    `(("python-pytest" ,python-pytest)
+      ("python-psutil" ,python-psutil)
+      ("python-responses" ,python-responses)
+      ("python-pytest-mock" ,python-pytest-mock)))
+   (propagated-inputs
+    `(("python-dateutil" ,python-dateutil)
+      ("python-docopt" ,python-docopt)
+      ("python-packaging" ,python-packaging)
+      ("python-requests" ,python-requests)
+      ("python-schema" ,python-schema)
+      ("python-tabulate" ,python-tabulate)
+      ("python-typer" ,python-typer)))
+   (home-page
+    "https://github.com/pythonanywhere/helper_scripts/")
+   (synopsis
+    "PythonAnywhere helper tools for users")
+   (description
+    "PythonAnywhere helper tools for users.  Scripts, cli and python wrapper around API
+that allows to manage web apps and scheduled tasks.  Includes single-command deployment
+for Django Girls tutorial.")
+   (license license:expat)))
+
 (define-public python-pythondialog
   (package
     (name "python-pythondialog")
-- 
2.31.1





Information forwarded to guix-patches <at> gnu.org:
bug#48289; Package guix-patches. (Sat, 08 May 2021 21:17:01 GMT) Full text and rfc822 format available.

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

From: Maxime Devos <maximedevos <at> telenet.be>
To: Filip Lajszczak <filip <at> lajszczak.dev>, 48289 <at> debbugs.gnu.org
Subject: Re: [bug#48289] [PATCH] gnu: Add python-pythonanywhere.
Date: Sat, 08 May 2021 23:16:23 +0200
[Message part 1 (text/plain, inline)]
Filip Lajszczak schreef op za 08-05-2021 om 15:28 [+0200]:
> * gnu/packages/python-xyz.scm (python-pythonanywhere): New variable.
> [...]
> +   (arguments
> +    `(#:phases (modify-phases %standard-phases
> +      (add-before 'check 'change-home
> +       (lambda _
> +        (setenv "HOME" "/tmp") #t))

Phases do not need to return #t anymore; the warning you get if you 
remove it is misleading.  The warning will disappear once core-updates
is merged.

> +      (replace 'check
> +       (lambda _
> +        (invoke "pytest" "-m" "not slowtest") #t)))))

To support "guix build --without-tests" and cross-compilation, make this

> +      (replace 'check
> +       (lambda* (#:key tests? #:allow-other-keys)
> +        (when tests?
> +         (invoke "pytest" "-m" "not slowtest"))))

The native-inputs and propagated-inputs seem about right to me,
but I haven't tested.

Greetings,
Maxime
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#48289; Package guix-patches. (Sun, 09 May 2021 13:08:02 GMT) Full text and rfc822 format available.

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

From: Filip Lajszczak <filip <at> lajszczak.dev>
To: Maxime Devos <maximedevos <at> telenet.be>
Cc: 48289 <at> debbugs.gnu.org
Subject: Re: [bug#48289] [PATCH] gnu: Add python-pythonanywhere.
Date: Sun, 9 May 2021 14:06:42 +0100
On Sat, 8 May 2021 at 22:16, Maxime Devos <maximedevos <at> telenet.be> wrote:
> Phases do not need to return #t anymore; the warning you get if you
> remove it is misleading.  The warning will disappear once core-updates
> is merged.

Good to know!

>
> > +      (replace 'check
> > +       (lambda _
> > +        (invoke "pytest" "-m" "not slowtest") #t)))))
>
> To support "guix build --without-tests" and cross-compilation, make this
>
> > +      (replace 'check
> > +       (lambda* (#:key tests? #:allow-other-keys)
> > +        (when tests?
> > +         (invoke "pytest" "-m" "not slowtest"))))
>

Thanks for the review! I'm about to post a new version of the patch.

All the best,
Filip




Information forwarded to guix-patches <at> gnu.org:
bug#48289; Package guix-patches. (Sun, 09 May 2021 13:11:02 GMT) Full text and rfc822 format available.

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

From: Filip Lajszczak <filip <at> lajszczak.dev>
To: 48289 <at> debbugs.gnu.org
Cc: Filip Lajszczak <filip <at> lajszczak.dev>
Subject: [PATCH] gnu: Add python-pythonanywhere.
Date: Sun,  9 May 2021 15:09:29 +0200
* gnu/packages/python-xyz.scm (python-pythonanywhere): New variable.
---
 gnu/packages/python-xyz.scm | 50 +++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index de7c303b6c..c9468dff19 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -99,6 +99,7 @@
 ;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus <at> gmail.com>
 ;;; Copyright © 2021 Ellis Kenyő <me <at> elken.dev>
 ;;; Copyright © 2021 LibreMiami <packaging-guix <at> libremiami.org>
+;;; Copyright © 2021 Filip Lajszczak <filip <at> lajszczak.dev>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -11455,6 +11456,55 @@ programmatically with command-line parsers like @code{getopt} and
 (define-public python2-docopt
   (package-with-python2 python-docopt))
 
+(define-public python-pythonanywhere
+  (package
+   (name "python-pythonanywhere")
+   (version "0.9.8")
+   (source
+    (origin
+     (method git-fetch)
+     (uri (git-reference
+      (url "https://github.com/pythonanywhere/helper_scripts")
+      (commit (string-append "v" version))))
+     (file-name (git-file-name name version))
+     (sha256
+      (base32
+       "0yd0hk9awfk4kc99nn008by8jbz2h709qvzzixjyjhcg6xjmc2zh"))))
+   (build-system python-build-system)
+   (arguments
+    `(#:phases (modify-phases %standard-phases
+      (add-before 'check 'change-home
+       (lambda _
+        (setenv "HOME" "/tmp")))
+      (replace 'check
+        (lambda* (#:key tests? #:allow-other-keys)
+          (when tests?
+           ;; exclude tests marked as slowtest that assume running inside git repository on
+           ;; system with virtualenvwrapper installed.
+           (invoke "pytest" "-m" "not slowtest")))))))
+   (native-inputs
+    `(("python-pytest" ,python-pytest)
+      ("python-psutil" ,python-psutil)
+      ("python-responses" ,python-responses)
+      ("python-pytest-mock" ,python-pytest-mock)))
+   (propagated-inputs
+    `(("python-dateutil" ,python-dateutil)
+      ("python-docopt" ,python-docopt)
+      ("python-packaging" ,python-packaging)
+      ("python-requests" ,python-requests)
+      ("python-schema" ,python-schema)
+      ("python-tabulate" ,python-tabulate)
+      ("python-typer" ,python-typer)))
+   (home-page
+    "https://github.com/pythonanywhere/helper_scripts/")
+   (synopsis
+    "PythonAnywhere helper tools for users")
+   (description
+    "PythonAnywhere helper tools for users.  Scripts, cli and python wrapper around API
+that allows to manage web apps and scheduled tasks.  Includes single-command deployment
+for Django Girls tutorial.")
+   (license license:expat)))
+
 (define-public python-pythondialog
   (package
     (name "python-pythondialog")
-- 
2.31.1





Information forwarded to guix-patches <at> gnu.org:
bug#48289; Package guix-patches. (Fri, 17 Dec 2021 23:10:02 GMT) Full text and rfc822 format available.

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

From: Filip Lajszczak <filip <at> lajszczak.dev>
To: 48289 <at> debbugs.gnu.org
Cc: Filip Lajszczak <filip <at> lajszczak.dev>
Subject: [PATCH] gnu: Add python-pythonanywhere.
Date: Sat, 18 Dec 2021 00:08:47 +0100
* gnu/packages/python-xyz.scm (python-pythonanywhere): New variable.
---
 gnu/packages/python-xyz.scm | 49 +++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2af4794..2c319a0 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -112,6 +112,7 @@
 ;;; Copyright © 2021 Sébastien Lerique <sl <at> eauchat.org>
 ;;; Copyright © 2021 Raphaël Mélotte <raphael.melotte <at> mind.be>
 ;;; Copyright © 2021 ZmnSCPxj <ZmnSCPxj <at> protonmail.com>
+;;; Copyright © 2021 Filip Lajszczak <filip <at> lajszczak.dev>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -12406,6 +12407,54 @@ (define-public python-docopt
 (define-public python2-docopt
   (package-with-python2 python-docopt))
 
+(define-public python-pythonanywhere
+  (package
+    (name "python-pythonanywhere")
+    (version "0.9.10")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/pythonanywhere/helper_scripts")
+               (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+          (base32
+           "0vzzc1g8pl7cb9yvm3n1j5zlzxf0jd423rzspc2kvpb8yhvydklx"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'change-home
+           (lambda _
+             (setenv "HOME" "/tmp")))
+         (replace 'check
+           (lambda* (#:key tests? #:allow-other-keys)
+                    (when tests?
+                      ;; exclude tests marked as slowtest that assume running
+                      ;; inside git repository on system with virtualenvwrapper
+                      ;; installed.
+                      (invoke "pytest" "-m" "not slowtest")))))))
+    (native-inputs
+      (list python-pytest
+            python-psutil
+            python-responses
+            python-pytest-mock))
+    (propagated-inputs
+      (list python-dateutil
+            python-docopt
+            python-packaging
+            python-requests
+            python-schema
+            python-tabulate
+            python-typer))
+    (home-page "https://github.com/pythonanywhere/helper_scripts/")
+    (synopsis "PythonAnywhere helper tools for users")
+    (description "PythonAnywhere helper tools for users.  Cli and python wrapper
+around API that allows managing web apps and scheduled tasks.  Includes single-command
+deployment for Django Girls tutorial.")
+    (license license:expat)))
+
 (define-public python-pythondialog
   (package
     (name "python-pythondialog")
-- 
2.34.0





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Mon, 03 Jan 2022 16:36:01 GMT) Full text and rfc822 format available.

Notification sent to Filip Lajszczak <filip <at> lajszczak.dev>:
bug acknowledged by developer. (Mon, 03 Jan 2022 16:36:01 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Filip Lajszczak <filip <at> lajszczak.dev>
Cc: 48289-done <at> debbugs.gnu.org
Subject: Re: bug#48289: [PATCH] gnu: Add python-pythonanywhere.
Date: Mon, 03 Jan 2022 17:34:49 +0100
[Message part 1 (text/plain, inline)]
Hi Filip,

Filip Lajszczak <filip <at> lajszczak.dev> skribis:

> * gnu/packages/python-xyz.scm (python-pythonanywhere): New variable.

Finally applied with the tweaks below (see
<https://guix.gnu.org/manual/en/html_node/Synopses-and-Descriptions.html>).

Thank you, and thanks for persevering!

Ludo’.

[Message part 2 (text/x-patch, inline)]
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5baddf1abb..01992dc729 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12532,11 +12532,11 @@ (define-public python-pythonanywhere
              (setenv "HOME" "/tmp")))
          (replace 'check
            (lambda* (#:key tests? #:allow-other-keys)
-                    (when tests?
-                      ;; exclude tests marked as slowtest that assume running
-                      ;; inside git repository on system with virtualenvwrapper
-                      ;; installed.
-                      (invoke "pytest" "-m" "not slowtest")))))))
+             (when tests?
+               ;; Exclude tests marked as slowtest that assume running
+               ;; inside Git repository on system with virtualenvwrapper
+               ;; installed.
+               (invoke "pytest" "-m" "not slowtest")))))))
     (native-inputs
       (list python-pytest
             python-psutil
@@ -12552,9 +12552,9 @@ (define-public python-pythonanywhere
             python-typer))
     (home-page "https://github.com/pythonanywhere/helper_scripts/")
     (synopsis "PythonAnywhere helper tools for users")
-    (description "PythonAnywhere helper tools for users.  Cli and python wrapper
-around API that allows managing web apps and scheduled tasks.  Includes single-command
-deployment for Django Girls tutorial.")
+    (description "PythonAnywhere provides a command-line interface and an
+application programming interface that allows managing Web apps and scheduled
+tasks.  It includes single-command deployment for the Django Girls tutorial.")
     (license license:expat)))
 
 (define-public python-pythondialog

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

This bug report was last modified 2 years and 56 days ago.

Previous Next


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