Skip to content

Commit

Permalink
Add python 3.11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
fselmo committed Sep 6, 2023
1 parent 3279597 commit 71175cf
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 44 deletions.
121 changes: 82 additions & 39 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,84 +73,84 @@ jobs:
environment:
TOXENV: docs

py310-native-blockchain-berlin:
py311-native-blockchain-berlin:
<<: *common
docker:
- image: cimg/python:3.10
environment:
TOXENV: py310-native-blockchain-berlin
py310-native-blockchain-byzantium:
TOXENV: py311-native-blockchain-berlin
py311-native-blockchain-byzantium:
<<: *common
docker:
- image: cimg/python:3.10
environment:
TOXENV: py310-native-blockchain-byzantium
py310-native-blockchain-constantinople:
TOXENV: py311-native-blockchain-byzantium
py311-native-blockchain-constantinople:
<<: *common
docker:
- image: cimg/python:3.10
environment:
TOXENV: py310-native-blockchain-constantinople
py310-native-blockchain-frontier:
TOXENV: py311-native-blockchain-constantinople
py311-native-blockchain-frontier:
<<: *common
docker:
- image: cimg/python:3.10
environment:
TOXENV: py310-native-blockchain-frontier
py310-native-blockchain-homestead:
TOXENV: py311-native-blockchain-frontier
py311-native-blockchain-homestead:
<<: *common
docker:
- image: cimg/python:3.10
environment:
TOXENV: py310-native-blockchain-homestead
py310-native-blockchain-istanbul:
TOXENV: py311-native-blockchain-homestead
py311-native-blockchain-istanbul:
<<: *common
docker:
- image: cimg/python:3.10
environment:
TOXENV: py310-native-blockchain-istanbul
py310-native-blockchain-london:
TOXENV: py311-native-blockchain-istanbul
py311-native-blockchain-london:
<<: *common
docker:
- image: cimg/python:3.10
environment:
TOXENV: py310-native-blockchain-london
py310-native-blockchain-merge:
TOXENV: py311-native-blockchain-london
py311-native-blockchain-merge:
<<: *common
docker:
- image: cimg/python:3.10
environment:
TOXENV: py310-native-blockchain-merge
py310-native-blockchain-petersburg:
TOXENV: py311-native-blockchain-merge
py311-native-blockchain-petersburg:
<<: *common
docker:
- image: cimg/python:3.10
environment:
TOXENV: py310-native-blockchain-petersburg
py310-native-blockchain-tangerine_whistle:
TOXENV: py311-native-blockchain-petersburg
py311-native-blockchain-tangerine_whistle:
<<: *common
docker:
- image: cimg/python:3.10
environment:
TOXENV: py310-native-blockchain-tangerine_whistle
py310-native-blockchain-spurious_dragon:
TOXENV: py311-native-blockchain-tangerine_whistle
py311-native-blockchain-spurious_dragon:
<<: *common
docker:
- image: cimg/python:3.10
environment:
TOXENV: py310-native-blockchain-spurious_dragon
py310-native-blockchain-transition:
TOXENV: py311-native-blockchain-spurious_dragon
py311-native-blockchain-transition:
<<: *common
docker:
- image: cimg/python:3.10
environment:
TOXENV: py310-native-blockchain-transition
py310-native-blockchain-shanghai:
TOXENV: py311-native-blockchain-transition
py311-native-blockchain-shanghai:
<<: *common
docker:
- image: cimg/python:3.10
environment:
TOXENV: py310-native-blockchain-shanghai
TOXENV: py311-native-blockchain-shanghai

py37-core:
<<: *common
Expand Down Expand Up @@ -294,44 +294,87 @@ jobs:
environment:
TOXENV: py310-lint

py311-core:
<<: *common
docker:
- image: cimg/python:3.11
environment:
TOXENV: py311-core
py311-database:
<<: *common
docker:
- image: cimg/python:3.11
environment:
TOXENV: py311-database
py311-difficulty:
<<: *common
docker:
- image: cimg/python:3.11
environment:
TOXENV: py311-difficulty
py311-transactions:
<<: *common
docker:
- image: cimg/python:3.11
environment:
TOXENV: py311-transactions
py311-vm:
<<: *common
docker:
- image: cimg/python:3.11
environment:
TOXENV: py311-vm
py311-lint:
<<: *common
docker:
- image: cimg/python:3.11
environment:
TOXENV: py311-lint

workflows:
version: 2
test:
jobs:
- docs
- py310-native-blockchain-shanghai
- py310-native-blockchain-merge
- py310-native-blockchain-london
- py310-native-blockchain-berlin
- py310-native-blockchain-byzantium
- py310-native-blockchain-constantinople
- py310-native-blockchain-frontier
- py310-native-blockchain-homestead
- py310-native-blockchain-istanbul
- py310-native-blockchain-petersburg
- py310-native-blockchain-tangerine_whistle
- py310-native-blockchain-spurious_dragon
- py310-native-blockchain-transition
- py311-native-blockchain-shanghai
- py311-native-blockchain-merge
- py311-native-blockchain-london
- py311-native-blockchain-berlin
- py311-native-blockchain-byzantium
- py311-native-blockchain-constantinople
- py311-native-blockchain-frontier
- py311-native-blockchain-homestead
- py311-native-blockchain-istanbul
- py311-native-blockchain-petersburg
- py311-native-blockchain-tangerine_whistle
- py311-native-blockchain-spurious_dragon
- py311-native-blockchain-transition
- py37-vm
- py38-vm
- py39-vm
- py310-vm
- py311-vm
- py37-core
- py38-core
- py39-core
- py310-core
- py311-core
- py37-transactions
- py38-transactions
- py39-transactions
- py310-transactions
- py311-transactions
- py37-difficulty
- py38-difficulty
- py39-difficulty
- py310-difficulty
- py311-difficulty
- py37-database
- py38-database
- py39-database
- py310-database
- py311-database
- py38-lint
- py39-lint
- py310-lint
- py311-lint
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# using the default fallbacks though.
"eth-extra": [
"blake2b-py>=0.2.0,<0.3.0",
"coincurve>=13.0.0,<14.0.0",
"coincurve>=18.0.0",
],
"test": [
"factory-boy==2.11.1",
Expand Down Expand Up @@ -118,5 +118,6 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
)
9 changes: 5 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[tox]
envlist=
py{37,38,39,310}-{core,database,difficulty,transactions,vm}
py310-native-blockchain-{ \
py{37,38,39,310,311}-{core,database,difficulty,transactions,vm}
py311-native-blockchain-{ \
metropolis, transition, frontier, homestead, tangerine_whistle, \
spurious_dragon, byzantium, constantinople, petersburg, istanbul, \
berlin, london, merge, shanghai \
}
py{38,39,310}-lint
py{38,39,310,311}-lint
docs

[isort]
Expand Down Expand Up @@ -57,6 +57,7 @@ basepython =
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
extras=
docs
eth-extra
Expand All @@ -78,6 +79,6 @@ basepython: python
extras: {[common-lint]extras}
commands: {[common-lint]commands}

[testenv:py{38,39,310}-lint]
[testenv:py{38,39,310,311}-lint]
extras: {[common-lint]extras}
commands: {[common-lint]commands}

0 comments on commit 71175cf

Please sign in to comment.