Skip to content

Require urllib3<2, to reduce installation issues#18959

Closed
huonw wants to merge 2 commits intopantsbuild:mainfrom
huonw:bugfix/urllib3-1
Closed

Require urllib3<2, to reduce installation issues#18959
huonw wants to merge 2 commits intopantsbuild:mainfrom
huonw:bugfix/urllib3-1

Conversation

@huonw
Copy link
Contributor

@huonw huonw commented May 9, 2023

The release of urllib3 2 has caused issues with installing pants (e.g. it requires OpenSSL 1.1.1), so, for now, we can restrict to only working with urllib3 1.x.y and thus reduce how often people have to apply workarounds like PIP_CONSTRAINTS=....

I've verified that the wheel METADATA has Requires-Dist: urllib3 (<2), and installing the wheel into a fresh venv before uses urllib3==2.0.2, while installing the wheel after uses urllib3==1.26.15.

This patch is intended to be an option for a short term/focused work-around that is safe to cherry-pick back to older branches, while #18952 is a better fix (removes the use of urllib3 from the main wheel) but riskier, and thus might not be cherry-picked.

Background: https://pantsbuild.slack.com/archives/C0D7TNJHL/p1683644499629429

@huonw huonw added needs-cherrypick [CI] category:bugfix Bug fixes for released features labels May 9, 2023
@huonw huonw added this to the 2.15.x milestone May 9, 2023
Copy link
Contributor

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

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

Thank you!

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
@huonw
Copy link
Contributor Author

huonw commented May 11, 2023

#18952 merged into main, obsoleting the need to merge this there. I've cherry-picked directly, in #18971 and #18973.

@huonw huonw closed this May 11, 2023
@huonw huonw deleted the bugfix/urllib3-1 branch May 11, 2023 01:08
huonw added a commit that referenced this pull request May 11, 2023
…) (#18971)

The release of urllib3 2 has caused issues with installing pants (e.g.
it requires OpenSSL 1.1.1), so, for now, we can restrict to only working
with urllib3 1.x.y and thus reduce how often people have to apply
workarounds like `PIP_CONSTRAINTS=...`.

I've verified that the wheel `METADATA` has `Requires-Dist: urllib3
(<2)`, and installing the wheel into a fresh venv _before_ uses
`urllib3==2.0.2`, while installing the wheel _after_ uses
`urllib3==1.26.15`.

This patch is intended to be an option for a short term/focused
work-around that is safe to cherry-pick back to older branches, while
#18952 is the better fix (removes the use of urllib3 from the main
wheel) but riskier, and thus might not be cherry-picked.

Background:
https://pantsbuild.slack.com/archives/C0D7TNJHL/p1683644499629429
huonw added a commit that referenced this pull request May 11, 2023
…) (#18973)

The release of urllib3 2 has caused issues with installing pants (e.g.
it requires OpenSSL 1.1.1), so, for now, we can restrict to only working
with urllib3 1.x.y and thus reduce how often people have to apply
workarounds like `PIP_CONSTRAINTS=...`.

I've verified that the wheel `METADATA` has `Requires-Dist: urllib3
(<2)`, and installing the wheel into a fresh venv _before_ uses
`urllib3==2.0.2`, while installing the wheel _after_ uses
`urllib3==1.26.15`.

This patch is intended to be an option for a short term/focused
work-around that is safe to cherry-pick back to older branches, while
#18952 is the better fix (removes the use of urllib3 from the main
wheel) but riskier, and thus might not be cherry-picked.

Background:
https://pantsbuild.slack.com/archives/C0D7TNJHL/p1683644499629429
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:bugfix Bug fixes for released features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants