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
Python: function to remove requirements.txt/setup.py constraints #21278
Comments
Example why we should have this: #21321 |
I can see the need in regards to the setup.py file. I've myself sometimes patched away a specific version pinning in a setup.py. How do you see the use related to a requirements.txt file? Wouldn't this typically be used in a scenario to generate nix code e.g. via pip2nix or pypi2nix? |
Actually, many developers wrongly load the That's also why I opened an issue on the |
Are there any updates to this issue, please? |
Reading pypa/setuptools#894 again. The |
continuing my line of though with
It jailbreaks ~95% of dependencies for apache-airflow, so is not "production-grade", but package is built and tested fine. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Added by #170813 |
Issue description
Python developers often pin their dependencies to exact versions. This is bad practice and most of the times absolutely not necessary either.
Typically we use
substituteInPlace
to remove the dependency requirement. It would be useful to have a function that would strip such exact requirements.I've also opened an issue at setuptools with a request for a flag that ignores version pinning.
pypa/setuptools#894
The text was updated successfully, but these errors were encountered: