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

pyproject: constrain urllib3 #617

Merged
merged 3 commits into from
May 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ All versions prior to 0.0.9 are untracked.

## [Unreleased]

### Fixed

* Fixed a crash caused by incompatible dependency changes
([#617](https://github.com/pypa/pip-audit/pull/617))

## [2.5.5]

### Fixed
Expand Down
11 changes: 6 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,19 @@ classifiers = [
"Topic :: Security",
]
dependencies = [
"CacheControl[filecache]>=0.12.10",
"CacheControl[filecache] >= 0.12.0",
# NOTE(ww): Release 2.5.0 is broken, subsequent 2.5.x releases fix it.
# See: https://github.com/CycloneDX/cyclonedx-python-lib/issues/245
"cyclonedx-python-lib ~= 2.0, != 2.5.0",
"html5lib>=1.1",
"packaging>=23.0.0", # https://github.com/pypa/pip-audit/issues/464
"pip-api>=0.0.28",
"pip-requirements-parser>=32.0.0",
# NOTE(ww): urllib3 2.0 and higher are incompatible with CacheControl;
# we prevent its use by using a version of requests that uses urllib3 < 2.0.
# See: https://github.com/psf/requests/issues/6437
"requests<2.30",
"requests >= 2.31.0",
# NOTE(ww): We constrain this subdepency because of CacheControl's incompatibility
# with urllib3 ~= 2.0 by way of requests.
# See: https://github.com/ionrock/cachecontrol/issues/292
"urllib3 ~= 1.26",
"rich>=12.4",
"toml>=0.10",
]
Expand Down