question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Constraints behaviour changes in new PIP

See original GitHub issue

We 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:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
potiukcommented, Nov 28, 2020

It’s not this. In our case we simply need to use --requirement instead of --constraint - we have the same result and it is officially supported in PIP.

0reactions
potiukcommented, Nov 30, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found