From 6c11b9382a424712b55158be666777809b84040c Mon Sep 17 00:00:00 2001 From: Marcus Read Date: Tue, 14 Jan 2025 12:44:39 +0000 Subject: [PATCH] Bump max Python version to 3.13 Also update dev dependencies. --- .github/workflows/build-test.yml | 2 +- .pre-commit-config.yaml | 6 ++-- pyproject.toml | 4 ++- requirements_dev.txt | 59 ++++++++++++++++---------------- requirements_tests.txt | 22 ++++++------ 5 files changed, 47 insertions(+), 46 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index ea1ee58..e1b0765 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -25,7 +25,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.9", "3.11"] + python-version: ["3.9", "3.13"] steps: - uses: actions/checkout@v4 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d4334e2..33d0c2b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,16 +4,16 @@ repos: hooks: - id: check-yaml - repo: https://github.com/psf/black - rev: 24.2.0 + rev: 24.10.0 hooks: - id: black # It is recommended to specify the latest version of Python # supported by your project here, or alternatively use # pre-commit's default_language_version, see # https://pre-commit.com/#top_level-default_language_version - language_version: python3.11 + language_version: python3.13 - repo: https://github.com/PyCQA/flake8 - rev: 7.0.0 + rev: 7.1.1 hooks: - id: flake8 additional_dependencies: [flake8-docstrings] \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index cce9e9c..a7f9015 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,6 +34,8 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities", @@ -70,4 +72,4 @@ write_to = "src/valimp/_version.py" [tool.black] line-length = 88 -target-version = ['py39', 'py310', 'py311'] +target-version = ['py39', 'py310', 'py311', 'py312', 'py313'] diff --git a/requirements_dev.txt b/requirements_dev.txt index 3fd0219..593e131 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -4,15 +4,15 @@ # # pip-compile --extra=dev --output-file=requirements_dev.txt pyproject.toml # -astroid==3.0.3 +astroid==3.3.8 # via pylint -black==24.2.0 +black==24.10.0 # via valimp (pyproject.toml) -build==1.0.3 +build==1.2.2.post1 # via pip-tools cfgv==3.4.0 # via pre-commit -click==8.1.7 +click==8.1.8 # via # black # pip-tools @@ -22,23 +22,23 @@ colorama==0.4.6 # click # pylint # pytest -dill==0.3.8 +dill==0.3.9 # via pylint -distlib==0.3.8 +distlib==0.3.9 # via virtualenv -exceptiongroup==1.2.0 +exceptiongroup==1.2.2 # via pytest -filelock==3.13.1 +filelock==3.16.1 # via virtualenv -flake8==7.0.0 +flake8==7.1.1 # via # flake8-docstrings # valimp (pyproject.toml) flake8-docstrings==1.7.0 # via valimp (pyproject.toml) -identify==2.5.34 +identify==2.6.5 # via pre-commit -importlib-metadata==7.0.1 +importlib-metadata==8.5.0 # via build iniconfig==2.0.0 # via pytest @@ -48,72 +48,71 @@ mccabe==0.7.0 # via # flake8 # pylint -mypy==1.8.0 +mypy==1.14.1 # via valimp (pyproject.toml) mypy-extensions==1.0.0 # via # black # mypy -nodeenv==1.8.0 +nodeenv==1.9.1 # via pre-commit -packaging==23.2 +packaging==24.2 # via # black # build # pytest pathspec==0.12.1 # via black -pip-tools==7.4.0 +pip-tools==7.4.1 # via valimp (pyproject.toml) -platformdirs==4.2.0 +platformdirs==4.3.6 # via # black # pylint # virtualenv -pluggy==1.4.0 +pluggy==1.5.0 # via pytest -pre-commit==3.6.1 +pre-commit==4.0.1 # via valimp (pyproject.toml) -pycodestyle==2.11.1 +pycodestyle==2.12.1 # via flake8 pydocstyle==6.3.0 # via flake8-docstrings pyflakes==3.2.0 # via flake8 -pylint==3.0.3 +pylint==3.3.3 # via valimp (pyproject.toml) -pyproject-hooks==1.0.0 +pyproject-hooks==1.2.0 # via # build # pip-tools -pytest==8.0.1 +pytest==8.3.4 # via valimp (pyproject.toml) -pyyaml==6.0.1 +pyyaml==6.0.2 # via pre-commit snowballstemmer==2.2.0 # via pydocstyle -tomli==2.0.1 +tomli==2.2.1 # via # black # build # mypy # pip-tools # pylint - # pyproject-hooks # pytest -tomlkit==0.12.3 +tomlkit==0.13.2 # via pylint -typing-extensions==4.9.0 +typing-extensions==4.12.2 # via # astroid # black # mypy # pylint -virtualenv==20.25.0 +virtualenv==20.28.1 # via pre-commit -wheel==0.42.0 +wheel==0.45.1 # via pip-tools -zipp==3.17.0 +zipp==3.21.0 # via importlib-metadata # The following packages are considered to be unsafe in a requirements file: diff --git a/requirements_tests.txt b/requirements_tests.txt index 514a3ee..f11941e 100644 --- a/requirements_tests.txt +++ b/requirements_tests.txt @@ -4,17 +4,17 @@ # # pip-compile --extra=tests --output-file=requirements_tests.txt pyproject.toml # -black==24.2.0 +black==24.10.0 # via valimp (pyproject.toml) -click==8.1.7 +click==8.1.8 # via black colorama==0.4.6 # via # click # pytest -exceptiongroup==1.2.0 +exceptiongroup==1.2.2 # via pytest -flake8==7.0.0 +flake8==7.1.1 # via # flake8-docstrings # valimp (pyproject.toml) @@ -26,29 +26,29 @@ mccabe==0.7.0 # via flake8 mypy-extensions==1.0.0 # via black -packaging==23.2 +packaging==24.2 # via # black # pytest pathspec==0.12.1 # via black -platformdirs==4.2.0 +platformdirs==4.3.6 # via black -pluggy==1.4.0 +pluggy==1.5.0 # via pytest -pycodestyle==2.11.1 +pycodestyle==2.12.1 # via flake8 pydocstyle==6.3.0 # via flake8-docstrings pyflakes==3.2.0 # via flake8 -pytest==8.0.1 +pytest==8.3.4 # via valimp (pyproject.toml) snowballstemmer==2.2.0 # via pydocstyle -tomli==2.0.1 +tomli==2.2.1 # via # black # pytest -typing-extensions==4.9.0 +typing-extensions==4.12.2 # via black