-
Notifications
You must be signed in to change notification settings - Fork 137
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
Flit can't generate a proper wheel file name for project names with dots #442
Comments
I think the underscore is correct. The relevant part of the wheel spec says:
|
When trying to upload to PyPI, I run into this: As can be seen here, dots are not included in the replaced characters: Not sure whether this is because the wheel spec is wrong or because the implementation in pkg_resources is wrong but currently this prevents projects with dots in names from using wheels built by flit (though perhaps manual file rename before upload would be enough as a workaround, not sure whether this affects anything other than the file name). |
The underscore is correct. This should be fixed in warehouse. |
We did have to change the wheel spec around filenames fairly recently (see pypa/pip#9628) - we found one of those cases where the spec had diverged from what important tools actually do, and adjusting the spec seemed like the most practical way forwards. But it's not a big surprise that what was written in the spec before got implemented in some places. It looks like this has been accepted as a bug in Warehouse, so I'll close the issue here. Comments will still be available for follow up if needed. |
For example:
pyproject.toml
simplepackage/__init__.py
Running
flit build
causes this outputand these files to be generated:
While for it to work properly, it should generate these files instead:
The text was updated successfully, but these errors were encountered: