GNU bug report logs -
#77600
[PATCH] import/pypi: Improve renaming procedure.
Previous Next
To reply to this bug, email your comments to 77600 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
lars <at> 6xq.net, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, tanguy <at> bioneland.org, guix-patches <at> gnu.org
:
bug#77600
; Package
guix-patches
.
(Mon, 07 Apr 2025 07:22:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
lars <at> 6xq.net, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, tanguy <at> bioneland.org, guix-patches <at> gnu.org
.
(Mon, 07 Apr 2025 07:22:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
A package named upstream like 'tmdb-python' now gets named 'python-tmdb'
instead of 'python-tmdb-python', which is ugly and doesn't match our
convention (info "(guix) Python Modules").
* guix/import/pypi.scm (python->package-name): Turn a -python suffix into a
python- prefix.
Change-Id: I7c0227d569c0afe6b16329d7cedb51728e4365b0
---
guix/import/pypi.scm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/guix/import/pypi.scm b/guix/import/pypi.scm
index dd43ebdcf3..5e2c6ec9ff 100644
--- a/guix/import/pypi.scm
+++ b/guix/import/pypi.scm
@@ -179,6 +179,8 @@ (define (python->package-name name)
package."
(cond
((string-prefix? "python-" name) (snake-case name))
+ ((string-suffix? "-python" name)
+ (string-append "python-" (string-drop-right name 7)))
((or (string=? "trytond" name)
(string-prefix? "trytond-" name)) (snake-case name))
(else (string-append "python-" (snake-case name)))))
base-commit: e2f37229e5e7f6e73806d8087faf9e1e94ea9acf
--
2.49.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#77600
; Package
guix-patches
.
(Mon, 07 Apr 2025 16:36:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 77600 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
The change looks reasonable.
Some side note on PyPI source archive naming, they started forcing
users to rename them to lower case only and _
https://packaging.python.org/en/latest/discussions/package-formats/
VCS: https://github.incerto.xyz/; https://git.sr.ht/~hellseher/
GPG: 9847 81DE 689C 21C2 6418 0867 76D7 27BF F62C D2B5
… наш разум - превосходная объяснительная машина которая способна найти
смысл почти в чем угодно, истолковать любой феномен, но совершенно не в
состоянии принять мысль о непредсказуемости.
[Message part 2 (text/html, inline)]
This bug report was last modified 5 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.