diff --git a/.github/workflows/Publish.yaml b/.github/workflows/Publish.yaml index 34f42afd..b1edef43 100644 --- a/.github/workflows/Publish.yaml +++ b/.github/workflows/Publish.yaml @@ -120,7 +120,7 @@ jobs: name: wheels-windows-2025 path: dist - - uses: pypa/gh-action-pypi-publish@v1.14.2 + - uses: pypa/gh-action-pypi-publish@v1.14.3 with: user: __token__ # password: ${{ secrets.PYPI_TEST_API_TOKEN }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a09328e4..58b691ce 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,11 +7,11 @@ repos: - id: trailing-whitespace - id: end-of-file-fixer - repo: https://github.com/psf/black - rev: "26.10.0" + rev: "26.10.1" hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.16.10 + rev: v0.17.2 hooks: - id: ruff - repo: https://github.com/RobertCraigie/pyright-python diff --git a/libzim/writer.pyi b/libzim/writer.pyi index c51c9d29..4bff0f2d 100644 --- a/libzim/writer.pyi +++ b/libzim/writer.pyi @@ -1,6 +1,5 @@ from __future__ import annotations -import datetime import enum import pathlib import types @@ -70,7 +69,7 @@ class Creator: def add_metadata( self, name: str, - content: str | bytes | datetime.date | datetime.datetime, + content: str | bytes, mimetype: str = "text/plain;charset=UTF-8", ) -> None: ... def add_redirection( diff --git a/pyproject.toml b/pyproject.toml index 49de6f57..594af0f5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] requires = [ - "setuptools == 84.0.0", + "setuptools == 84.2.1", "wheel == 0.48.0", "cython == 3.3.0", # https://github.com/pypa/cibuildwheel/blob/v2.22/cibuildwheel/resources/constraints.txt @@ -49,8 +49,8 @@ scripts = [ "invoke==3.0.3", ] lint = [ - "black==26.10.0", - "ruff==0.16.10", + "black==26.10.1", + "ruff==0.17.2", "libzim", "libzim[build]", ] @@ -63,28 +63,28 @@ check = [ ] test = [ "pytest==9.1.1", - "coverage==7.16.2", + "coverage==7.17.0", # for cython coverage plugin "libzim[build]", ] build = [ - "setuptools == 84.0.0", + "setuptools == 84.2.1", "wheel == 0.48.0", "cython == 3.3.0", "delocate == 0.13.0 ; platform_system=='Windows'", ] docs = [ "mkdocs==1.6.1", - "mkdocstrings-python==2.0.9", - "mkdocs-material==9.7.7", - "pymdown-extensions==12.1", + "mkdocstrings-python==2.0.10", + "mkdocs-material==9.8.0", + "pymdown-extensions==12.3", "mkdocs-gen-files==0.6.1", "mkdocs-literate-nav==0.6.3", "mkdocs-include-markdown-plugin==7.3.0", - "griffe==2.3.0", + "griffe==2.4.1", ] dev = [ - "pre-commit==4.6.2", + "pre-commit==4.7.0", "ipython==9.17.1", "types-setuptools", "libzim[scripts]",