Skip to content

Require urllib3<2, to reduce installation issues (cherry-pick of #18959)#18972

Closed
huonw wants to merge 1 commit intopantsbuild:2.15.xfrom
huonw:bugfix/urllib3-1-2.15.x
Closed

Require urllib3<2, to reduce installation issues (cherry-pick of #18959)#18972
huonw wants to merge 1 commit intopantsbuild:2.15.xfrom
huonw:bugfix/urllib3-1-2.15.x

Conversation

@huonw
Copy link
Contributor

@huonw huonw commented May 11, 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 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 huonw requested review from kaos and thejcannon as code owners May 11, 2023 01:03
@huonw huonw changed the base branch from main to 2.15.x May 11, 2023 01:04
@huonw
Copy link
Contributor Author

huonw commented May 11, 2023

Oops, wrong branch: #18973

@huonw huonw closed this May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant