Skip to content

Commit

Permalink
Set maximum version for packaging, which has removed LegacyVersion (#…
Browse files Browse the repository at this point in the history
…427)

* Set maximum version for packaging, which has removed LegacyVersion

pip-audit uses `packaging.version.LegacyVersion` to parse some version numbers, and this is removed in packaging 22.0 (pypa/packaging#407)

Closes #426

* test: Remove `pyparsing` as this is no longer a dependency of `packaging`

Co-authored-by: Alex Cameron <[email protected]>
  • Loading branch information
haydngreatnews and tetsuo-cpp authored Dec 8, 2022
1 parent a4879d2 commit b85b482
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies = [
# See: https://github.com/CycloneDX/cyclonedx-python-lib/issues/245
"cyclonedx-python-lib>=2.0.0,!=2.5.0",
"html5lib>=1.1",
"packaging>=21.0.0",
"packaging>=21.0.0,<22.0.0",
"pip-api>=0.0.28",
"pip-requirements-parser>=31.2.0",
"resolvelib>=0.8.0",
Expand Down
1 change: 0 additions & 1 deletion test/dependency_source/resolvelib/test_resolvelib.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ def test_resolvelib_sdist():
assert len(resolved_deps) == 1
expected_deps = [
ResolvedDependency("ansible-core", Version("2.11.5")),
ResolvedDependency("pyparsing", Version("2.4.7")),
ResolvedDependency("jinja2", Version("3.0.1")),
ResolvedDependency("pycparser", Version("2.20")),
ResolvedDependency("pyyaml", Version("5.4.1")),
Expand Down

0 comments on commit b85b482

Please sign in to comment.