diff --git a/python/ccf/_versionifier.py b/python/ccf/_versionifier.py index cf6b5cb2adbe..7f19870e4035 100644 --- a/python/ccf/_versionifier.py +++ b/python/ccf/_versionifier.py @@ -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, ) diff --git a/python/requirements.txt b/python/requirements.txt index f1522d39f9d4..935a3a5cf169 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -1,4 +1,6 @@ loguru >= 0.5, == 0.* cryptography == 42.* string-color >= 1.2.1, == 1.* -pycose >= 1.0.1, == 1.* \ No newline at end of file +pycose >= 1.0.1, == 1.* +setuptools == 58.* +packaging == 24.* diff --git a/tests/infra/github.py b/tests/infra/github.py index 1c65c404a62a..40a630da3f1b 100644 --- a/tests/infra/github.py +++ b/tests/infra/github.py @@ -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 diff --git a/tests/infra/node.py b/tests/infra/node.py index ebf602285ed9..696789eea0d5 100644 --- a/tests/infra/node.py +++ b/tests/infra/node.py @@ -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 diff --git a/tests/infra/remote.py b/tests/infra/remote.py index 09fa98befbdb..14aad26f109e 100644 --- a/tests/infra/remote.py +++ b/tests/infra/remote.py @@ -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, )