drop py38, add py13, add 2024 to license

This commit is contained in:
pacrob
2024-11-21 14:50:53 -07:00
committed by Paul Robinson
parent 224044874e
commit 6a927ac1e7
6 changed files with 43 additions and 29 deletions

View File

@ -119,16 +119,10 @@ jobs:
docs:
<<: *docs
docker:
- image: cimg/python:3.9
- image: cimg/python:3.10
environment:
TOXENV: docs
py38-core:
<<: *common
docker:
- image: cimg/python:3.8
environment:
TOXENV: py38-core
py39-core:
<<: *common
docker:
@ -153,13 +147,13 @@ jobs:
- image: cimg/python:3.12
environment:
TOXENV: py312-core
py38-lint:
py313-core:
<<: *common
docker:
- image: cimg/python:3.8
- image: cimg/python:3.13
environment:
TOXENV: py38-lint
TOXENV: py313-core
py39-lint:
<<: *common
docker:
@ -184,13 +178,13 @@ jobs:
- image: cimg/python:3.12
environment:
TOXENV: py312-lint
py38-wheel:
py313-lint:
<<: *common
docker:
- image: cimg/python:3.8
- image: cimg/python:3.13
environment:
TOXENV: py38-wheel
TOXENV: py313-lint
py39-wheel:
<<: *common
docker:
@ -215,6 +209,12 @@ jobs:
- image: cimg/python:3.12
environment:
TOXENV: py312-wheel
py313-wheel:
<<: *common
docker:
- image: cimg/python:3.13
environment:
TOXENV: py313-wheel
py311-windows-wheel:
<<: *windows-wheel-setup
@ -242,25 +242,39 @@ jobs:
- <<: *run-tox-step
- <<: *save-cache-step
py313-windows-wheel:
<<: *windows-wheel-setup
steps:
- checkout
- <<: *restore-cache-step
- <<: *install-pyenv-step
- run:
name: set minor version
command: echo "export MINOR_VERSION='3.13'" >> $BASH_ENV
- <<: *install-latest-python-step
- <<: *run-tox-step
- <<: *save-cache-step
define: &all_jobs
- docs
- py38-core
- py39-core
- py310-core
- py311-core
- py312-core
- py38-lint
- py313-core
- py39-lint
- py310-lint
- py311-lint
- py312-lint
- py38-wheel
- py313-lint
- py39-wheel
- py310-wheel
- py311-wheel
- py312-wheel
- py313-wheel
- py311-windows-wheel
- py312-windows-wheel
- py313-windows-wheel
workflows:
version: 2

View File

@ -11,7 +11,7 @@ repos:
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py38-plus]
args: [--py39-plus]
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:

View File

@ -3,7 +3,7 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.9"
python: "3.10"
sphinx:
configuration: docs/conf.py

View File

@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2019-2023 The Ethereum Foundation
Copyright (c) 2019-2024 The Ethereum Foundation
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -49,7 +49,7 @@ setup(
install_requires=[
"eth-utils>=2",
],
python_requires=">=3.8, <4",
python_requires=">=3.9, <4",
extras_require=extras_require,
py_modules=["<MODULE_NAME>"],
license="MIT",
@ -63,10 +63,10 @@ setup(
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"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.13",
],
)

12
tox.ini
View File

@ -1,8 +1,8 @@
[tox]
envlist=
py{38,39,310,311,312}-core
py{38,39,310,311,312}-lint
py{38,39,310,311,312}-wheel
py{39,310,311,312,313}-core
py{39,310,311,312,313}-lint
py{39,310,311,312,313}-wheel
windows-wheel
docs
@ -23,23 +23,23 @@ commands=
basepython=
docs: python
windows-wheel: python
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
py313: python3.13
extras=
test
docs
allowlist_externals=make,pre-commit
[testenv:py{38,39,310,311,312}-lint]
[testenv:py{39,310,311,313}-lint]
deps=pre-commit
commands=
pre-commit install
pre-commit run --all-files --show-diff-on-failure
[testenv:py{38,39,310,311,312}-wheel]
[testenv:py{39,310,311,312,313}-wheel]
deps=
wheel
build[virtualenv]