Skip to content

Commit 020130d

Browse files
committed
Upgrade to Python 3.14 for the build system
1 parent 1531bea commit 020130d

File tree

3 files changed

+5
-90
lines changed

3 files changed

+5
-90
lines changed

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
name = "godot-python-dev"
77
version = "0.1.0" # Dummy version, actual one is defined in `meson.build`
88
readme = "README.md"
9-
requires-python = ">=3.13"
9+
requires-python = ">=3.14"
1010
dependencies = [
1111
"meson~=1.5",
1212
# Colorama is needed only on Windows by autopxd2->click->pip-tools
@@ -15,7 +15,6 @@ dependencies = [
1515
"ninja~=1.11",
1616
"cython~=3.1",
1717
"jinja2~=3.1",
18-
"zstandard~=0.23",
1918
"autopxd2~=2.5",
2019
# Setuptools is used in `tests/3-init-with-cython-hook/` to build a native module from Cython
2120
"setuptools>=80.9.0",
@@ -28,7 +27,7 @@ dev = [
2827

2928
[tool.ruff]
3029
line-length = 100
31-
target-version = "py313"
30+
target-version = "py314"
3231

3332
[tool.uv.workspace]
3433
members = [

scripts/python_distrib.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
import shutil
88
import tarfile
99
import json
10-
import gzip
11-
import zstandard
10+
from compression import zstd, gzip
1211

1312

1413
PREBUILDS_BASE_URL = "https://github.com/astral-sh/python-build-standalone/releases/download"
@@ -69,7 +68,7 @@ def _tar_extract(reader):
6968
else:
7069
assert archive_path.suffix == ".zst"
7170
with open(archive_path, mode="rb") as fh:
72-
dctx = zstandard.ZstdDecompressor()
71+
dctx = zstd.ZstdDecompressor()
7372
with dctx.stream_reader(fh) as reader:
7473
_tar_extract(reader)
7574

0 commit comments

Comments
 (0)