* [bug#58729] [PATCH 0/2] gnu: python-frozendict: Update to 2.3.4.
@ 2022-10-23 3:47 Michael Rohleder
2022-10-23 3:51 ` [bug#58729] [PATCH 1/2] " Michael Rohleder
2022-11-05 10:51 ` bug#58729: [PATCH 0/2] gnu: python-frozendict: Update to 2.3.4 Christopher Baines
0 siblings, 2 replies; 4+ messages in thread
From: Michael Rohleder @ 2022-10-23 3:47 UTC (permalink / raw)
To: 58729; +Cc: Michael Rohleder
While working on synapse I noticed that they found a memory leak in
python-frozendict. Updating this needs a newer python-canonicaljson.
Michael Rohleder (2):
gnu: python-frozendict: Update to 2.3.4.
gnu: python-canonicaljson: Update to 1.6.3.
gnu/packages/python-xyz.scm | 37 +++++++++++++++++++++++++++++++------
1 file changed, 31 insertions(+), 6 deletions(-)
base-commit: 1f734a6f0a7db5b0e12091a0c869c5c4810ac80e
--
2.38.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#58729] [PATCH 1/2] gnu: python-frozendict: Update to 2.3.4.
2022-10-23 3:47 [bug#58729] [PATCH 0/2] gnu: python-frozendict: Update to 2.3.4 Michael Rohleder
@ 2022-10-23 3:51 ` Michael Rohleder
2022-10-23 3:51 ` [bug#58729] [PATCH 2/2] gnu: python-canonicaljson: Update to 1.6.3 Michael Rohleder
2022-11-05 10:51 ` bug#58729: [PATCH 0/2] gnu: python-frozendict: Update to 2.3.4 Christopher Baines
1 sibling, 1 reply; 4+ messages in thread
From: Michael Rohleder @ 2022-10-23 3:51 UTC (permalink / raw)
To: 58729; +Cc: Michael Rohleder
This fixes a potential memory leak with python 3.9:
https://github.com/slezica/python-frozendict/issues/38
* gnu/packages/python-xyz.scm (python-frozendict): Update to 2.3.4.
[home-page]: Set to new upstream repository.
---
gnu/packages/python-xyz.scm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 51136d8e6e..f3ede1b417 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -79,7 +79,7 @@
;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
;;; Copyright © 2020 Josh Holland <josh@inv.alid.pw>
;;; Copyright © 2020 Yuval Kogman <nothingmuch@woobling.org>
-;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
+;;; Copyright © 2020, 2022 Michael Rohleder <mike@rohleder.de>
;;; Copyright © 2020, 2021, 2022 Vinicius Monego <monego@posteo.net>
;;; Copyright © 2020 Guy Fleury Iteriteka <gfleury@disroot.org>
;;; Copyright © 2020 Hendursaga <hendursaga@yahoo.com>
@@ -25954,15 +25954,15 @@ (define-public python-freetype-py
(define-public python-frozendict
(package
(name "python-frozendict")
- (version "1.2")
+ (version "2.3.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "frozendict" version))
(sha256
- (base32 "0ibf1wipidz57giy53dh7mh68f2hz38x8f4wdq88mvxj5pr7jhbp"))))
+ (base32 "0y3zn57i1q5192f7l4w2z2zsy3rrx50g563msaq954r58s1v3d0m"))))
(build-system python-build-system)
- (home-page "https://github.com/slezica/python-frozendict")
+ (home-page "https://github.com/Marco-Sulla/python-frozendict")
(synopsis "Simple immutable mapping for Python")
(description
"@dfn{frozendict} is an immutable wrapper around dictionaries that
--
2.38.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#58729] [PATCH 2/2] gnu: python-canonicaljson: Update to 1.6.3.
2022-10-23 3:51 ` [bug#58729] [PATCH 1/2] " Michael Rohleder
@ 2022-10-23 3:51 ` Michael Rohleder
0 siblings, 0 replies; 4+ messages in thread
From: Michael Rohleder @ 2022-10-23 3:51 UTC (permalink / raw)
To: 58729; +Cc: Michael Rohleder
* gnu/packages/python-xyz.scm (python-canonicaljson): Update to 1.6.3.
[arguments]: Add phases build, check and install to build with pep517.
Add phase loosen-requirements to build with python-setuptools-scm >3.
[native-inputs]: Add python-pypa-build, python-pytest, python-setuptools,
python-setuptools-scm.
---
gnu/packages/python-xyz.scm | 29 +++++++++++++++++++++++++++--
1 file changed, 27 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f3ede1b417..d5f94d1cfb 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -26043,14 +26043,39 @@ (define-public python-py-cpuinfo
(define-public python-canonicaljson
(package
(name "python-canonicaljson")
- (version "1.4.0")
+ (version "1.6.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "canonicaljson" version))
(sha256
- (base32 "0c86g0vvzdcg3nrcsqnbzlfhpprc2i894p8i14hska56yl27d6w9"))))
+ (base32 "0j5lq191jkd483q6xzc16c9fahxf15lrv03mvah9ka3lq85pcnfa"))))
(build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'loosen-requirements
+ (lambda _
+ ;; Permit newer versions of setuptools_scm
+ (substitute* "pyproject.toml"
+ ((">= 2.0.0, <3") ">= 2.0.0"))))
+ (replace 'build
+ (lambda _
+ ;; ZIP does not support timestamps before 1980.
+ (setenv "SOURCE_DATE_EPOCH" "315532800")
+ (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest"))))
+ (replace 'install
+ (lambda _
+ (let ((whl (car (find-files "dist" "\\.whl$"))))
+ (invoke "pip" "--no-cache-dir" "--no-input"
+ "install" "--no-deps" "--prefix" #$output whl)))))))
+ (native-inputs
+ (list python-pypa-build python-pytest python-setuptools python-setuptools-scm))
(propagated-inputs
(list python-six python-frozendict python-simplejson))
(home-page "https://github.com/matrix-org/python-canonicaljson")
--
2.38.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#58729: [PATCH 0/2] gnu: python-frozendict: Update to 2.3.4.
2022-10-23 3:47 [bug#58729] [PATCH 0/2] gnu: python-frozendict: Update to 2.3.4 Michael Rohleder
2022-10-23 3:51 ` [bug#58729] [PATCH 1/2] " Michael Rohleder
@ 2022-11-05 10:51 ` Christopher Baines
1 sibling, 0 replies; 4+ messages in thread
From: Christopher Baines @ 2022-11-05 10:51 UTC (permalink / raw)
To: Michael Rohleder; +Cc: 58729-done, guix-patches
[-- Attachment #1: Type: text/plain, Size: 540 bytes --]
Michael Rohleder <mike@rohleder.de> writes:
> While working on synapse I noticed that they found a memory leak in
> python-frozendict. Updating this needs a newer python-canonicaljson.
>
> Michael Rohleder (2):
> gnu: python-frozendict: Update to 2.3.4.
> gnu: python-canonicaljson: Update to 1.6.3.
>
> gnu/packages/python-xyz.scm | 37 +++++++++++++++++++++++++++++++------
> 1 file changed, 31 insertions(+), 6 deletions(-)
Thanks for the patches! I've pushed these to master as
b3147b149c8c44f5b4fe20936438165fa449fe20.
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-11-05 10:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-23 3:47 [bug#58729] [PATCH 0/2] gnu: python-frozendict: Update to 2.3.4 Michael Rohleder
2022-10-23 3:51 ` [bug#58729] [PATCH 1/2] " Michael Rohleder
2022-10-23 3:51 ` [bug#58729] [PATCH 2/2] gnu: python-canonicaljson: Update to 1.6.3 Michael Rohleder
2022-11-05 10:51 ` bug#58729: [PATCH 0/2] gnu: python-frozendict: Update to 2.3.4 Christopher Baines
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).