-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
poetry new
silently transforms underscores to dashes
#8848
Comments
poetry new
silently transforms underscores to dashes
that is the correctly normalized package name, not a bug |
You're right, sorry. I somehow didn't find PEP-503 when researching this. |
Though, on second thought, I'd argue that @dimbleby is this also by design? |
🤷 if you want to submit a merge request changing
|
Alright, thank you! I'll take a look |
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. |
Poetry version:
1.7.1
Python version:
3.9.18
OS version and name:
macOS 14.2.1 (23C71)
pyproject.toml: none, see repro steps below
I am on the latest stable Poetry version, installed using a recommended method.
I have searched the issues of this repo and believe that this is not a duplicate.
I have consulted the FAQ and blog for any relevant entries or release notes.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option) and have included the output below.Issue
Poetry doesn't handle underscores in package names really well. Two examples are:
poetry new test_package
Created package test_package in test_package
cat test_package/pyproject.toml
actually printsname = "test-package"
poetry version
still printstest-package
, even if you manually changepyproject.toml
toname = "test_package"
The text was updated successfully, but these errors were encountered: