diff --git a/package_control/distinfo.py b/package_control/distinfo.py index 1cae2dbe..8738aef5 100644 --- a/package_control/distinfo.py +++ b/package_control/distinfo.py @@ -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" @@ -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] diff --git a/package_control/library.py b/package_control/library.py index 8cb8b022..041ae74d 100644 --- a/package_control/library.py +++ b/package_control/library.py @@ -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""" @@ -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 @@ -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 diff --git a/package_control/sys_path.py b/package_control/sys_path.py index 6b541bc3..434ace60 100644 --- a/package_control/sys_path.py +++ b/package_control/sys_path.py @@ -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) diff --git a/plugin.py b/plugin.py index fb54beef..a40fcdc8 100644 --- a/plugin.py +++ b/plugin.py @@ -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 diff --git a/sublime-package.json b/sublime-package.json index 56a9a8fe..cc7dbc7f 100644 --- a/sublime-package.json +++ b/sublime-package.json @@ -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}" } ] }, @@ -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}" } ] }, @@ -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}" } ] }, @@ -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}" } ] } @@ -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",