You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Constraints are a way of specifying further restrictions on your requirements without requiring the specification be installed. e.g. you might say numpy<2 or urllib3>=2 without actually requiring them to be installed.
There are a lot of possible use cases for them but I beleive the strongest one is that allow that is not easy to replicate by juggling multiple requirements files is keep all your different "groups" of requirements in sync with each other, Apache Airflow uses this as they have many optional dependencies but a single constraints file per release that any user can use to make sure they get a tested version of each dependendy and transitive dependency: https://airflow.apache.org/docs/apache-airflow/stable/installation/installing-from-pypi.html#constraints-files
Because constraints directly interact with the resolution of the requirements I suspect it would fit into the low level nate of rip, but maybe you disagree.
Also, I think Pip may have some "lessons learnt" from add constraints that may want to be considered if pursuring this feature.
The text was updated successfully, but these errors were encountered:
Constraints are a way of specifying further restrictions on your requirements without requiring the specification be installed. e.g. you might say
numpy<2
orurllib3>=2
without actually requiring them to be installed.There are a lot of possible use cases for them but I beleive the strongest one is that allow that is not easy to replicate by juggling multiple requirements files is keep all your different "groups" of requirements in sync with each other, Apache Airflow uses this as they have many optional dependencies but a single constraints file per release that any user can use to make sure they get a tested version of each dependendy and transitive dependency: https://airflow.apache.org/docs/apache-airflow/stable/installation/installing-from-pypi.html#constraints-files
Because constraints directly interact with the resolution of the requirements I suspect it would fit into the low level nate of rip, but maybe you disagree.
Also, I think Pip may have some "lessons learnt" from add constraints that may want to be considered if pursuring this feature.
The text was updated successfully, but these errors were encountered: