-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Publish Requires-Dist
for source distributions when using setup.cfg
?
#1805
Comments
Yes, that seems reasonable. |
Is there any practical consequence on There only being one (immutable) version of this at the top-level also seems problematic if different wheels (for different Python or platform) have different dependencies (this is very common with packages that depend on numpy). |
Apparently one of the consequences is that this field allows package managers to figure out dependencies before they have to go and download the wheel. |
This requires a "modernization" on how If anyone would like to contribute, help implementing would be very appreciated. Some time ago I started to contribute to pypa/packaging#498, but it seems that there is a lot to be discussed there and the maintainers might prefer a different path (so we might start with the implementation inside of setuptools first). |
I'd like to help, but I need some direction. Where would you make the change in setuptools? I looked at pypa/packaging#498 but didn't get how it's meant to be used. |
Consider the following example:
setup.py
:setup.cfg
:When building a built distribution, the following metadata is produced:
However for the same source distribution:
In this case, where
install_requires
is set insetup.cfg
and is completely deterministic, shouldsetuptools
includeRequires-Dist
in the metadata for the source distribution?The text was updated successfully, but these errors were encountered: