Skip to content
Merged
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
3 changes: 2 additions & 1 deletion .github/workflows/QA.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ jobs:
steps:
- uses: actions/checkout@v4

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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [macos-13, windows-2022, ubuntu-22.04]
python: ["3.9", "3.10", "3.11", "3.12"]
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Support for Python 3.13 (#208)

### Changed

- `delocate` dependency only required on Windows platform
Expand Down
23 changes: 12 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "libzim"
version = "3.6.0.dev0"
requires-python = ">=3.9,<3.13"
requires-python = ">=3.9,<3.14"
description = "A python-facing API for creating and interacting with ZIM files"
authors = [
{name = "openZIM", email = "[email protected]"},
Expand All @@ -33,6 +33,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Stubs Only",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: MacOS",
Expand All @@ -48,33 +49,33 @@ scripts = [
"invoke==2.2.0",
]
lint = [
"black==24.8.0",
"ruff==0.6.3",
"black==24.10.0",
"ruff==0.6.9",
"libzim",
"libzim[build]",
]
check = [
"pyright==1.1.381",
"pyright==1.1.384",
"libzim",
"libzim[build]",
"libzim[test]",
"types-setuptools",
]
test = [
"pytest==8.3.2",
"coverage==7.6.1",
"pytest==8.3.3",
"coverage==7.6.2",
# for cython coverage plugin
"libzim[build]",
]
build = [
"setuptools == 74.1.1",
"setuptools == 75.1.0",
"wheel == 0.44.0",
"cython == 3.0.11",
"delocate == 0.11.0 ; platform_system=='Windows'",
]
dev = [
"pre-commit==3.8.0",
"ipython==8.27.0",
"pre-commit==4.0.1",
"ipython==8.28.0",
"types-setuptools",
"libzim[scripts]",
"libzim[lint]",
Expand Down Expand Up @@ -155,7 +156,7 @@ features = ["scripts", "test"]
PROFILE = "1"

[[tool.hatch.envs.test.matrix]]
python = ["3.9", "3.10", "3.11", "3.12"]
python = ["3.9", "3.10", "3.11", "3.12", "3.13"]

[tool.hatch.envs.test.scripts]
run = "inv test --args '{args}'"
Expand Down Expand Up @@ -316,6 +317,6 @@ exclude_lines = [
[tool.pyright]
include = ["libzim", "tests", "tasks.py"]
exclude = [".env/**", ".venv/**"]
pythonVersion = "3.12"
pythonVersion = "3.13"
typeCheckingMode="basic"
disableBytesTypePromotions = true