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:
<<: *docs <<: *docs
docker: docker:
- image: cimg/python:3.9 - image: cimg/python:3.10
environment: environment:
TOXENV: docs TOXENV: docs
py38-core:
<<: *common
docker:
- image: cimg/python:3.8
environment:
TOXENV: py38-core
py39-core: py39-core:
<<: *common <<: *common
docker: docker:
@ -153,13 +147,13 @@ jobs:
- image: cimg/python:3.12 - image: cimg/python:3.12
environment: environment:
TOXENV: py312-core TOXENV: py312-core
py313-core:
py38-lint:
<<: *common <<: *common
docker: docker:
- image: cimg/python:3.8 - image: cimg/python:3.13
environment: environment:
TOXENV: py38-lint TOXENV: py313-core
py39-lint: py39-lint:
<<: *common <<: *common
docker: docker:
@ -184,13 +178,13 @@ jobs:
- image: cimg/python:3.12 - image: cimg/python:3.12
environment: environment:
TOXENV: py312-lint TOXENV: py312-lint
py313-lint:
py38-wheel:
<<: *common <<: *common
docker: docker:
- image: cimg/python:3.8 - image: cimg/python:3.13
environment: environment:
TOXENV: py38-wheel TOXENV: py313-lint
py39-wheel: py39-wheel:
<<: *common <<: *common
docker: docker:
@ -215,6 +209,12 @@ jobs:
- image: cimg/python:3.12 - image: cimg/python:3.12
environment: environment:
TOXENV: py312-wheel TOXENV: py312-wheel
py313-wheel:
<<: *common
docker:
- image: cimg/python:3.13
environment:
TOXENV: py313-wheel
py311-windows-wheel: py311-windows-wheel:
<<: *windows-wheel-setup <<: *windows-wheel-setup
@ -242,25 +242,39 @@ jobs:
- <<: *run-tox-step - <<: *run-tox-step
- <<: *save-cache-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 define: &all_jobs
- docs - docs
- py38-core
- py39-core - py39-core
- py310-core - py310-core
- py311-core - py311-core
- py312-core - py312-core
- py38-lint - py313-core
- py39-lint - py39-lint
- py310-lint - py310-lint
- py311-lint - py311-lint
- py312-lint - py312-lint
- py38-wheel - py313-lint
- py39-wheel - py39-wheel
- py310-wheel - py310-wheel
- py311-wheel - py311-wheel
- py312-wheel - py312-wheel
- py313-wheel
- py311-windows-wheel - py311-windows-wheel
- py312-windows-wheel - py312-windows-wheel
- py313-windows-wheel
workflows: workflows:
version: 2 version: 2

View File

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

View File

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

View File

@ -1,6 +1,6 @@
The MIT License (MIT) 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 Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

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

12
tox.ini
View File

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