-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
setuptools version
setuptools==75.8.1
Python version
python3.10
OS
windows
Additional environment information
Description
We have packages using pyproject.toml of the form:
something.module that use implicit namespaces for something
The latest 75.8.1 seems to rename the something.module-1.2.3.dist-info to be instead: something_module-1.2.3.dist-info
rolling back to 75.8.0 this problem does not exist.
This breaks folks using something of the form pkg_resources.require('something.module') as it now only works if they have pkg_resources.require('something-module')
Expected behavior
packages should continue to have the something.module form
How to Reproduce
git clone https://github.com/krpatter-intc/setuptools-example.git
cd setuptools-example
python -m build
And you'll note the naming difference in the wheel (and the .dist-info file)
You can then run:
import pkg_resources
pkg_resources.require("something.module") # this now throws an exception
Output
I'm aware pkg_resources is on its way out, but this still feels bad that the package has a new name. I'm not sure what the new equivalent/replacement for pkg_resources.require is.