Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package_control/distinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def generate_wheel(python_version, plat_specific):
specific to a platform and optionally architecture
"""

if python_version is not None and python_version not in ("3.3", "3.8", "3.13"):
if python_version is not None and python_version not in ("3.3", "3.8", "3.14"):
raise ValueError("Invalid python_version %s" % repr(python_version))

version_tag = "py3"
Expand All @@ -173,7 +173,7 @@ def generate_wheel(python_version, plat_specific):
arch_tag = "macosx_10_7_%s" % arch
elif python_version == "3.8":
arch_tag = "macosx_10_9_%s" % arch
elif python_version == "3.13":
elif python_version == "3.14":
arch_tag = "macosx_10_13_%s" % arch
elif sys.platform == "linux":
arch_tag = "linux_%s" % os.uname()[4]
Expand Down
12 changes: 6 additions & 6 deletions package_control/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
BUILTIN_LIBRARIES = {
"3.3": {},
"3.8": {"enum", "pathlib", "typing"},
"3.13": {"enum", "pathlib", "typing"},
"3.14": {"enum", "pathlib", "typing"},
}
"""3rd-party libraries, which are part of stdlib as of certain python version"""

Expand Down Expand Up @@ -248,7 +248,7 @@ def convert_dependency(dependency_path, python_version, name, version, descripti
- "st4_{PY}_{OS}_{ARCH}"

:param python_version:
A unicode string of "3.3" or "3.8"
A unicode string of "3.3", "3.8" or "3.14"

:param name:
A unicode string of the library name
Expand Down Expand Up @@ -278,11 +278,11 @@ def convert_dependency(dependency_path, python_version, name, version, descripti
# as they are expected to contain compiled libraries
install_rel_paths.append(("st4_arch", "st4_py{}_{}_{}".format(py, plat, arch)))
install_rel_paths.append(("st4_plat", "st4_py{}_{}".format(py, plat)))
# pure python releases releases for python 3.13+
if python_version == "3.13":
install_rel_paths.append(("st4_py", "st4_py313".format()))
# pure python releases for python 3.14+
if python_version == "3.14":
install_rel_paths.append(("st4_py", "st4_py314"))
# pure python releases for python 3.8+
install_rel_paths.append(("st4_py", "st4_py38".format()))
install_rel_paths.append(("st4_py", "st4_py38"))
install_rel_paths.append(("st4", "st4"))

# platform/arch specific st3 dependencies are most likely only compatible with python 3.3
Expand Down
2 changes: 1 addition & 1 deletion package_control/sys_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def lib_paths():
data = (
("3.3", "python33", not settings.get('disable_plugin_host_3.3', False)),
("3.8", "python38", True),
("3.13", "python3.13", True),
("3.14", "python314", True),
)
lib_paths.cache = {
py_ver: os.path.join(__data_path, "Lib", py_dir)
Expand Down
2 changes: 1 addition & 1 deletion plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sublime
import sys

# Ensure compatibility with python 3.3 to 3.13+
# Ensure compatibility with python 3.3 to 3.14+
if sys.version_info > (3, 8):
__name__ = __spec__.name
__package__ = __spec__.parent
Expand Down
10 changes: 5 additions & 5 deletions sublime-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@
"defaultSnippets": [
{
"label": "Release Artefact",
"bodyText": "{\n\t\"version\": \"${1:1}.${2:0}.${3:0}\",\n\t\"url\": \"$4\",\n\t\"sublime_text\": \"${5:*}\",\n\t\"platforms\": [\"${6:*}\"],\n\t\"python_versions\": [\"3.3\", \"3.8\", \"3.13\"]\n}"
"bodyText": "{\n\t\"version\": \"${1:1}.${2:0}.${3:0}\",\n\t\"url\": \"$4\",\n\t\"sublime_text\": \"${5:*}\",\n\t\"platforms\": [\"${6:*}\"],\n\t\"python_versions\": [\"3.3\", \"3.8\", \"3.14\"]\n}"
}
]
},
Expand All @@ -1299,7 +1299,7 @@
"defaultSnippets": [
{
"label": "release based release template with download asset",
"bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"asset\": \"${2:FileName-*.*.*-\\$\\{platform\\}.whl}\",\n\t\"platforms\": [\"${4:*}\"],\n\t\"python_versions\": [\"3.3\", \"3.8\", \"3.13\"]\n}"
"bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"asset\": \"${2:FileName-*.*.*-\\$\\{platform\\}.whl}\",\n\t\"platforms\": [\"${4:*}\"],\n\t\"python_versions\": [\"3.3\", \"3.8\", \"3.14\"]\n}"
}
]
},
Expand All @@ -1322,7 +1322,7 @@
"defaultSnippets": [
{
"label": "tag based release template",
"bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"tags\": ${2:true},\n\t\"platforms\": [\"${4:*}\"],\n\t\"python_versions\": [\"3.3\", \"3.8\", \"3.13\"]\n}"
"bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"tags\": ${2:true},\n\t\"platforms\": [\"${4:*}\"],\n\t\"python_versions\": [\"3.3\", \"3.8\", \"3.14\"]\n}"
}
]
},
Expand All @@ -1345,7 +1345,7 @@
"defaultSnippets": [
{
"label": "branch based release template",
"bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"branch\": ${2:true},\n\t\"platforms\": [\"${4:*}\"],\n\t\"python_versions\": [\"3.3\", \"3.8\", \"3.13\"]\n}"
"bodyText": "{\n\t\"base\": \"${1:https://github.com/author/repo}\",\n\t\"branch\": ${2:true},\n\t\"platforms\": [\"${4:*}\"],\n\t\"python_versions\": [\"3.3\", \"3.8\", \"3.14\"]\n}"
}
]
}
Expand Down Expand Up @@ -1786,7 +1786,7 @@
},
"python_versions": {
"type": "array",
"markdownDescription": "```json\n\"python_versions\": [\"3.3\", \"3.8\", \"3.13\"]\n```\n\nA list of python versions, supported by the package/library release. Must be one of `\"3.3\"` or `\"3.8\"`.",
"markdownDescription": "```json\n\"python_versions\": [\"3.3\", \"3.8\", \"3.14\"]\n```\n\nA list of python versions, supported by the package/library release. Must be one of `\"3.3\"` or `\"3.8\"`.",
"default": ["3.3"],
"items": {
"type": "string",
Expand Down