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

pyrpm name already exist #41

Open
BrunoVernay opened this issue May 19, 2021 · 4 comments
Open

pyrpm name already exist #41

BrunoVernay opened this issue May 19, 2021 · 4 comments
Labels

Comments

@BrunoVernay
Copy link
Contributor

When the code contain "from pyrpm...", some IDE (PyCharm for example) will install and import "pyrpm".
Seems legit, but it will actually install https://pypi.org/project/pyrpm/

It could be possible to document, add some kind of warning, or change the name.

@bkircher
Copy link
Owner

Hey there! oO you are absolutely right. Didn't notice that before.

@pkulev
Copy link
Contributor

pkulev commented Jan 22, 2023

@BrunoVernay this is not the library's issue. Python packages are not restricted to match pypi name and the actual package name. IDE should (and mine does) install dependencies into the dev environment using project's manifest, using package names for imports to pass it into pip install ... directly is just wrong.

@bkircher, I think this issue can be closed, because it's unrelated to the library.

@BrunoVernay
Copy link
Contributor Author

BrunoVernay commented Jan 22, 2023

At least, keep it open, that could help others to understand the issue.
"... using package names for imports to pass it into pip install ... directly is just" ... to be expected: https://peps.python.org/pep-0423/#use-a-single-name

@bkircher
Copy link
Owner

At least, keep it open, that could help others to understand the issue.

Agree. Let's keep this open. Maybe it's also worth adding a note to the README to reduce confusion.

@bkircher bkircher added the info label Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants