Skip to content

Commit 75d559b

Browse files
authored
Merge pull request #209 from openzim/py313
Add support for Python3.13
2 parents a5fb036 + f555981 commit 75d559b

File tree

4 files changed

+19
-13
lines changed

4 files changed

+19
-13
lines changed

.github/workflows/QA.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313

14-
- name: Set up Python ${{ matrix.python }}
14+
- name: Set up Python
1515
uses: actions/setup-python@v5
1616
with:
17+
# to update to 3.13 once it lands in GH image
1718
python-version: "3.12"
1819
architecture: x64
1920

.github/workflows/Tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [macos-13, windows-2022, ubuntu-22.04]
16-
python: ["3.9", "3.10", "3.11", "3.12"]
16+
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1717

1818
steps:
1919
- uses: actions/checkout@v4

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Support for Python 3.13 (#208)
13+
1014
### Changed
1115

1216
- `delocate` dependency only required on Windows platform

pyproject.toml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta"
1010
[project]
1111
name = "libzim"
1212
version = "3.6.0.dev0"
13-
requires-python = ">=3.9,<3.13"
13+
requires-python = ">=3.9,<3.14"
1414
description = "A python-facing API for creating and interacting with ZIM files"
1515
authors = [
1616
{name = "openZIM", email = "[email protected]"},
@@ -33,6 +33,7 @@ classifiers = [
3333
"Programming Language :: Python :: 3.10",
3434
"Programming Language :: Python :: 3.11",
3535
"Programming Language :: Python :: 3.12",
36+
"Programming Language :: Python :: 3.13",
3637
"Typing :: Stubs Only",
3738
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
3839
"Operating System :: MacOS",
@@ -48,33 +49,33 @@ scripts = [
4849
"invoke==2.2.0",
4950
]
5051
lint = [
51-
"black==24.8.0",
52-
"ruff==0.6.3",
52+
"black==24.10.0",
53+
"ruff==0.6.9",
5354
"libzim",
5455
"libzim[build]",
5556
]
5657
check = [
57-
"pyright==1.1.381",
58+
"pyright==1.1.384",
5859
"libzim",
5960
"libzim[build]",
6061
"libzim[test]",
6162
"types-setuptools",
6263
]
6364
test = [
64-
"pytest==8.3.2",
65-
"coverage==7.6.1",
65+
"pytest==8.3.3",
66+
"coverage==7.6.2",
6667
# for cython coverage plugin
6768
"libzim[build]",
6869
]
6970
build = [
70-
"setuptools == 74.1.1",
71+
"setuptools == 75.1.0",
7172
"wheel == 0.44.0",
7273
"cython == 3.0.11",
7374
"delocate == 0.11.0 ; platform_system=='Windows'",
7475
]
7576
dev = [
76-
"pre-commit==3.8.0",
77-
"ipython==8.27.0",
77+
"pre-commit==4.0.1",
78+
"ipython==8.28.0",
7879
"types-setuptools",
7980
"libzim[scripts]",
8081
"libzim[lint]",
@@ -155,7 +156,7 @@ features = ["scripts", "test"]
155156
PROFILE = "1"
156157

157158
[[tool.hatch.envs.test.matrix]]
158-
python = ["3.9", "3.10", "3.11", "3.12"]
159+
python = ["3.9", "3.10", "3.11", "3.12", "3.13"]
159160

160161
[tool.hatch.envs.test.scripts]
161162
run = "inv test --args '{args}'"
@@ -316,6 +317,6 @@ exclude_lines = [
316317
[tool.pyright]
317318
include = ["libzim", "tests", "tasks.py"]
318319
exclude = [".env/**", ".venv/**"]
319-
pythonVersion = "3.12"
320+
pythonVersion = "3.13"
320321
typeCheckingMode="basic"
321322
disableBytesTypePromotions = true

0 commit comments

Comments
 (0)