Skip to content

Commit

Permalink
Drop Python 3.7 and 3.8
Browse files Browse the repository at this point in the history
wsanchez committed Oct 2, 2024

Verified

This commit was signed with the committer’s verified signature.
tprrt Thomas Perrot
1 parent 5c4b580 commit 31973f6
Showing 5 changed files with 19 additions and 25 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ jobs:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"

- name: System Python Information
uses: twisted/python-info-action@v1
@@ -75,7 +75,7 @@ jobs:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"

- name: System Python Information
uses: twisted/python-info-action@v1
@@ -116,7 +116,7 @@ jobs:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"

- name: System Python Information
uses: twisted/python-info-action@v1
@@ -155,7 +155,7 @@ jobs:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"

- name: System Python Information
uses: twisted/python-info-action@v1
@@ -186,18 +186,18 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.7", "3.8", "3.9", "3.10", "pypy-3.7", "pypy-3.8", "pypy-3.9"]
python-version: ["3.9", "3.10", "3.11", "pypy-3.9"]
tox-prefix: ["test"]
optional: [false]
include:
# Test Python 3.11 with coverage
# Test Python 3.12 with coverage
- os: "ubuntu-latest"
python-version: "3.11"
python-version: "3.12"
optional: false
tox-prefix: "coverage"
# # Test Python 3.12 but allow it to fail
# # Test Python 3.13 but allow it to fail
# - os: "ubuntu-latest"
# python-version: "3.12.0-rc.1"
# python-version: "3.13.0-rc.1"
# optional: true
# tox-prefix: "test"

@@ -264,7 +264,7 @@ jobs:
- uses: "actions/setup-python@v4"
if: ${{ matrix.tox-prefix == 'coverage' }}
with:
python-version: "3.11"
python-version: "3.12"

- name: "Upload coverage to Codecov"
uses: "codecov/[email protected]"
3 changes: 1 addition & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -8,13 +8,12 @@ repos:
rev: "v3.8.0"
hooks:
- id: pyupgrade
args: ["--py37-plus"]
args: ["--py39-plus"]

- repo: https://github.com/psf/black
rev: "23.3.0"
hooks:
- id: black
args: ["--target-version", "py37"]

- repo: https://github.com/PyCQA/autoflake
rev: v2.2.0
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -7,4 +7,4 @@ build-backend = "setuptools.build_meta"
[tool.black]

line-length = 80
target-version = ["py37"]
target-version = ["py39"]
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -62,11 +62,10 @@
"Intended Audience :: Information Technology",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"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",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Libraries :: Python Modules",
]
@@ -114,7 +113,7 @@ def read_requirements(path: Path) -> List[str]:
]


python_requirements = ">=3.7"
python_requirements = ">=3.9"

setup_requirements: List[str] = []

14 changes: 5 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@

envlist =
lint, mypy
test-py{37,38,39,310,py37,py38,py39}
coverage-py{311}
test-py{39,310,311,py39}
coverage-py{312}
coverage_report
docs
packaging
@@ -13,7 +13,7 @@ skip_missing_interpreters = {tty:True:False}

[default]

basepython = python3.11
basepython = python3.12

deps =
{test,coverage}: -r requirements/requirements-tests.txt
@@ -37,15 +37,11 @@ description = run tests
basepython =
py: python

py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12

pypy37: pypy3.7
pypy38: pypy3.8
pypy39: pypy3.9

deps = {[default]deps}
@@ -131,7 +127,7 @@ commands =

description = generate coverage report

depends = coverage-py{37,38,39,310,311,py37,py38,py39}
depends = coverage-py{39,310,311,312,py39}

basepython = {[default]basepython}

@@ -196,7 +192,7 @@ commands =

description = check for potential packaging problems

depends = {test,coverage}-py{37,38,39,310,311,py37,py38,py39}
depends = {test,coverage}-py{39,310,311,312,py39}

basepython = {[default]basepython}

0 comments on commit 31973f6

Please sign in to comment.