Poetry should crash when entry-point has invalid name #2581
Labels
area/build-system
Related to PEP 517 packaging (see poetry-core)
area/core
Related to the poetry-core library
kind/bug
Something isn't working as expected
status/confirmed
Issue is reproduced and confirmed
version/1.2.2
Issue was also posted in pypa/setuptools#2203 and pypa/pip#8461.
Environment
Description
I was experimenting with entry_points and released a test pip package with an invalid "entry-point" name:
epot-test
(the-
is an invalid character):I was able to successfully publish the package even if the "epot-test" is not a valid entry-point name.
However
pip install
fails as the entry-point is invalid.Expected behavior
Poetry should have catch the invalid name and not publish the package in the first place.
poetry build
should have failed.How to Reproduce
Create a package with an invalid entry-point name:
Output
The only way I found was to manually found where the corrupted package was installed and remove the faulty entry point.
The text was updated successfully, but these errors were encountered: