Skip to content
Closed
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
10 changes: 5 additions & 5 deletions .github/workflows/CI-wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
os: [macos-13, windows-2022, ubuntu-24.04]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Set up QEMU
if: runner.os == 'Linux'
Expand All @@ -31,9 +31,9 @@ jobs:
platforms: all

- name: Build wheels
uses: pypa/cibuildwheel@v2.22
uses: pypa/cibuildwheel@v3.2

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v5
with:
name: wheels-${{ matrix.os }}
path: ./wheelhouse/*.whl
Expand All @@ -42,12 +42,12 @@ jobs:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Build sdist
run: pipx run build --sdist

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v5
with:
name: sdist
path: dist/*.tar.gz
20 changes: 10 additions & 10 deletions .github/workflows/Publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
os: [ubuntu-24.04, macos-13, windows-2022]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Set up QEMU
if: runner.os == 'Linux'
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
security unlock-keychain -p mysecretpassword ${APPLE_SIGNING_KEYCHAIN_PATH}

- name: Build wheels
uses: pypa/cibuildwheel@v2.22
uses: pypa/cibuildwheel@v3.2

- name: Cleanup Apple Keychain
if: matrix.os == 'macos-13'
Expand All @@ -78,7 +78,7 @@ jobs:
security delete-keychain ${APPLE_SIGNING_KEYCHAIN_PATH}
rm -f ${APPLE_SIGNING_KEYCHAIN_PATH}

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v5
with:
name: wheels-${{ matrix.os }}
path: ./wheelhouse/*.whl
Expand All @@ -87,12 +87,12 @@ jobs:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Build sdist
run: pipx run build --sdist

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v5
with:
name: sdist
path: dist/*.tar.gz
Expand All @@ -103,24 +103,24 @@ jobs:
environment: release
steps:
# retrieve all artifacts
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v6
with:
name: sdist
path: dist
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v6
with:
name: wheels-ubuntu-24.04
path: dist
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v6
with:
name: wheels-macos-13
path: dist
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v6
with:
name: wheels-windows-2022
path: dist

- uses: pypa/gh-action-pypi-publish@v1.9.0
- uses: pypa/gh-action-pypi-publish@v1.13.0
with:
user: __token__
# password: ${{ secrets.PYPI_TEST_API_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/QA.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.13"
python-version: "3.14"
architecture: x64

- name: Install dependencies (and project)
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/Tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
strategy:
matrix:
os: [macos-13, windows-2022, ubuntu-24.04]
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}
architecture: x64
Expand All @@ -38,8 +38,8 @@ jobs:
run: inv coverage --args "-vvv"

- name: Upload coverage report to codecov
if: matrix.os == 'ubuntu-24.04' && matrix.python == '3.13'
uses: codecov/codecov-action@v4
if: matrix.os == 'ubuntu-24.04' && matrix.python == '3.14'
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: 2
build:
os: ubuntu-24.04
tools:
python: '3.13'
python: '3.14'

# custom commands to run mkdocs build within hatch, as suggested by maintainer in
# https://github.com/readthedocs/readthedocs.org/issues/10706
Expand Down
15 changes: 8 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ requires = [
"setuptools == 74.1.1",
"wheel == 0.44.0",
"cython == 3.0.11",
# https://github.com/pypa/cibuildwheel/blob/v2.22/cibuildwheel/resources/constraints.txt
"delocate == 0.12.0 ; platform_system=='Windows'",
# https://github.com/pypa/cibuildwheel/blob/v3.2/cibuildwheel/resources/constraints.txt
"delocate == 0.13.0 ; platform_system=='Windows'",
]
build-backend = "setuptools.build_meta"

[project]
name = "libzim"
version = "3.7.1-dev0"
requires-python = ">=3.9,<3.14"
requires-python = ">=3.9,<3.15"
description = "A python-facing API for creating and interacting with ZIM files"
authors = [
{name = "openZIM", email = "[email protected]"},
Expand All @@ -35,6 +35,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Typing :: Stubs Only",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: MacOS",
Expand Down Expand Up @@ -168,7 +169,7 @@ features = ["scripts", "test"]
PROFILE = "1"

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

[tool.hatch.envs.test.scripts]
run = "inv test --args '{args}'"
Expand Down Expand Up @@ -206,10 +207,10 @@ all = "inv checkall --args '{args}'"

[tool.black]
line-length = 88
target-version = ['py312']
target-version = ['py314']

[tool.ruff]
target-version = "py312"
target-version = "py314"
line-length = 88
src = ["src"]

Expand Down Expand Up @@ -336,6 +337,6 @@ exclude_lines = [
[tool.pyright]
include = ["libzim", "tests", "tasks.py"]
exclude = [".env/**", ".venv/**"]
pythonVersion = "3.13"
pythonVersion = "3.14"
typeCheckingMode="basic"
disableBytesTypePromotions = true
Loading