diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2025-01-14 19:27:54 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2025-01-14 19:38:51 +0300 |
commit | 3ce5434bd27b634a94690e36f8e9c1ba17795fee (patch) | |
tree | 9539acd7a644b53eb5494720c4a115f3870ae2f3 /contrib | |
parent | 6be1dcf71e42ab7141984480de1c8f255329a923 (diff) | |
download | ydb-3ce5434bd27b634a94690e36f8e9c1ba17795fee.tar.gz |
Intermediate changes
commit_hash:e030e59d2760045556568c7f43f9b01e45b538a4
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/python/packaging/py3/packaging/utils.py | 2 | ||||
-rw-r--r-- | contrib/python/packaging/py3/patches/01-support-setuptools-71.patch | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/contrib/python/packaging/py3/packaging/utils.py b/contrib/python/packaging/py3/packaging/utils.py index bab11b80c6..80993eff13 100644 --- a/contrib/python/packaging/py3/packaging/utils.py +++ b/contrib/python/packaging/py3/packaging/utils.py @@ -35,7 +35,7 @@ def canonicalize_name(name: str) -> NormalizedName: return cast(NormalizedName, value) -def canonicalize_version(version: Union[Version, str]) -> str: +def canonicalize_version(version: Union[Version, str], strip_trailing_zero: bool = False) -> str: """ This is very similar to Version.__str__, but has one subtle difference with the way it handles the release segment. diff --git a/contrib/python/packaging/py3/patches/01-support-setuptools-71.patch b/contrib/python/packaging/py3/patches/01-support-setuptools-71.patch new file mode 100644 index 0000000000..b3855dadb8 --- /dev/null +++ b/contrib/python/packaging/py3/patches/01-support-setuptools-71.patch @@ -0,0 +1,11 @@ +--- contrib/python/packaging/py3/packaging/utils.py (index) ++++ contrib/python/packaging/py3/packaging/utils.py (working tree) +@@ -35,7 +35,7 @@ def canonicalize_name(name: str) -> NormalizedName: + return cast(NormalizedName, value) + + +-def canonicalize_version(version: Union[Version, str]) -> str: ++def canonicalize_version(version: Union[Version, str], strip_trailing_zero: bool = False) -> str: + """ + This is very similar to Version.__str__, but has one subtle difference + with the way it handles the release segment. |