Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #15110
| Path | csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod |
|---|---|
| From | Stefano Rivera <stefanor@debian.org> |
| Newsgroups | linux.debian.maint.python, linux.debian.bugs.dist |
| Subject | Naming of python binary packages |
| Date | Fri, 11 Aug 2023 16:50:01 +0200 |
| Message-ID | <H1BCF-14HI-1@gated-at.bofh.it> (permalink) |
| References | <H1BCF-14HI-3@gated-at.bofh.it> <H1BCF-14HI-3@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Fri Aug 11 14:49:23 2023 |
| Old-Return-Path | <stefano@rivera.za.net> |
| X-Amavis-Spam-Status | No, score=-105.862 tagged_above=-10000 required=5.3 tests=[ATTENDEES_DBSPAM_BODY3=1, BAYES_00=-2, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, LDO_WHITELIST=-5, USER_IN_DKIM_WELCOMELIST=-0.01, USER_IN_DKIM_WHITELIST=-100] autolearn=no autolearn_force=no |
| X-Policyd-Weight | NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_FROM_MX=-3.1; rate: -4.6 |
| Mail-Followup-To | debian-python@lists.debian.org, Thomas Goirand <zigo@infomaniak.com>, 1023512@bugs.debian.org |
| X-Gpg-Public-Key | https://www.rivera.za.net/stefano.gpg |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Disposition | inline |
| User-Agent | NeoMutt/20220429 |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/21030 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/20230811144900.xyaim52ppum6kclb@satie.tumbleweed.org.za |
| Approved | robomod@news.nic.it |
| Lines | 57 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | Thomas Goirand <zigo@infomaniak.com>, 1023512@bugs.debian.org |
| X-Original-Date | Fri, 11 Aug 2023 14:49:00 +0000 |
| X-Original-Message-ID | <20230811144900.xyaim52ppum6kclb@satie.tumbleweed.org.za> |
| X-Original-References | <fc616098-8899-a33a-0603-ce210d459461@infomaniak.com> <fc616098-8899-a33a-0603-ce210d459461@infomaniak.com> |
| Xref | csiph.com linux.debian.maint.python:15110 linux.debian.bugs.dist:1158134 |
Cross-posted to 2 groups.
Show key headers only | View raw
Bringing bug 1023512 [0] to the Debian Python list: [0] https://bugs.debian.org/1023512 > > According to the Debian Python Policy Section 4.3, binary package > > names should be named after the *import* name of the module, not the > > PyPI distribution name. > Unfortunately, I do not agree at all with this policy. The import name has > no importance, and IMO, we should change that policy so that the package > name matches the egg-name rather than the import name. I wouldn't quite say it has no importance. It describes which part of the filesystem the package owns. I don't know the history of this policy offhand, but I presume it's also because not all Python modules come from PyPI, and we needed a standard way to address them. Also, we sometimes break PyPI distributions up into separate binary packages. They are closer to a source package than a Debian binary package. FIWIW: I am not convinced that Python made the right decision in allowing distribution names to diverge from import names, it tends to just create confusion. But that's neither here nor there. > In many places, that would make our life of package maintainer better. A > good example is all the oslo libraries in OpenStack, that all have a dot in > their egg-name, but an underscore in the import path (so that it works > better under python3). In this specific case, using the dash instead of the > dot would be really stupid and break many things, like automation for > dependencies. Presumably that can be solved with a few automated adjustments, (like the . -> _ transformation you describe). Having a straightforward distribution name -> package name mapping would make automating dependencies simpler, I agree. But we have tooling that handles that already: dh-python and its' pydist data. > In fact, this extend to all of the Debian Python module archive. > > If you want to discuss this further, please open a thread in the list. I don't think the solution here is for your packages to use distribution-derived names while everyone else's use the policy-defined names. Can we rather come to a consensus on what we should be using? My vote would be strongly towards maintaining the status quo of the policy-defined names. I don't see any strong argument for changing this. Stefano -- Stefano Rivera http://tumbleweed.org.za/ +1 415 683 3272
Back to linux.debian.maint.python | Previous | Next — Next in thread | Find similar | Unroll thread
Naming of python binary packages Stefano Rivera <stefanor@debian.org> - 2023-08-11 16:50 +0200 Re: Naming of python binary packages Stefano Rivera <stefanor@debian.org> - 2023-08-11 17:20 +0200 Re: Naming of python binary packages Scott Kitterman <debian@kitterman.com> - 2023-08-11 17:30 +0200 Re: Naming of python binary packages Simon McVittie <smcv@debian.org> - 2023-08-11 18:20 +0200
csiph-web