Skip to content

Commit

Permalink
chore: Support Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Stranger6667 committed Dec 6, 2023
1 parent f7cb61d commit 6f4ba31
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Submitting Pull Requests
#. Fork the repository.
#. Enable and install `pre-commit <https://pre-commit.com>`_ to ensure style-guides and code checks are followed.
#. Target the ``master`` branch.
#. Follow **PEP-8** for naming and `black <https://github.com/psf/black>`_ for formatting.
#. Follow **PEP-8** for naming and `ruff <https://github.com/astral-sh/ruff>`_ for formatting.
#. Tests are run using ``tox``::

tox -e py37
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changelog
`Unreleased`_
-------------

- Add support for Python 3.12.
- Add trove classifier for license.

`0.13.0`_ - 2023-08-01
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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 =
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6f4ba31

Please sign in to comment.