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"]
python-version: ["3.8", "3.9", "3.10"]
include:
- django: "3.2"
python-version: "3.7"
- django: "4.1"
python-version: "3.11"
- django: "4.2"
@ -31,4 +29,3 @@ jobs:
run: tox
env:
DJANGO: ${{ matrix.django }}
TOXENV: ${{ matrix.toxenv }}

View File

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

View File

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

View File

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