Skip to content

Commit

Permalink
Add Python3.9 support
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellm1 authored and kclowes committed Apr 15, 2021
1 parent 71ef3cd commit bd6d24c
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 7 deletions.
103 changes: 103 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,98 @@ jobs:
environment:
TOXENV: py38-wheel-cli

#
# Python 3.9
#
py39-core:
<<: *common
docker:
- image: circleci/python:3.9
environment:
TOXENV: py39-core

py39-ens:
<<: *common
docker:
- image: circleci/python:3.9
environment:
TOXENV: py39-ens

py39-ethpm:
<<: *ethpm_steps
docker:
- image: circleci/python:3.9
environment:
TOXENV: py39-ethpm
# Please don't use this key for any shenanigans
WEB3_INFURA_PROJECT_ID: 7707850c2fb7465ebe6f150d67182e22

py39-integration-goethereum-ipc:
<<: *geth_steps
docker:
- image: circleci/python:3.9
environment:
TOXENV: py39-integration-goethereum-ipc
GETH_VERSION: v1.10.1

py39-integration-goethereum-http:
<<: *geth_steps
docker:
- image: circleci/python:3.9
environment:
TOXENV: py39-integration-goethereum-http
GETH_VERSION: v1.10.1

py39-integration-goethereum-ws:
<<: *geth_steps
docker:
- image: circleci/python:3.9
environment:
TOXENV: py39-integration-goethereum-ws
GETH_VERSION: v1.10.1

# py39-integration-parity-ipc:
# <<: *parity_steps
# docker:
# - image: circleci/python:3.9
# environment:
# TOXENV: py39-integration-parity-ipc
# PARITY_VERSION: v2.3.5
# PARITY_OS: linux

# py39-integration-parity-http:
# <<: *parity_steps
# docker:
# - image: circleci/python:3.9
# environment:
# TOXENV: py39-integration-parity-http
# PARITY_VERSION: v2.3.5
# PARITY_OS: linux

# py39-integration-parity-ws:
# <<: *parity_steps
# docker:
# - image: circleci/python:3.9
# environment:
# TOXENV: py39-integration-parity-ws
# PARITY_VERSION: v2.3.5
# PARITY_OS: linux

py39-integration-ethtester-pyevm:
<<: *common
docker:
- image: circleci/python:3.9
environment:
TOXENV: py39-integration-ethtester
ETHEREUM_TESTER_CHAIN_BACKEND: eth_tester.backends.PyEVMBackend

py39-wheel-cli:
<<: *common
docker:
- image: circleci/python:3.9
environment:
TOXENV: py39-wheel-cli

workflows:
version: 2.1
test:
Expand All @@ -476,6 +568,7 @@ workflows:
- py36-core
- py37-core
- py38-core
- py39-core
- lint
- docs
- py36-ens
Expand Down Expand Up @@ -509,3 +602,13 @@ workflows:
# - py38-integration-parity-ws
- py38-integration-ethtester-pyevm
- py38-wheel-cli
- py39-ens
- py39-ethpm
- py39-integration-goethereum-ipc
- py39-integration-goethereum-http
- py39-integration-goethereum-ws
# - py39-integration-parity-ipc
# - py39-integration-parity-http
# - py39-integration-parity-ws
- py39-integration-ethtester-pyevm
- py39-wheel-cli
1 change: 1 addition & 0 deletions newsfragments/1774.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add python3.9 support
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

extras_require = {
'tester': [
"eth-tester[py-evm]==v0.5.0-beta.3",
"eth-tester[py-evm]==v0.5.0-beta.4",
"py-geth>=3.0.0,<4",
],
'linter': [
Expand Down Expand Up @@ -85,7 +85,7 @@
"pywin32>=223;platform_system=='Windows'",
"requests>=2.16.0,<3.0.0",
# remove typing_extensions after python_requires>=3.8, see web3._utils.compat
"typing-extensions>=3.7.4.1,<4;python_version<'3.8'",
"typing-extensions>=3.7.4.1,<4;python_version<'3.8'",
"websockets>=8.1.0,<9.0.0",
],
python_requires='>=3.6,<4',
Expand All @@ -106,5 +106,6 @@
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
)
17 changes: 12 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[tox]
envlist=
py{36,37,38}-ens
py{36,37,38}-ethpm
py{36,37,38}-core
py{36,37,38}-integration-{goethereum,ethtester,parity}
py{36,37,38,39}-ens
py{36,37,38,39}-ethpm
py{36,37,38,39}-core
py{36,37,38,39}-integration-{goethereum,ethtester,parity}
lint
docs
py{36,37,38}-wheel-cli
py{36,37,38,39}-wheel-cli

[isort]
combine_as_imports=True
Expand Down Expand Up @@ -57,6 +57,7 @@ basepython =
py36: python3.6
py37: python3.7
py38: python3.8
py39: python3.9

[testenv:lint]
basepython=python
Expand Down Expand Up @@ -95,6 +96,12 @@ whitelist_externals={[common-wheel-cli]whitelist_externals}
commands={[common-wheel-cli]commands}
skip_install=true

[testenv:py39-wheel-cli]
deps={[common-wheel-cli]deps}
whitelist_externals={[common-wheel-cli]whitelist_externals}
commands={[common-wheel-cli]commands}
skip_install=true

[common-wheel-cli-windows]
deps=wheel
whitelist_externals=
Expand Down

0 comments on commit bd6d24c

Please sign in to comment.