Constraints behaviour changes in new PIP
See original GitHub issueWe have this warning when running the latest PIP, so we have to take a close look what it means to us:
pip install 'https://github.com/apache/airflow/archive/master.tar.gz#egg=apache-airflow[devel_ci]'
--constraint https://raw.githubusercontent.com/apache/airflow/constraints-master/constraints-3.6.txt
DEPRECATION: Constraints are only allowed to take the form of a package
name and a version specifier. Other forms were originally permitted
as an accident of the implementation, but were undocumented. The new implementation
of the resolver no longer supports these forms. A possible replacement is replacing
the constraint with a requirement.. You can find discussion regarding
this at https://github.com/pypa/pip/issues/8210.
Description
Use case / motivation
Related Issues
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Revert "Workaround for new pip 20.3 behavior" - OpenDev
The new dependency resolver included some changes that disallow setting URL's like "file:///path/to/project#egg=project" in constraints.
Read more >pip: requirements vs. constraints (intermediate ... - YouTube
today we talk about requirements and constraints in pip, the differences between the two, and some cases you might use constraints !playlist: ...
Read more >Resolving new pip backtracking runtime issue - Stack Overflow
The behavior seen is described as backtracking in the release notes. I understand why it is there. It specifies that I can use...
Read more >Behavior changes: Apps targeting Android 12
Change your app's targetSdkVersion to S to enable the new behavior. ... Android 12 introduces behavior improvements for picture-in-picture (PiP) mode.
Read more >User Guide - pip documentation v22.3.1
Constraints files are requirements files that only control which version of a requirement is installed, not whether it is installed or not. Their...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

It’s not this. In our case we simply need to use
--requirementinstead of--constraint- we have the same result and it is officially supported in PIP.Actually I think it was this. I have not seen this since I implemented the “@” (it was automatically overwritten before I merged it, so I think this was false-negative). I am provisionally closing it.