python-rpm-spec icon indicating copy to clipboard operation
python-rpm-spec copied to clipboard

pyrpm name already exist

Open BrunoVernay opened this issue 3 years ago • 4 comments

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.

BrunoVernay avatar May 19 '21 10:05 BrunoVernay

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

bkircher avatar May 23 '21 12:05 bkircher

@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.

pkulev avatar Jan 22 '23 19:01 pkulev

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

BrunoVernay avatar Jan 22 '23 20:01 BrunoVernay

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 avatar Jan 23 '23 17:01 bkircher