GNU bug report logs -
#54284
[PATCH] gnu: Add python-pytest-pudb.
Previous Next
Reported by: jgart <jgart <at> dismail.de>
Date: Mon, 7 Mar 2022 05:39:02 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 54284 in the body.
You can then email your comments to 54284 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#54284
; Package
guix-patches
.
(Mon, 07 Mar 2022 05:39:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
jgart <jgart <at> dismail.de>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Mon, 07 Mar 2022 05:39:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python-xyz.scm (python-pytest-pudb): New variable.
Co-authored-by: BonfaceKilz <me <at> 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
Information forwarded
to
guix-patches <at> gnu.org
:
bug#54284
; Package
guix-patches
.
(Tue, 15 Mar 2022 21:44:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 54284 <at> debbugs.gnu.org (full text, mbox):
* 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
Information forwarded
to
guix-patches <at> gnu.org
:
bug#54284
; Package
guix-patches
.
(Fri, 18 Mar 2022 22:17:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 54284 <at> debbugs.gnu.org (full text, mbox):
Hi,
jgart <jgart <at> 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’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#54284
; Package
guix-patches
.
(Sat, 19 Mar 2022 01:53:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 54284 <at> debbugs.gnu.org (full text, mbox):
* 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
Information forwarded
to
guix-patches <at> gnu.org
:
bug#54284
; Package
guix-patches
.
(Sun, 20 Mar 2022 08:18:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 54284 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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.
[signature.asc (application/pgp-signature, inline)]
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Mon, 21 Mar 2022 13:38:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
jgart <jgart <at> dismail.de>
:
bug acknowledged by developer.
(Mon, 21 Mar 2022 13:38:01 GMT)
Full text and
rfc822 format available.
Message #22 received at 54284-done <at> debbugs.gnu.org (full text, mbox):
Hi jgart,
jgart <jgart <at> dismail.de> skribis:
> * gnu/packages/check.scm (python-pytest-pudb): New variable.
Perfect. Applied, thanks!
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 19 Apr 2022 11:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 63 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.