-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Lacking parity between requirements.txt and install_requires syntax #6097
Comments
whats your setuptools version? |
@RonnyPfannschmidt , I updated the Environment info to include my setuptools version. I also added Additional Info at the end of the How to Reproduce section that shines additional light on the problem. |
(Previous comment deleted; I read the spec wrong.) I wonder if this is actually a problem in the spec. requirements.txt allows specifying a path as a requirement, and as such, there is no way to uniquely dinstinguish a URL based lookup to a local path, since |
For what it's worth, I mentioned this in the other ticket, but Either 1. all dependencies maintained twice in two differing formats that are bound to get out of sync or 2. really ugly manually hacked transformation code: https://github.com/wobblui/wobblui/blob/2795a8f6cd2ffa7d97e84033f69afecbdf82607e/setup.py#L104 So if someone with an interest in solving this ticket wants to save the world from really ugly Edit: I got the transform code though so I'm definitely good personally, so this was just some extra info on the impact. It's not like this is a showstopper, it'd just be nice to eventually be able to throw the ugly transform code out |
What is the status here - is it an accepted bug and looking-for-help, or work-underway/under-review, or issue-likely-rejected/won't-fix? This is biting me so just wondering whether it is time to pitch-in. |
There's #6203 for this. |
See pypa/pip#6097 for the details.
Closing, since this was fixed by #6203 as demonstrated by: t.sh
Output
|
Environment
Description
Per PEP-508, I can now add 'selogging_python@https://host.company.com/content/groups/public/com/akamai/se/selogging-python/1.0.4/selogging-python-1.0.4.tgz' to the install_requires arg of
setuptools.setup()
and selogging_python dependency gets installed when the app containing that install_requires is installed. However, if I add selogging_python@https://host.company.com/content/groups/public/com/akamai/se/selogging-python/1.0.4/selogging-python-1.0.4.tgzto my requirements.txt, then
pip install -r requirements.txt
fails with:Expected behavior
I expected the same syntax to work in requirements.txt as in install_requires. Doesn't it make sense to support the same syntax in both?
How to Reproduce
to my requirements.txt
run
pip install -r requirements.txt
Output
Additional Info: If I add "#sha1=98286070ea0d7b1c6e9a0899717d8330c6d538a9" to the end of the URL in requirements.txt, then
pip install -r requirements.txt
works okay. However, since install_requires works without this "#sha1=98286070ea0d7b1c6e9a0899717d8330c6d538a9", I would expectpip install -r ...
to work without it as well. It appears thatpip install -r ...
gets confused without the "#sha1=98286070ea0d7b1c6e9a0899717d8330c6d538a9" suffix into thinking that the URL is a file path inside the current working directory.The text was updated successfully, but these errors were encountered: