From 9fe95a38818a3221fd540e4795c9cbece5136ff4 Mon Sep 17 00:00:00 2001 From: Andrey Rakhmatullin Date: Wed, 16 Oct 2024 13:26:34 +0500 Subject: [PATCH] Add Python 3.13, update tool versions (#72) --- .github/workflows/publish.yml | 4 ++-- .github/workflows/test.yml | 7 ++++--- pyproject.toml | 1 - setup.py | 1 + tox.ini | 11 ++++++----- zyte_spider_templates/documentation.py | 2 +- 6 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e13e8f8..2474871 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,9 +15,9 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.13' - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fbe7a90..1de8b7d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,11 +23,12 @@ jobs: - python-version: '3.10' - python-version: '3.11' - python-version: '3.12' + - python-version: '3.13' steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -48,13 +49,13 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.12"] + python-version: ["3.13"] tox-job: ["mypy", "linters", "twine", "docs"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/pyproject.toml b/pyproject.toml index dc8bdff..cc7cb46 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,6 @@ multi_line_output = 3 [tool.mypy] check_untyped_defs = true ignore_missing_imports = true -no_warn_no_return = true [tool.black] target-version = ["py38", "py39", "py310", "py311", "py312"] diff --git a/setup.py b/setup.py index 45aecc8..76788ff 100644 --- a/setup.py +++ b/setup.py @@ -30,5 +30,6 @@ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", ], ) diff --git a/tox.ini b/tox.ini index 5d5ca26..3fa9108 100644 --- a/tox.ini +++ b/tox.ini @@ -30,10 +30,11 @@ deps = [testenv:mypy] deps = - mypy==1.6.1 - types-requests - types-setuptools - + mypy==1.12.0 + enum-tools==0.12.0 + freezegun==1.5.1 + pytest==8.3.3 + types-requests==2.32.0.20240914 commands = mypy zyte_spider_templates tests [testenv:linters] @@ -43,7 +44,7 @@ commands = pre-commit run --all-files --show-diff-on-failure [testenv:twine] deps = twine==5.1.1 - build==1.2.1 + build==1.2.2 commands = python setup.py sdist twine check dist/* diff --git a/zyte_spider_templates/documentation.py b/zyte_spider_templates/documentation.py index a134b4d..b21b639 100644 --- a/zyte_spider_templates/documentation.py +++ b/zyte_spider_templates/documentation.py @@ -2,5 +2,5 @@ from enum_tools.documentation import document_enum except ImportError: - def document_enum(func): + def document_enum(func): # type: ignore[misc] return func