Skip to content

Commit a3859c1

Browse files
committed
Minor tweak to packaging patch.
1 parent ec137f3 commit a3859c1

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/pip/_vendor/packaging/tags.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ def ios_platforms(
523523

524524
# Consider the actual X.Y version that was requested.
525525
yield ios_platform_template.format(
526-
major=version[0], minor=version[1], multiarch=multiarch
527-
)
526+
major=version[0], minor=version[1], multiarch=multiarch
527+
)
528528

529529
# Consider every minor version from X.0 to the minor version prior to the
530530
# version requested by the platform.

tools/vendoring/patches/packaging.patch

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@ index 6667d2990..cb11c60b8 100644
44
+++ b/src/pip/_vendor/packaging/tags.py
55
@@ -25,7 +25,7 @@ from . import _manylinux, _musllinux
66
logger = logging.getLogger(__name__)
7-
7+
88
PythonVersion = Sequence[int]
99
-MacVersion = Tuple[int, int]
1010
+AppleVersion = Tuple[int, int]
11-
11+
1212
INTERPRETER_SHORT_NAMES: dict[str, str] = {
1313
"python": "py", # Generic.
1414
@@ -363,7 +363,7 @@ def _mac_arch(arch: str, is_32bit: bool = _32_BIT_INTERPRETER) -> str:
1515
return "i386"
16-
17-
16+
17+
1818
-def _mac_binary_formats(version: MacVersion, cpu_arch: str) -> list[str]:
1919
+def _mac_binary_formats(version: AppleVersion, cpu_arch: str) -> list[str]:
2020
formats = [cpu_arch]
2121
if cpu_arch == "x86_64":
2222
if version < (10, 4):
2323
@@ -396,7 +396,7 @@ def _mac_binary_formats(version: MacVersion, cpu_arch: str) -> list[str]:
24-
25-
24+
25+
2626
def mac_platforms(
2727
- version: MacVersion | None = None, arch: str | None = None
2828
+ version: AppleVersion | None = None, arch: str | None = None
@@ -49,8 +49,8 @@ index 6667d2990..cb11c60b8 100644
4949
if arch is None:
5050
@@ -483,6 +483,63 @@ def mac_platforms(
5151
)
52-
53-
52+
53+
5454
+def ios_platforms(
5555
+ version: AppleVersion | None = None, multiarch: str | None = None
5656
+) -> Iterator[str]:
@@ -91,8 +91,8 @@ index 6667d2990..cb11c60b8 100644
9191
+
9292
+ # Consider the actual X.Y version that was requested.
9393
+ yield ios_platform_template.format(
94-
+ major=version[0], minor=version[1], multiarch=multiarch
95-
+ )
94+
+ major=version[0], minor=version[1], multiarch=multiarch
95+
+ )
9696
+
9797
+ # Consider every minor version from X.0 to the minor version prior to the
9898
+ # version requested by the platform.

0 commit comments

Comments
 (0)