unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#54284] [PATCH] gnu: Add python-pytest-pudb.
@ 2022-03-07  5:37 jgart via Guix-patches via
  2022-03-15 21:41 ` [bug#54284] [PATCH v2] " jgart via Guix-patches via
  2022-03-19  1:51 ` jgart via Guix-patches via
  0 siblings, 2 replies; 6+ messages in thread
From: jgart via Guix-patches via @ 2022-03-07  5:37 UTC (permalink / raw)
  To: 54284; +Cc: BonfaceKilz, jgart

* gnu/packages/python-xyz.scm (python-pytest-pudb): New variable.

Co-authored-by: BonfaceKilz <me@bonfacemunyoki.com>
---
 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 d3d7b7160d..ba0c8489f6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -28704,6 +28704,41 @@ (define-public pudb
 keyboard-friendly package.")
     (license license:expat)))
 
+(define-public python-pytest-pudb
+  ;; PyPi does not include tests
+  (let ((commit "a6b3d2f4d35e558d72bccff472ecde9c9d9c69e5")
+        (revision "0"))
+    (package
+      (name "python-pytest-pudb")
+      (version "0.7.0")
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+                (url "https://github.com/wronglink/pytest-pudb")
+                (commit commit)))
+         (file-name (string-append name "-" commit))
+         (sha256
+          (base32 "1c0pypxx3y8w7s5bz9iy3w3aablnhn81rnhmb0is8hf2qpm6k3w0"))))
+      (build-system python-build-system)
+      (propagated-inputs (list pudb))
+      (native-inputs
+        (list python-pytest))
+      (arguments
+        `(#:phases
+          (modify-phases %standard-phases
+            (replace 'check
+              (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+                (when tests?
+                  (add-installed-pythonpath inputs outputs)
+                  (invoke "pytest" "-v")))))))
+      (home-page "https://github.com/wronglink/pytest-pudb")
+      (synopsis "Pytest PuDB debugger integration")
+      (description
+  "@code{python-pytest-pudb} provides PuDB debugger integration based on
+  pytest PDB integration.")
+      (license license:expat))))
+
 (define-public python-iwlib
   (package
     (name "python-iwlib")
-- 
2.35.1





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

* [bug#54284] [PATCH v2] gnu: Add python-pytest-pudb.
  2022-03-07  5:37 [bug#54284] [PATCH] gnu: Add python-pytest-pudb jgart via Guix-patches via
@ 2022-03-15 21:41 ` jgart via Guix-patches via
  2022-03-18 22:16   ` [bug#54284] [PATCH] " Ludovic Courtès
  2022-03-20  8:16   ` [bug#54284] [PATCH v2] " Maxime Devos
  2022-03-19  1:51 ` jgart via Guix-patches via
  1 sibling, 2 replies; 6+ messages in thread
From: jgart via Guix-patches via @ 2022-03-15 21:41 UTC (permalink / raw)
  To: 54284; +Cc: jgart

* gnu/packages/check.scm (python-pytest-pudb): New variable.

Hi, here is a version 2 of the patch that puts it in the check module instead.

all best,

jgart

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

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index c66ec4722f..970a8196b5 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -3082,6 +3082,41 @@ (define-public python-pytest-dependency
 skipped if any of the dependencies did fail or has been skipped.")
     (license license:asl2.0)))
 
+(define-public python-pytest-pudb
+  ;; PyPi does not include tests
+  (let ((commit "a6b3d2f4d35e558d72bccff472ecde9c9d9c69e5")
+        (revision "0"))
+    (package
+      (name "python-pytest-pudb")
+      (version "0.7.0")
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+                (url "https://github.com/wronglink/pytest-pudb")
+                (commit commit)))
+         (file-name (string-append name "-" commit))
+         (sha256
+          (base32 "1c0pypxx3y8w7s5bz9iy3w3aablnhn81rnhmb0is8hf2qpm6k3w0"))))
+      (build-system python-build-system)
+      (propagated-inputs (list pudb))
+      (native-inputs
+        (list python-pytest))
+      (arguments
+        `(#:phases
+          (modify-phases %standard-phases
+            (replace 'check
+              (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+                (when tests?
+                  (add-installed-pythonpath inputs outputs)
+                  (invoke "pytest" "-v")))))))
+      (home-page "https://github.com/wronglink/pytest-pudb")
+      (synopsis "Pytest PuDB debugger integration")
+      (description
+  "@code{python-pytest-pudb} provides PuDB debugger integration based on
+  pytest PDB integration.")
+      (license license:expat))))
+
 (define-public python-pytest-datadir
   (package
     (name "python-pytest-datadir")
-- 
2.35.1





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

* [bug#54284] [PATCH] gnu: Add python-pytest-pudb.
  2022-03-15 21:41 ` [bug#54284] [PATCH v2] " jgart via Guix-patches via
@ 2022-03-18 22:16   ` Ludovic Courtès
  2022-03-20  8:16   ` [bug#54284] [PATCH v2] " Maxime Devos
  1 sibling, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2022-03-18 22:16 UTC (permalink / raw)
  To: jgart; +Cc: 54284

Hi,

jgart <jgart@dismail.de> skribis:

> * gnu/packages/check.scm (python-pytest-pudb): New variable.

[...]

> +(define-public python-pytest-pudb
> +  ;; PyPi does not include tests
> +  (let ((commit "a6b3d2f4d35e558d72bccff472ecde9c9d9c69e5")
> +        (revision "0"))
> +    (package
> +      (name "python-pytest-pudb")
> +      (version "0.7.0")

Could you clarify in a comment how this commit relates to this version
number?  You can remove the ‘revision’ variable, since it’s unused.

> +         (file-name (string-append name "-" commit))

Rather: (file-name (git-file-name name version)).

> +      (synopsis "Pytest PuDB debugger integration")
> +      (description
> +  "@code{python-pytest-pudb} provides PuDB debugger integration based on
> +  pytest PDB integration.")
    ^
Extra space here.

IWBN if you could add a sentence or two explaining what that means.  :-)

Last, please pass it through ‘guix style’.

Could you send an updated patch?

TIA!

Ludo’.




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

* [bug#54284] [PATCH v2] gnu: Add python-pytest-pudb.
  2022-03-07  5:37 [bug#54284] [PATCH] gnu: Add python-pytest-pudb jgart via Guix-patches via
  2022-03-15 21:41 ` [bug#54284] [PATCH v2] " jgart via Guix-patches via
@ 2022-03-19  1:51 ` jgart via Guix-patches via
  2022-03-21 13:37   ` bug#54284: " Ludovic Courtès
  1 sibling, 1 reply; 6+ messages in thread
From: jgart via Guix-patches via @ 2022-03-19  1:51 UTC (permalink / raw)
  To: 54284; +Cc: Ludovic Court s, jgart

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2378 bytes --]

* gnu/packages/check.scm (python-pytest-pudb): New variable.

Hi Ludo,

Thanks for the review. It is much appreciated.

Here's v2.

Let me know if there is anything else to fix. I think I got it all...

all best,

jgart

https://whereis.みんな/
gemini://whereis.みんな/

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

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index c66ec4722f..335ab7ab11 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -3082,6 +3082,41 @@ (define-public python-pytest-dependency
 skipped if any of the dependencies did fail or has been skipped.")
     (license license:asl2.0)))
 
+(define-public python-pytest-pudb
+  ;; PyPi does not include tests
+  (let ((commit "a6b3d2f4d35e558d72bccff472ecde9c9d9c69e5"))
+    (package
+      (name "python-pytest-pudb")
+      ;; Version mentioned in setup.py version field.
+      (version "0.7.0")
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/wronglink/pytest-pudb")
+                      (commit commit)))
+                (file-name (git-file-name name commit))
+                (sha256
+                 (base32
+                  "1c0pypxx3y8w7s5bz9iy3w3aablnhn81rnhmb0is8hf2qpm6k3w0"))))
+      (build-system python-build-system)
+      (propagated-inputs (list pudb))
+      (native-inputs (list python-pytest))
+      (arguments
+       `(#:phases (modify-phases %standard-phases
+                    (replace 'check
+                      (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+                        (when tests?
+                          (add-installed-pythonpath inputs outputs)
+                          (invoke "pytest" "-v")))))))
+      (home-page "https://github.com/wronglink/pytest-pudb")
+      (synopsis "Pytest PuDB debugger integration")
+      (description
+       "@code{python-pytest-pudb} provides PuDB debugger integration based
+on pytest PDB integration.  For example, the software developer can
+call pudb by running @code{py.test --pudb} from the command line or by
+including @code{pudb.set_trace} in their test file(s).")
+      (license license:expat))))
+
 (define-public python-pytest-datadir
   (package
     (name "python-pytest-datadir")
-- 
2.34.0





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

* [bug#54284] [PATCH v2] gnu: Add python-pytest-pudb.
  2022-03-15 21:41 ` [bug#54284] [PATCH v2] " jgart via Guix-patches via
  2022-03-18 22:16   ` [bug#54284] [PATCH] " Ludovic Courtès
@ 2022-03-20  8:16   ` Maxime Devos
  1 sibling, 0 replies; 6+ messages in thread
From: Maxime Devos @ 2022-03-20  8:16 UTC (permalink / raw)
  To: jgart, 54284

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

jgart via Guix-patches via schreef op di 15-03-2022 om 17:41 [-0400]:
> +  (let ((commit "a6b3d2f4d35e558d72bccff472ecde9c9d9c69e5")

This commit is only used in a single place, so don't see any need
to put it in a variable.

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

* bug#54284: [PATCH v2] gnu: Add python-pytest-pudb.
  2022-03-19  1:51 ` jgart via Guix-patches via
@ 2022-03-21 13:37   ` Ludovic Courtès
  0 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2022-03-21 13:37 UTC (permalink / raw)
  To: jgart; +Cc: 54284-done

Hi jgart,

jgart <jgart@dismail.de> skribis:

> * gnu/packages/check.scm (python-pytest-pudb): New variable.

Perfect.  Applied, thanks!

Ludo’.




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

end of thread, other threads:[~2022-03-21 13:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-07  5:37 [bug#54284] [PATCH] gnu: Add python-pytest-pudb jgart via Guix-patches via
2022-03-15 21:41 ` [bug#54284] [PATCH v2] " jgart via Guix-patches via
2022-03-18 22:16   ` [bug#54284] [PATCH] " Ludovic Courtès
2022-03-20  8:16   ` [bug#54284] [PATCH v2] " Maxime Devos
2022-03-19  1:51 ` jgart via Guix-patches via
2022-03-21 13:37   ` bug#54284: " Ludovic Courtès

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

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

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