Skip to content
This repository was archived by the owner on Jul 31, 2024. It is now read-only.

Use the pip 2020 resolver (default in 20.3.x) #1407

Closed
jwhitlock opened this issue Oct 29, 2020 · 0 comments · Fixed by #1427
Closed

Use the pip 2020 resolver (default in 20.3.x) #1407

jwhitlock opened this issue Oct 29, 2020 · 0 comments · Fixed by #1427
Assignees
Labels
dev local dev environment, dev scaffolding/infrastructure, etc

Comments

@jwhitlock
Copy link
Member

Install python libraries with pip 20.2 and the 2020-resolver planned for the 20.3 release. See the changes to the pip dependency resolver in 20.2 (2020)

This fails for me when installing in the docker image, and when installing on macOS in a virtualenv. It succeeds when the default resolver in pip 20.2 is used.

The error with --use-feature=2020-resolver is:

ERROR: In --require-hashes mode, all requirements must have their versions pinned with ==. These do not:
    idna<3,>=2.5 from https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl#sha256=b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0 (from requests[security]==2.24.0->-r requirements/shared.txt (line 9))

Previous work was in PR #1289. Some highlights:

My next attempt will be to follow @willkg's strategy in mozilla-services/socorro#5595 and switch to pip-compile instead. I also need to adjust my advocacy for constraints as requirements of requirements. They are a lot less useful with the new resolver.

@jwhitlock jwhitlock added this to the 2020 Holiday Wishlist milestone Oct 30, 2020
@jwhitlock jwhitlock added the dev local dev environment, dev scaffolding/infrastructure, etc label Nov 19, 2020
@jwhitlock jwhitlock self-assigned this Nov 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dev local dev environment, dev scaffolding/infrastructure, etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant