GNU bug report logs -
#55896
[PATCH] gnu: Add python-pybare.
Previous Next
Reported by: jgart <jgart <at> dismail.de>
Date: Sat, 11 Jun 2022 04:29:02 UTC
Severity: normal
Tags: moreinfo, patch
Done: "jgart" <jgart <at> dismail.de>
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 55896 in the body.
You can then email your comments to 55896 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#55896
; Package
guix-patches
.
(Sat, 11 Jun 2022 04:29: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
.
(Sat, 11 Jun 2022 04:29: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-pybare): New variable.
---
gnu/packages/python-xyz.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 4104472848..ceedacd714 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -29418,6 +29418,38 @@ (define-public python-gatt
Currently, Linux is the only platform supported by this library.")
(license license:expat)))
+(define-public python-pybare
+ (package
+ (name "python-pybare")
+ (version "0.1.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://git.sr.ht/~chiefnoah/pybare")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1ibmwwf1rdxlwyxlzhv3v1i0ybsqg0kppim90sm8rsbns86yy4by"))))
+ (build-system python-build-system)
+ (native-inputs
+ (list python-pytest))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (chdir "bare")
+ (invoke "pytest" "."))))))
+ (home-page "https://sr.ht/~chiefnoah/PyBARE/")
+ (synopsis "Declarative implementation of BARE for Python")
+ (description
+"@code{python-pybare} is a general purpose library for strongly
+typed primitives in Python that supports serializing to and from BARE
+messages.")
+ (license license:expat)))
+
(define-public python-musical-scales
(package
(name "python-musical-scales")
--
2.36.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#55896
; Package
guix-patches
.
(Sat, 11 Jun 2022 08:22:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 55896 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
jgart via Guix-patches via schreef op vr 10-06-2022 om 23:27 [-0500]:
> + (arguments
> + `(#:phases
> + (modify-phases %standard-phases
> + (replace 'check
> + (lambda _
> + (chdir "bare")
> + (invoke "pytest" "."))))))
"./pre-inst-env guix lint python-pybare" will have a warning about
this. Also, apparently 'list' is considered more readable than
quasiquote/unquote, see [1], so maybe eliminate the quasiquote in
favour of 'list'?
> BARE
Looks like a not well-known acronym, maybe use @acronym?
[1] https://logs.guix.gnu.org/guix/2022-06-09.log#194339
Otherwise the package definition LGTM, but I haven't built or tested it
or read the source code.
Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#55896
; Package
guix-patches
.
(Sat, 11 Jun 2022 20:37:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 55896 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python-xyz.scm (python-pybare): New variable.
Hi Maxime,
Thanks for the review. It is much appreciated.
Here is version 2 with your requested changes.
all best,
jgart
---
gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 4104472848..5109434cbf 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -29418,6 +29418,39 @@ (define-public python-gatt
Currently, Linux is the only platform supported by this library.")
(license license:expat)))
+(define-public python-pybare
+ (package
+ (name "python-pybare")
+ (version "0.1.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://git.sr.ht/~chiefnoah/pybare")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1ibmwwf1rdxlwyxlzhv3v1i0ybsqg0kppim90sm8rsbns86yy4by"))))
+ (build-system python-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (chdir "bare")
+ (invoke "pytest" "-vv" ".")))))))
+ (native-inputs
+ (list python-pytest))
+ (home-page "https://sr.ht/~chiefnoah/PyBARE/")
+ (synopsis "Declarative implementation of BARE for Python")
+ (description
+"@code{python-pybare} is a general purpose library for strongly typed
+primitives in Python that supports serializing to and from @acronym{BARE,
+Binary Application Record Encoding} messages.")
+ (license license:expat)))
+
(define-public python-musical-scales
(package
(name "python-musical-scales")
--
2.36.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#55896
; Package
guix-patches
.
(Sun, 12 Jun 2022 15:43:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 55896 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
jgart schreef op za 11-06-2022 om 15:27 [-0500]:
> +(define-public python-pybare
> + (package
> + (name "python-pybare")
> + (version "0.1.1")
> + (source
> + (origin
> + (method git-fetch)
> + (uri
> + (git-reference
> + (url "https://git.sr.ht/~chiefnoah/pybare")
> + (commit (string-append "v" version))))
> + (file-name (git-file-name name version))
> + (sha256
> + (base32 "1ibmwwf1rdxlwyxlzhv3v1i0ybsqg0kppim90sm8rsbns86yy4by"))))
> + (build-system python-build-system)
> + (arguments
> + (list #:phases
> + #~(modify-phases %standard-phases
> + (replace 'check
> + (lambda* (#:key tests? #:allow-other-keys)
> + (when tests?
> + (chdir "bare")
> + (invoke "pytest" "-vv" ".")))))))
> + (native-inputs
> + (list python-pytest))
> + (home-page "https://sr.ht/~chiefnoah/PyBARE/")
> + (synopsis "Declarative implementation of BARE for Python")
> + (description
> +"@code{python-pybare} is a general purpose library for strongly typed
> +primitives in Python that supports serializing to and from @acronym{BARE,
> +Binary Application Record Encoding} messages.")
> + (license license:expat
Package definition LGTM, but I have only looked at the definition, not
the sources etc.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#55896
; Package
guix-patches
.
(Sun, 12 Jun 2022 20:55:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 55896 <at> debbugs.gnu.org (full text, mbox):
On Sun, 12 Jun 2022 17:41:57 +0200 Maxime Devos <maximedevos <at> telenet.be> wrote:
> jgart schreef op za 11-06-2022 om 15:27 [-0500]:
> > +(define-public python-pybare
> > + (package
> > + (name "python-pybare")
> > + (version "0.1.1")
> > + (source
> > + (origin
> > + (method git-fetch)
> > + (uri
> > + (git-reference
> > + (url "https://git.sr.ht/~chiefnoah/pybare")
> > + (commit (string-append "v" version))))
> > + (file-name (git-file-name name version))
> > + (sha256
> > + (base32 "1ibmwwf1rdxlwyxlzhv3v1i0ybsqg0kppim90sm8rsbns86yy4by"))))
> > + (build-system python-build-system)
> > + (arguments
> > + (list #:phases
> > + #~(modify-phases %standard-phases
> > + (replace 'check
> > + (lambda* (#:key tests? #:allow-other-keys)
> > + (when tests?
> > + (chdir "bare")
> > + (invoke "pytest" "-vv" ".")))))))
> > + (native-inputs
> > + (list python-pytest))
> > + (home-page "https://sr.ht/~chiefnoah/PyBARE/")
> > + (synopsis "Declarative implementation of BARE for Python")
> > + (description
> > +"@code{python-pybare} is a general purpose library for strongly typed
> > +primitives in Python that supports serializing to and from @acronym{BARE,
> > +Binary Application Record Encoding} messages.")
> > + (license license:expat
>
>
> Package definition LGTM, but I have only looked at the definition, not
> the sources etc.
Hi Maxime, no worries. Take your time. The review is much appreciated.
I just looked at the sources again myself and noticed that the tests
use pre-generated BARE binaries to test against.
See here:
https://git.sr.ht/~chiefnoah/pybare/tree/master/item/bare/test_encoder.py#L225
and here:
https://git.sr.ht/~chiefnoah/pybare/tree/master/item/bare/_examples
Should I ask the author if they can provide a way to generate those
binaries for testing instead of vendoring the pre-compiled binaries
without their sources?
all best,
jgart
Information forwarded
to
guix-patches <at> gnu.org
:
bug#55896
; Package
guix-patches
.
(Thu, 07 Jul 2022 20:34:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 55896 <at> debbugs.gnu.org (full text, mbox):
Hello,
jgart <jgart <at> dismail.de> writes:
[...]
> Hi Maxime, no worries. Take your time. The review is much appreciated.
>
> I just looked at the sources again myself and noticed that the tests
> use pre-generated BARE binaries to test against.
>
> See here:
>
> https://git.sr.ht/~chiefnoah/pybare/tree/master/item/bare/test_encoder.py#L225
>
> and here:
>
> https://git.sr.ht/~chiefnoah/pybare/tree/master/item/bare/_examples
>
> Should I ask the author if they can provide a way to generate those
> binaries for testing instead of vendoring the pre-compiled binaries
> without their sources?
Yes, please ask. Otherwise, we'll have to delete the binaries from
unknown source in a source snippet and not run the test suite...
Thank you!
Maxim
Added tag(s) moreinfo.
Request was from
Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Thu, 07 Jul 2022 20:34:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#55896
; Package
guix-patches
.
(Fri, 08 Jul 2022 00:00:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 55896 <at> debbugs.gnu.org (full text, mbox):
On Thu, 07 Jul 2022 16:33:20 -0400 Maxim Cournoyer <maxim.cournoyer <at> gmail.com> wrote:
> Hello,
>
> jgart <jgart <at> dismail.de> writes:
>
> [...]
>
> > Hi Maxime, no worries. Take your time. The review is much appreciated.
> >
> > I just looked at the sources again myself and noticed that the tests
> > use pre-generated BARE binaries to test against.
> >
> > See here:
> >
> > https://git.sr.ht/~chiefnoah/pybare/tree/master/item/bare/test_encoder.py#L225
> >
> > and here:
> >
> > https://git.sr.ht/~chiefnoah/pybare/tree/master/item/bare/_examples
> >
> > Should I ask the author if they can provide a way to generate those
> > binaries for testing instead of vendoring the pre-compiled binaries
> > without their sources?
>
> Yes, please ask. Otherwise, we'll have to delete the binaries from
> unknown source in a source snippet and not run the test suite...
I asked already. But I'll have to do some more research.
The author mentioned that they go the binaries from Drew Devault's implementation of the same library in golang.
I think Drew Devault is also vendoring the binaries iirc.
TODO:
So, I'll have to contact Drew and ask him if he can generate the binaries instead of vendoring them in.
all best,
jgart
Reply sent
to
"jgart" <jgart <at> dismail.de>
:
You have taken responsibility.
(Tue, 18 Jun 2024 06:08:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
jgart <jgart <at> dismail.de>
:
bug acknowledged by developer.
(Tue, 18 Jun 2024 06:08:02 GMT)
Full text and
rfc822 format available.
Message #30 received at 55896-done <at> debbugs.gnu.org (full text, mbox):
I'm closing for now.
Feel free to reopen if anyone wants to work on this.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 16 Jul 2024 11:24:24 GMT)
Full text and
rfc822 format available.
This bug report was last modified 296 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.