Skip to content
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

Avoid pip v20.3 constraints issue #813

Merged
merged 2 commits into from
Dec 1, 2020

Conversation

AnnaKwa
Copy link
Contributor

@AnnaKwa AnnaKwa commented Nov 30, 2020

v20.3 of pip just got released, so the line pip install --upgrade pip in the prognostic dockerfile will now upgrade to 20.3 instead of 20.2.4. The newer version has some new dependency resolving features that prevent the pip from installing with the current constraints file: ERROR: Constraints cannot have extras, which makes the prognostic image build fail. This is a bandaid fix for what should probably be resolved by fixing constraints.txt to not have extras, I didn't want to just start deleting those though in case other stuff broke. I created an issue for this: #814

Ex. most recent master prognostic build step that ran the installations of requirements, which passed using the older v20.2.4: https://app.circleci.com/pipelines/github/VulcanClimateModeling/fv3net/6289/workflows/16c85815-5e4d-4fc9-b174-bb6ada028e37/jobs/38693

ex. a prognostic build step after the v20.3 release that fails with the above constraints error: https://app.circleci.com/pipelines/github/VulcanClimateModeling/fv3net/6337/workflows/ee69991d-1d50-46d3-87f2-ffb3b00df460/jobs/39356

Resolves #814

Copy link
Contributor

@nbren12 nbren12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for tracking this down.

Can you mention this pip version in the README section on version requirements. Also, the PR title and description could be more succinct. Could you rename to "Avoid pip v20.3 constraints issue". Thanks.

@AnnaKwa AnnaKwa changed the title Pin pip version in prognostic dockerfile to avoid v20.3 constraints issue Avoid pip v20.3 constraints issue Nov 30, 2020
@AnnaKwa AnnaKwa added the automerge The automerge github action will merge PRs with this label once they are ready. label Dec 1, 2020
@github-actions github-actions bot merged commit c7c5bc5 into master Dec 1, 2020
@github-actions github-actions bot deleted the fix/pip-rejects-constraints branch December 1, 2020 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge The automerge github action will merge PRs with this label once they are ready.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extras in constraints.txt lead to breakage with pip v20.3
2 participants