Remove Python 3.7 (EOL since EOL since 2023-06-27) from CI (#1440)

* Remove Python 3.7 (EOL since EOL since 2023-06-27) from CI

* Remove unused context

* Use pyupgrade --py38-plus in pre-commit
This commit is contained in:
Kien Dang 2023-08-04 16:15:23 +08:00 committed by GitHub
parent 5d7a04fce9
commit 5eb5fe294a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 7 deletions

View File

@ -11,8 +11,6 @@ jobs:
django: ["3.2", "4.1", "4.2"] django: ["3.2", "4.1", "4.2"]
python-version: ["3.8", "3.9", "3.10"] python-version: ["3.8", "3.9", "3.10"]
include: include:
- django: "3.2"
python-version: "3.7"
- django: "4.1" - django: "4.1"
python-version: "3.11" python-version: "3.11"
- django: "4.2" - django: "4.2"
@ -31,4 +29,3 @@ jobs:
run: tox run: tox
env: env:
DJANGO: ${{ matrix.django }} DJANGO: ${{ matrix.django }}
TOXENV: ${{ matrix.toxenv }}

View File

@ -19,7 +19,7 @@ repos:
rev: v3.3.2 rev: v3.3.2
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: [--py37-plus] args: [--py38-plus]
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 23.3.0 rev: 23.3.0
hooks: hooks:

View File

@ -48,7 +48,6 @@ setup(
"Intended Audience :: Developers", "Intended Audience :: Developers",
"Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries",
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.10",

View File

@ -1,13 +1,12 @@
[tox] [tox]
envlist = envlist =
py{37,38,39,310}-django32, py{38,39,310}-django32,
py{38,39,310}-django{41,42,main}, py{38,39,310}-django{41,42,main},
py311-django{41,42,main} py311-django{41,42,main}
pre-commit pre-commit
[gh-actions] [gh-actions]
python = python =
3.7: py37
3.8: py38 3.8: py38
3.9: py39 3.9: py39
3.10: py310 3.10: py310