aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-11-22 16:07:02 +0100
committerMichał Górny <mgorny@gentoo.org>2024-11-22 22:35:14 +0100
commit3deb50dd5394ef306a911fdd37a1bf92ae658adc (patch)
tree459cc0eedbd11843f1785698d5a4d40a666418d1 /doc
parenteclass: Support rust.eclass and RUST_OPTIONAL as well (diff)
downloadpkgcheck-master.tar.gz
pkgcheck-master.tar.bz2
pkgcheck-master.zip
python: Enforce a stricter PyPI package naming policyHEADmaster
Enforce a stricter package naming policy that requires using lowercase names and hyphens over underscores. Once this change lands, I'll update the Python Guide as well. Previously, the policy was to permit either forcing lowercase, or to follow upstream naming (and the name check, more liberally, was done case-insensitively), with a note to enforce consistency across different packages. This caused twofold problems. Firstly, not all packages ended up following the policy for consistent naming -- so we e.g. have flit-core but flit_scm, or flask but Frozen-Flask. Part of the problem is that 1) PyPI packages themselves, particularly third-party extensions, don't follow consistent naming themselves, and 2) some PyPI packages actually get "renamed" with case and/or hyphen changes. Secondly, this policy makes naming less predictable. In particular, with upstream name of "flit-scm", you don't immediately figure out it's "flit_scm" in Gentoo, or with "PyGithub" you can't guess whether to look for "PyGithub" or "pygithub". The changed policy will require changes to 44 packages in Gentoo. Closes: https://github.com/pkgcore/pkgcheck/pull/717 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions