Skip to content

Commit b99def8

Browse files
committed
Tweak dependency conversion and tests
1. unittests work against 3.8, thus accept it when converting dependencies, even if it is not supported by running ST. 2. raise macosx requirements for python 3.13 dependencies.
1 parent 33fc181 commit b99def8

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

package_control/distinfo.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def generate_wheel(python_version, plat_specific):
157157
specific to a platform and optionally architecture
158158
"""
159159

160-
if python_version is not None and python_version not in sys_path.python_versions():
160+
if python_version is not None and python_version not in ("3.3", "3.8", "3.13"):
161161
raise ValueError("Invalid python_version %s" % repr(python_version))
162162

163163
version_tag = "py3"
@@ -171,8 +171,10 @@ def generate_wheel(python_version, plat_specific):
171171
arch = os.uname()[4]
172172
if python_version == "3.3":
173173
arch_tag = "macosx_10_7_%s" % arch
174-
else:
174+
elif python_version == "3.8":
175175
arch_tag = "macosx_10_9_%s" % arch
176+
elif python_version == "3.13":
177+
arch_tag = "macosx_10_13_%s" % arch
176178
elif sys.platform == "linux":
177179
arch_tag = "linux_%s" % os.uname()[4]
178180
else:

package_control/tests/test_distinfo.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ def _tag(version):
1616
tag = "macosx_10_7_%s" % os.uname()[4]
1717
elif version == "3.8":
1818
tag = "macosx_10_9_%s" % os.uname()[4]
19+
elif version == "3.13":
20+
tag = "macosx_10_13_%s" % os.uname()[4]
1921
else:
2022
raise ValueError("Invalid version")
2123
elif sys.platform == "linux":

0 commit comments

Comments
 (0)