Skip to content

Commit

Permalink
Import from packaging directly, add to requirements (#6374)
Browse files Browse the repository at this point in the history
  • Loading branch information
achamayou authored Jul 18, 2024
1 parent a80c081 commit 7e3b3b9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion python/ccf/_versionifier.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the Apache 2.0 License.

from setuptools.extern.packaging.version import ( # type: ignore
from packaging.version import ( # type: ignore
Version,
InvalidVersion,
)
Expand Down
4 changes: 3 additions & 1 deletion python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
loguru >= 0.5, == 0.*
cryptography == 42.*
string-color >= 1.2.1, == 1.*
pycose >= 1.0.1, == 1.*
pycose >= 1.0.1, == 1.*
setuptools == 58.*
packaging == 24.*
2 changes: 1 addition & 1 deletion tests/infra/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import shutil
import requests

from setuptools.extern.packaging.version import Version # type: ignore
from packaging.version import Version # type: ignore

from loguru import logger as LOG

Expand Down
2 changes: 1 addition & 1 deletion tests/infra/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import ccf._versionifier

from setuptools.extern.packaging.version import Version # type: ignore
from packaging.version import Version # type: ignore

from loguru import logger as LOG

Expand Down
2 changes: 1 addition & 1 deletion tests/infra/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import json
import infra.snp as snp
import ccf._versionifier
from setuptools.extern.packaging.version import ( # type: ignore
from packaging.version import ( # type: ignore
Version,
)

Expand Down

0 comments on commit 7e3b3b9

Please sign in to comment.