Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: do not normalize name when uploading #2057

Merged
merged 2 commits into from
Jun 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/2057.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Do not normalize the package name when uploading to PyPI.
3 changes: 1 addition & 2 deletions src/pdm/cli/commands/publish/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

from pdm.exceptions import PdmUsageError, ProjectError
from pdm.termui import logger
from pdm.utils import normalize_name

DIST_EXTENSIONS = {
".whl": "bdist_wheel",
Expand Down Expand Up @@ -179,7 +178,7 @@ def metadata_dict(self) -> dict[str, Any]:
meta = self.metadata
data = {
# identify release
"name": normalize_name(meta["Name"]),
"name": meta["Name"],
"version": meta["Version"],
# file content
"filetype": self.filetype,
Expand Down