зеркало из https://github.com/microsoft/CCF.git
Import from packaging directly, add to requirements (#6374)
This commit is contained in:
Родитель
a80c081da0
Коммит
7e3b3b9538
|
@ -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,
|
||||
)
|
||||
|
|
|
@ -2,3 +2,5 @@ loguru >= 0.5, == 0.*
|
|||
cryptography == 42.*
|
||||
string-color >= 1.2.1, == 1.*
|
||||
pycose >= 1.0.1, == 1.*
|
||||
setuptools == 58.*
|
||||
packaging == 24.*
|
||||
|
|
|
@ -10,7 +10,7 @@ import urllib
|
|||
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
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ import http
|
|||
|
||||
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
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ from jinja2 import Environment, FileSystemLoader, select_autoescape
|
|||
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,
|
||||
)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче