Skip to content

Commit 4dea0cf

Browse files
chore: support Python 3.10 (#2549)
* Update setup.py * Update setup.py * add 3.10 workflow * Update tox.ini * fix yaml parsing of "3.10" yaml parses current as the float `3.1` * try to fix blake2b-py dep * update web3.py * remove blake2b-py again * add upper bound to py-evm Co-authored-by: Charles Cooper <[email protected]>
1 parent 284b1e3 commit 4dea0cf

File tree

3 files changed

+47
-4
lines changed

3 files changed

+47
-4
lines changed

.github/workflows/test.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,47 @@ jobs:
186186
run: TOXENV=py39-no-opt tox -r
187187

188188

189+
py310-core:
190+
runs-on: ubuntu-latest
191+
192+
steps:
193+
- uses: actions/checkout@v1
194+
195+
- name: Set up Python 3.10
196+
uses: actions/setup-python@v1
197+
with:
198+
python-version: "3.10"
199+
200+
- name: Install Tox
201+
run: pip install tox
202+
203+
- name: Run Tox
204+
run: TOXENV=py310-core tox -r
205+
206+
- name: Upload Coverage
207+
uses: codecov/codecov-action@v1
208+
with:
209+
token: ${{ secrets.CODECOV_TOKEN }}
210+
file: ./coverage.xml
211+
212+
py310-no-opt:
213+
runs-on: ubuntu-latest
214+
215+
steps:
216+
- uses: actions/checkout@v1
217+
218+
- name: Set up Python 3.10
219+
uses: actions/setup-python@v1
220+
with:
221+
python-version: "3.10"
222+
223+
- name: Install Tox
224+
run: pip install tox
225+
226+
- name: Run Tox
227+
run: TOXENV=py310-no-opt tox -r
228+
229+
189230
fuzzing:
190231
runs-on: ubuntu-latest
191232

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"pytest-instafail>=0.4,<1.0",
1212
"pytest-xdist>=1.32,<2.0",
1313
"eth-tester[py-evm]>=0.6.0b4,<0.7",
14-
"py-evm==0.5.0a1", # NOTE: temporarily pinned until we have support for py-evm 0.5.0a0+
15-
"web3==5.21.0",
14+
"py-evm>=0.5.0a3,<0.6",
15+
"web3==5.27.0",
1616
"tox>=3.15,<4.0",
1717
"lark-parser==0.10.0",
1818
"hypothesis[lark]>=5.37.1,<6.0",
@@ -69,7 +69,7 @@ def _global_version(version):
6969
keywords="ethereum evm smart contract language",
7070
include_package_data=True,
7171
packages=find_packages(exclude=("tests", "docs")),
72-
python_requires=">=3.7,<3.10",
72+
python_requires=">=3.7,<3.11",
7373
py_modules=["vyper"],
7474
install_requires=[
7575
"asttokens==2.0.5",
@@ -95,5 +95,6 @@ def _global_version(version):
9595
"Programming Language :: Python :: 3.7",
9696
"Programming Language :: Python :: 3.8",
9797
"Programming Language :: Python :: 3.9",
98+
"Programming Language :: Python :: 3.10",
9899
],
99100
)

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py{37,38,39}-{core,no-opt}
3+
py{37,38,39,310}-{core,no-opt}
44
lint
55
mypy
66
docs
@@ -14,6 +14,7 @@ basepython =
1414
py37: python3.7
1515
py38: python3.8
1616
py39: python3.9
17+
py310: python3.10
1718
extras =
1819
test
1920
whitelist_externals = make

0 commit comments

Comments
 (0)