33 lines
1,011 B
Diff
33 lines
1,011 B
Diff
From a6253448766965e34f1d0dd58cdf317790d25dd7 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
|
Date: Tue, 24 Nov 2020 12:06:14 +0100
|
|
Subject: [PATCH] Don't put an underscore in the version portion of Python 3.10
|
|
compatibility tags
|
|
|
|
PEP 641 is rejected.
|
|
|
|
See https://discuss.python.org/t/5513/42
|
|
See https://www.python.org/dev/peps/pep-0641/
|
|
|
|
Fixes https://github.com/pypa/packaging/issues/372
|
|
|
|
Co-authored-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
|
|
---
|
|
|
|
diff --git a/src/pip/_vendor/packaging/tags.py b/src/pip/_vendor/packaging/tags.py
|
|
index 9064910..5d901e9 100644
|
|
--- a/src/pip/_vendor/packaging/tags.py
|
|
+++ b/src/pip/_vendor/packaging/tags.py
|
|
@@ -722,11 +722,7 @@ def interpreter_version(**kwargs):
|
|
|
|
def _version_nodot(version):
|
|
# type: (PythonVersion) -> str
|
|
- if any(v >= 10 for v in version):
|
|
- sep = "_"
|
|
- else:
|
|
- sep = ""
|
|
- return sep.join(map(str, version))
|
|
+ return "".join(map(str, version))
|
|
|
|
|
|
def sys_tags(**kwargs):
|