forked from secure-systems-lab/securesystemslib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace deprecated distutils.version.StrictVersion.
distutils is deprecated as of Python 3.10. We were only using it for `StrictVersion`, which parses a version string and lets you order the result. The [official recommendation] from the packaging team is to replace `StrictVersion` with a dependency on the `packaging` package, but: 1. The Python version parser was a little different from GPG versioning anyway because it's made for Python versions (it had support for "prerelease tags"). 2. I wanted to avoid adding dependencies if possible. [official recommendation]: pypa/packaging#520 This PR adds a new `Version` class in `securesystemslib.gpg.util` and uses that instead. Signed-off-by: Zachary Newman <[email protected]>
- Loading branch information
Showing
2 changed files
with
100 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters