* [bug#48263] [PATCH 1/2] gnu: python-hypercorn: Rename to hypercorn.
@ 2021-05-06 19:17 Vinicius Monego
2021-05-06 19:20 ` [bug#48263] [PATCH 2/2] gnu: hypercorn: Update to 0.11.2 Vinicius Monego
2021-10-30 17:30 ` [bug#48263] [PATCH v2 1/3] gnu: python-hypercorn: Remove "python-" prefix from name Vinicius Monego
0 siblings, 2 replies; 6+ messages in thread
From: Vinicius Monego @ 2021-05-06 19:17 UTC (permalink / raw)
To: 48263; +Cc: Vinicius Monego
* gnu/packages/python-web.scm (python-hypercorn): Rename to hypercorn.
---
This package provides the same use case for "gunicorn" that we have and both are used as binaries. I keep the inputs propagated because hypercorn also exposes some functionality over a module. See https://pgjones.gitlab.io/hypercorn/how_to_guides/api_usage.html for reference.
gnu/packages/python-web.scm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 4f34502e86..223aca85a6 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -37,7 +37,7 @@
;;; Copyright © 2020 Holger Peters <holger.peters@posteo.de>
;;; Copyright © 2020 Noisytoot <noisytoot@gmail.com>
;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com>
-;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
+;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net>
;;; Copyright © 2020 Konrad Hinsen <konrad.hinsen@fastmail.net>
;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
;;; Copyright © 2021 Ekaitz Zarraga <ekaitz@elenq.tech>
@@ -1575,9 +1575,9 @@ choose to use, ensuring that you can communicate via WebSockets, as defined in
RFC6455, regardless of your programming paradigm.")
(license license:expat)))
-(define-public python-hypercorn
+(define-public hypercorn
(package
- (name "python-hypercorn")
+ (name "hypercorn")
(version "0.10.2")
(source
(origin
--
2.31.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#48263] [PATCH 2/2] gnu: hypercorn: Update to 0.11.2.
2021-05-06 19:17 [bug#48263] [PATCH 1/2] gnu: python-hypercorn: Rename to hypercorn Vinicius Monego
@ 2021-05-06 19:20 ` Vinicius Monego
2021-10-30 17:30 ` [bug#48263] [PATCH v2 1/3] gnu: python-hypercorn: Remove "python-" prefix from name Vinicius Monego
1 sibling, 0 replies; 6+ messages in thread
From: Vinicius Monego @ 2021-05-06 19:20 UTC (permalink / raw)
To: 48263; +Cc: Vinicius Monego
* gnu/packages/python-web.scm (hypercorn): Update to 0.11.2.
(python-h11): Update to 0.12.0.
[arguments]: Add 'test-target' keyword. Do not replace check phase.
[native-inputs]: Add python-pytest-runner.
---
Both packages have to updated at the same time or the hypercorn tests will fail (if either is updated first). I rebuilt the h11 dependents succesfully.
gnu/packages/python-web.scm | 17 +++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 223aca85a6..59702ac62e 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -892,22 +892,19 @@ for use in Python programs that implement HTTP/2.")
(define-public python-h11
(package
(name "python-h11")
- (version "0.9.0")
+ (version "0.12.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "h11" version))
(sha256
- (base32 "1qfad70h59hya21vrzz8dqyyaiqhac0anl2dx3s3k80gpskvrm1k"))))
+ (base32 "0hk0nll6qazsambp3kl8cxxsbl4gv5y9252qadyk0jky0sv2q8j7"))))
(build-system python-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _
- (invoke "pytest" "-vv"))))))
+ `(#:test-target "pytest"))
(native-inputs
- `(("python-pytest" ,python-pytest)))
+ `(("python-pytest" ,python-pytest)
+ ("python-pytest-runner" ,python-pytest-runner)))
(home-page "https://github.com/python-hyper/h11")
(synopsis "Pure-Python, bring-your-own-I/O implementation of HTTP/1.1")
(description
@@ -1578,13 +1575,13 @@ RFC6455, regardless of your programming paradigm.")
(define-public hypercorn
(package
(name "hypercorn")
- (version "0.10.2")
+ (version "0.11.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Hypercorn" version))
(sha256
- (base32 "15dgy47a18w2ls3hwykra1cyf7yzxmfjqnsqml482p12cxr2xwqr"))))
+ (base32 "16kai5d12f05jr89mj611zslxqri4cd7ixcgd6yhl211qlcyg8av"))))
(build-system python-build-system)
(arguments
`(#:phases
--
2.31.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#48263] [PATCH v2 1/3] gnu: python-hypercorn: Remove "python-" prefix from name.
2021-05-06 19:17 [bug#48263] [PATCH 1/2] gnu: python-hypercorn: Rename to hypercorn Vinicius Monego
2021-05-06 19:20 ` [bug#48263] [PATCH 2/2] gnu: hypercorn: Update to 0.11.2 Vinicius Monego
@ 2021-10-30 17:30 ` Vinicius Monego
2021-10-30 17:30 ` [bug#48263] [PATCH v2 2/3] gnu: hypercorn: Update to 0.11.2 Vinicius Monego
` (2 more replies)
1 sibling, 3 replies; 6+ messages in thread
From: Vinicius Monego @ 2021-10-30 17:30 UTC (permalink / raw)
To: 48263; +Cc: Vinicius Monego
Hypercorn is mainly a CLI application but also supports a module interface.
* gnu/packages/python-web.scm (python-hypercorn): New deprecated variable.
(hypercorn): Renamed from the respective above.
---
gnu/packages/python-web.scm | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 2b5379950d..7a4e62ddf6 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1615,9 +1615,9 @@ choose to use, ensuring that you can communicate via WebSockets, as defined in
RFC6455, regardless of your programming paradigm.")
(license license:expat)))
-(define-public python-hypercorn
+(define-public hypercorn
(package
- (name "python-hypercorn")
+ (name "hypercorn")
(version "0.10.2")
(source
(origin
@@ -1633,6 +1633,7 @@ RFC6455, regardless of your programming paradigm.")
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-vv"))))))
+ ;; Propagate because Hypercorn also exposes functionality over a module.
(propagated-inputs
`(("python-h11" ,python-h11)
("python-h2" ,python-h2)
@@ -1657,6 +1658,9 @@ WebSockets (over HTTP/1 and HTTP/2), ASGI/2, and ASGI/3 specifications. It can
utilise asyncio, uvloop, or trio worker types.")
(license license:expat)))
+(define-public python-hypercorn
+ (deprecated-package "python-hypercorn" hypercorn))
+
(define-public python-querystring-parser
(package
(name "python-querystring-parser")
base-commit: e1261ddd38cf02a0f046f3a5360502d659b4e7d4
--
2.30.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#48263] [PATCH v2 2/3] gnu: hypercorn: Update to 0.11.2.
2021-10-30 17:30 ` [bug#48263] [PATCH v2 1/3] gnu: python-hypercorn: Remove "python-" prefix from name Vinicius Monego
@ 2021-10-30 17:30 ` Vinicius Monego
2021-10-30 17:30 ` [bug#48263] [PATCH v2 3/3] gnu: hypercorn: Honor #:tests? in 'check' phase Vinicius Monego
2021-11-08 20:38 ` bug#48263: [PATCH v2 1/3] gnu: python-hypercorn: Remove "python-" prefix from name Efraim Flashner
2 siblings, 0 replies; 6+ messages in thread
From: Vinicius Monego @ 2021-10-30 17:30 UTC (permalink / raw)
To: 48263; +Cc: Vinicius Monego
* gnu/packages/python-web.scm (hypercorn): Update to 0.11.2.
---
gnu/packages/python-web.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 7a4e62ddf6..287574301d 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1618,13 +1618,13 @@ RFC6455, regardless of your programming paradigm.")
(define-public hypercorn
(package
(name "hypercorn")
- (version "0.10.2")
+ (version "0.11.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Hypercorn" version))
(sha256
- (base32 "15dgy47a18w2ls3hwykra1cyf7yzxmfjqnsqml482p12cxr2xwqr"))))
+ (base32 "16kai5d12f05jr89mj611zslxqri4cd7ixcgd6yhl211qlcyg8av"))))
(build-system python-build-system)
(arguments
`(#:phases
--
2.30.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bug#48263] [PATCH v2 3/3] gnu: hypercorn: Honor #:tests? in 'check' phase.
2021-10-30 17:30 ` [bug#48263] [PATCH v2 1/3] gnu: python-hypercorn: Remove "python-" prefix from name Vinicius Monego
2021-10-30 17:30 ` [bug#48263] [PATCH v2 2/3] gnu: hypercorn: Update to 0.11.2 Vinicius Monego
@ 2021-10-30 17:30 ` Vinicius Monego
2021-11-08 20:38 ` bug#48263: [PATCH v2 1/3] gnu: python-hypercorn: Remove "python-" prefix from name Efraim Flashner
2 siblings, 0 replies; 6+ messages in thread
From: Vinicius Monego @ 2021-10-30 17:30 UTC (permalink / raw)
To: 48263; +Cc: Vinicius Monego
* gnu/packages/python-web.scm (hypercorn)[arguments]: Honor #:tests? in
'check' phase.
---
gnu/packages/python-web.scm | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 287574301d..204059a08a 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1630,9 +1630,10 @@ RFC6455, regardless of your programming paradigm.")
`(#:phases
(modify-phases %standard-phases
(replace 'check
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (add-installed-pythonpath inputs outputs)
- (invoke "pytest" "-vv"))))))
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "python" "-m" "pytest")))))))
;; Propagate because Hypercorn also exposes functionality over a module.
(propagated-inputs
`(("python-h11" ,python-h11)
--
2.30.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* bug#48263: [PATCH v2 1/3] gnu: python-hypercorn: Remove "python-" prefix from name.
2021-10-30 17:30 ` [bug#48263] [PATCH v2 1/3] gnu: python-hypercorn: Remove "python-" prefix from name Vinicius Monego
2021-10-30 17:30 ` [bug#48263] [PATCH v2 2/3] gnu: hypercorn: Update to 0.11.2 Vinicius Monego
2021-10-30 17:30 ` [bug#48263] [PATCH v2 3/3] gnu: hypercorn: Honor #:tests? in 'check' phase Vinicius Monego
@ 2021-11-08 20:38 ` Efraim Flashner
2 siblings, 0 replies; 6+ messages in thread
From: Efraim Flashner @ 2021-11-08 20:38 UTC (permalink / raw)
To: 48263-done
[-- Attachment #1: Type: text/plain, Size: 236 bytes --]
Thanks! Patch pushed.
--
Efraim Flashner <efraim@flashner.co.il> רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-11-08 20:39 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-06 19:17 [bug#48263] [PATCH 1/2] gnu: python-hypercorn: Rename to hypercorn Vinicius Monego
2021-05-06 19:20 ` [bug#48263] [PATCH 2/2] gnu: hypercorn: Update to 0.11.2 Vinicius Monego
2021-10-30 17:30 ` [bug#48263] [PATCH v2 1/3] gnu: python-hypercorn: Remove "python-" prefix from name Vinicius Monego
2021-10-30 17:30 ` [bug#48263] [PATCH v2 2/3] gnu: hypercorn: Update to 0.11.2 Vinicius Monego
2021-10-30 17:30 ` [bug#48263] [PATCH v2 3/3] gnu: hypercorn: Honor #:tests? in 'check' phase Vinicius Monego
2021-11-08 20:38 ` bug#48263: [PATCH v2 1/3] gnu: python-hypercorn: Remove "python-" prefix from name Efraim Flashner
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).