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

Build builds source packages with names that are not accepted by Pypi #721

Closed
fladd opened this issue Jan 15, 2024 · 2 comments
Closed

Build builds source packages with names that are not accepted by Pypi #721

fladd opened this issue Jan 15, 2024 · 2 comments

Comments

@fladd
Copy link

fladd commented Jan 15, 2024

My Package is called "Zipped Album Player".

Build will create:

  • dist/Zipped_Album_Player-0.5.0-py3-none-any.whl
  • dist/Zipped Album Player-0.5.0.tar.gz

Pypi accepts the wheel, but not the source package.

The error is:

HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
Start filename for 'Zipped-Album-Player' with 'zipped_album_player'.

This is with Build version 1.0.3, which seems to be the most recent (or at least it is what I get when installing it via PIP).

(Note: This seems to be a recent change at Pypi, since my last versions of the same package could be uploaded without problems.)

@layday
Copy link
Member

layday commented Jan 16, 2024

The build backend is responsible for creating sdists and wheels; build simply invokes the backend. If you are using setuptools, then setuptools is responsible for naming your sdist.

@henryiii
Copy link
Contributor

I think this changed in setuptools 69.0.3, see pypa/setuptools#2522 (comment). I'd recommend opening an issue there. Basically they stopped normalizing the metadata info (good), but forgot that the SDist directly uses the metadata info for names without normalizing it.

@layday layday closed this as not planned Won't fix, can't repro, duplicate, stale Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants