From 6f4ba317145e34a15e0e6e8080b512fa5d40f3f2 Mon Sep 17 00:00:00 2001 From: Dmitry Dygalo Date: Thu, 7 Dec 2023 00:25:30 +0100 Subject: [PATCH] chore: Support Python 3.12 --- .github/workflows/build.yml | 3 +++ CONTRIBUTING.rst | 2 +- README.rst | 2 +- docs/changelog.rst | 1 + pyproject.toml | 3 ++- tox.ini | 4 ++-- 6 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index febd922..3bf1f90 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -71,6 +71,9 @@ jobs: - tox_job: py311 python: "3.11" os_version: "ubuntu-latest" + - tox_job: py312 + python: "3.12" + os_version: "ubuntu-latest" steps: - uses: actions/checkout@v4 diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index d35e923..57f874b 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -47,7 +47,7 @@ Submitting Pull Requests #. Fork the repository. #. Enable and install `pre-commit `_ to ensure style-guides and code checks are followed. #. Target the ``master`` branch. -#. Follow **PEP-8** for naming and `black `_ for formatting. +#. Follow **PEP-8** for naming and `ruff `_ for formatting. #. Tests are run using ``tox``:: tox -e py37 diff --git a/README.rst b/README.rst index f410265..cd65ba3 100644 --- a/README.rst +++ b/README.rst @@ -226,7 +226,7 @@ Python support Pytest-recording supports: -- CPython 3.7, 3.8, 3.9, 3.10 and 3.11 +- CPython 3.7, 3.8, 3.9, 3.10, 3.11, and 3.12 - PyPy 7 (3.6) License diff --git a/docs/changelog.rst b/docs/changelog.rst index 0d62d3e..db9e374 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -6,6 +6,7 @@ Changelog `Unreleased`_ ------------- +- Add support for Python 3.12. - Add trove classifier for license. `0.13.0`_ - 2023-08-01 diff --git a/pyproject.toml b/pyproject.toml index d39ba36..3af4a34 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,6 +28,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Operating System :: OS Independent", @@ -66,7 +67,7 @@ select = [ "D", # pydocstyle ] ignore = [ - "E501", # Line too long, handled by black + "E501", # Line too long, handled by ruff "B008", # Do not perform function calls in argument defaults "C901", # Too complex "D100", # Missing docstring in public module diff --git a/tox.ini b/tox.ini index 39cac89..28a314b 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{37,38,39,310,311,py3},no_pycurl,vcr_431,coverage-report +envlist = py{37,38,39,310,311,312,py3},no_pycurl,vcr_431,coverage-report [testenv] setenv = @@ -47,7 +47,7 @@ description = Report coverage over all measured test runs. basepython = python3.8 deps = coverage skip_install = true -depends = {py37,py38,py39,py310,py311,pypy3} +depends = {py37,py38,py39,py310,py311,py312,pypy3} commands = coverage combine coverage report