From 9d790c753737eb1c4898312a87c24c0d7c0d3025 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 4 Jul 2024 12:24:35 -0300 Subject: [PATCH] Drop Python 3.7 and add Python 3.12 --- .github/workflows/publish.yml | 4 ++-- .github/workflows/test.yml | 6 +++--- CHANGELOG.md | 6 ++++++ setup.cfg | 3 ++- tox.ini | 5 ++--- 5 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9131526..7344615 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,9 +12,9 @@ jobs: runs-on: ubuntu-latest needs: [test] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: "3.10" - name: Get pip cache dir diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 284d50f..3eee7d7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,13 +13,13 @@ jobs: fail-fast: false matrix: python-version: - ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy-3.7", "pypy-3.8"] + ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.7", "pypy-3.8"] os: [ubuntu-latest, windows-latest, macos-latest] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f97c50..eb1c24e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Confirmed Python 3.12 support. ([#XX]) - Added `CHANGELOG.md` file. ([#40]) - Confirmed Python 3.11 support. ([#39]) - Added test summary to the end of the test run. ([#31]) @@ -28,6 +29,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added support for capturing terminal output using Rich's `Console` class, with command line option `--rich-capture`. ([#65]) - Added support for other plugins to add to test header, through invocation of `pytest_report_header` hook. ([#66]) +### Removed + +- Dropped Python 3.7 support. ([#XX]) + + ## [0.1.1] - 2022-03-03 ## [0.1.0] - 2022-03-02 diff --git a/setup.cfg b/setup.cfg index 1922823..b84d26c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -15,11 +15,11 @@ classifiers = Topic :: Software Development :: Testing Programming Language :: Python Programming Language :: Python :: 3 - Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 Programming Language :: Python :: 3 :: Only Programming Language :: Python :: Implementation :: CPython Programming Language :: Python :: Implementation :: PyPy @@ -44,6 +44,7 @@ dev = flake8 freezegun mypy + pre-commit reorder-python-imports tox types-attrs diff --git a/tox.ini b/tox.ini index 8ad8be1..78826bf 100644 --- a/tox.ini +++ b/tox.ini @@ -1,18 +1,17 @@ # For more information about tox, see https://tox.readthedocs.io/en/latest/ [tox] envlist = - py{37,38,39,310,311,py37,py38} + py{37,38,39,310,311,,312,py38} flake8 isolated_build = true [gh-actions] python = - 3.7: py37 3.8: py38 3.9: py39 3.10: py310 3.11: py311 - pypy-3.7: pypy37 + 3.12: py312 pypy-3.8: pypy38 [testenv]