-
Notifications
You must be signed in to change notification settings - Fork 218
/
tox.ini
83 lines (77 loc) · 1.88 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[tox]
envlist=
py{38,39,310,311,312}-lint
py{38,39,310,311,312}-install-geth-{\
v1_14_0, v1_14_2, v1_14_3, v1_14_4, v1_14_5, v1_14_6, v1_14_7, \
v1_14_8, v1_14_9, v1_14_10, v1_14_11 \
}
py{38,39,310,311,312}-wheel
windows-wheel
[flake8]
exclude=venv*,.tox,docs,build
extend-ignore=E203
max-line-length=88
[testenv]
usedevelop=True
commands=
install-geth: {[common_geth_installation_and_check]commands}
passenv=
GETH_VERSION
GOROOT
GOPATH
HOME
PATH
setenv=
installation: GETH_RUN_INSTALL_TESTS=enabled
deps=
.[test]
install-geth: {[common_geth_installation_and_check]deps}
basepython=
windows-wheel: python
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
allowlist_externals=bash,make,pre-commit
[common_geth_installation_and_check]
deps=.[dev,test]
commands=
bash ./.circleci/install_geth.sh
pytest {posargs:tests/core}
pytest {posargs:-s tests/installation}
[testenv:py{38,39,310,311,312}-lint]
deps=pre-commit
extras=
dev
commands=
pre-commit install
pre-commit run --all-files --show-diff-on-failure
[testenv:py{38,39,310,311,312}-wheel]
deps=
wheel
build[virtualenv]
allowlist_externals=
/bin/rm
/bin/bash
commands=
python -m pip install --upgrade pip
/bin/rm -rf build dist
python -m build
/bin/bash -c 'python -m pip install --upgrade "$(ls dist/py_geth-*-py3-none-any.whl)" --progress-bar off'
python -c "import geth"
skip_install=true
[testenv:windows-wheel]
deps=
wheel
build[virtualenv]
allowlist_externals=
bash.exe
commands=
python --version
python -m pip install --upgrade pip
bash.exe -c "rm -rf build dist"
python -m build
bash.exe -c 'python -m pip install --upgrade "$(ls dist/py_geth-*-py3-none-any.whl)" --progress-bar off'
python -c "import geth"
skip_install=true