Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Nov 2023 08:30:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   [Bug 275167] security/py-service-identity: merge duplicate of security/py-service_identity
Message-ID:  <bug-275167-21822-ETDKsOf9Cz@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-275167-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-275167-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275167

--- Comment #8 from John Hein <jcfyecrayz@liamekaens.com> ---
(In reply to Palle Girgensohn from comment #6)
The package indeed installs to site-packages/service_identity.  Installing =
to
site-packages/service-identity breaks when you do 'import service-identity'
since identifier names cannot include hyphens.  There are ways to import
modules if the directory name has hyphens, but it's better if you don't do =
so.

PyPI package names are another story. You can use hyphens there although so=
me
style guides recommend just using alphabetic lowercase (see 'Package and Mo=
dule
Names' PEP 8). There are lots of package names that use uppercase and hyphe=
ns
at pypi.org that do not follow that guideline, however - see
https://packaging.python.org/en/latest/specifications/name-normalization/
(which allows underscores and hyphens and uppercase).  Maybe I am misreading
PEP 8 (specifically what is considered a "package name").  But note that af=
ter
the "name normalization" described in the 'Python Packaging User Guide', na=
mes
with hyphens and underscores are considered equal in certain contexts (e.g.,
when provided to importlib.metadata functions).

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275167-21822-ETDKsOf9Cz>