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

Case sensitivity of project names when publishing to PyPI #1202

Closed
2 tasks done
robertmartin8 opened this issue Jun 29, 2019 · 10 comments
Closed
2 tasks done

Case sensitivity of project names when publishing to PyPI #1202

robertmartin8 opened this issue Jun 29, 2019 · 10 comments
Labels
area/publishing Related to PyPI/PEP 503 publishing status/external-issue Issue is caused by external project (platform, dep, etc) status/wontfix Will not be implemented

Comments

@robertmartin8
Copy link

robertmartin8 commented Jun 29, 2019

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • Poetry version: 0.12.16

Issue

I'm trying to migrate my project from setup.py etc to poetry, and it has mostly been very straightforward.

My (very minor) issue is that the name field does not appear to preserve its case when publishing.

[tool.poetry]
name = "PyPortfolioOpt"
version = "0.3.2"
...

Becomes:

pyp

With setup.py, the case sensitivity is preserved on PyPI.

I know that there is no real difference which is why this is a minor issue, but stylistically it's a tiny thing that I prefer about setup.py.

@stale
Copy link

stale bot commented Nov 13, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 13, 2019
@justinmayer
Copy link
Contributor

@robertmartin8: Could you try using the latest Poetry 1.0 beta (e.g., by passing --preview to the get-poetry.py install script) and confirm that the issue you reported persists?

@stale stale bot removed the stale label Nov 13, 2019
@robertmartin8
Copy link
Author

@justinmayer

I just pushed an update to my package. As far as I can see, the issue still persists.

> poetry --version
Poetry version 1.0.0b9
> poetry build

Building PyPortfolioOpt (0.5.0)
 - Building sdist
 - Built PyPortfolioOpt-0.5.0.tar.gz

 - Building wheel
 - Built PyPortfolioOpt-0.5.0-py3-none-any.whl
> poetry publish

Publishing PyPortfolioOpt (0.5.0) to PyPI
Username: ***********
Password: 
 - Uploading PyPortfolioOpt-0.5.0-py3-none-any.whl 100%
 - Uploading PyPortfolioOpt-0.5.0.tar.gz 100%

Screenshot 2019-12-12 at 11 44 10

@justinmayer
Copy link
Contributor

Poetry v1.0.0 was just released, so I'd try again with that version. I imagine the issue is unresolved, but it'd be better to know that for certain.

@robertmartin8
Copy link
Author

@justinmayer I've just tried with v1.0.0 – it's still unresolved.

@finswimmer finswimmer added the area/publishing Related to PyPI/PEP 503 publishing label Feb 9, 2020
@neersighted
Copy link
Member

@dimbleby will python-poetry/poetry-core#484 affect this?

@dimbleby
Copy link
Contributor

dimbleby commented Oct 5, 2022

No, as I said there, that MR leaves poetry continuing to normalize project names at upload.

Unless and until pypa decide what the standards should actually be, and pypi do something about pypi/warehouse#10030, it will remain impossible to do both of (i) publish with a pretty project name and (ii) normalize sdist and wheel names.

python-poetry/poetry-core#484 continues in the direction of favouring normalization.

@neersighted
Copy link
Member

neersighted commented Oct 5, 2022

Ah, makes sense -- we're trading capitalized names versus not being able to upload an entire category of otherwise valid packages. Given the acceptance of PEP 625 and our move to canonicalize names, I'm going to close this as wontfix. It could eventually be addressed by amendments to the PEPs/changes in PyPI widening the list of acceptable names (e.g. pypi/warehouse#12316).

@neersighted neersighted closed this as not planned Won't fix, can't repro, duplicate, stale Oct 5, 2022
@neersighted neersighted added the status/wontfix Will not be implemented label Oct 5, 2022
@dimbleby
Copy link
Contributor

dimbleby commented Oct 5, 2022

yeah - again reiterating what I said in the other one - if and when that pypi issue is fixed, it's trivial for poetry to start publishing with pretty names. But we shouldn't do that while it doesn't work!

Copy link

github-actions bot commented Mar 1, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/publishing Related to PyPI/PEP 503 publishing status/external-issue Issue is caused by external project (platform, dep, etc) status/wontfix Will not be implemented
Projects
None yet
Development

No branches or pull requests

5 participants