1
1
[tox]
2
2
envlist =
3
- py37-core
4
3
py{35,36}-{core,database,transactions,vm,native-blockchain}
5
4
py{36}-{benchmark,p2p,trinity}
6
5
py{36}-rpc-blockchain
7
6
py{36}-rpc-state-{frontier,homestead,eip150,eip158,byzantium,quadratic}
8
7
py{35,36}-native-state-{frontier,homestead,eip150,eip158,byzantium,constantinople,metropolis}
8
+ py37-{core,trinity,trinity-integration}
9
9
lint-py{35,36}
10
10
11
11
[flake8]
@@ -53,17 +53,15 @@ basepython =
53
53
whitelist_externals =
54
54
make
55
55
deps = .[doc]
56
- basepython =python3.6
57
56
passenv =
58
57
PYTEST_ADDOPTS
59
58
TRAVIS_EVENT_TYPE
60
59
commands =
61
60
make validate-docs
62
61
63
62
64
- [testenv:py36 -trinity-integration]
63
+ [common -trinity-integration]
65
64
deps = .[eth-extras, test]
66
- basepython =python3.6
67
65
passenv =
68
66
PYTEST_ADDOPTS
69
67
TRAVIS_EVENT_TYPE
@@ -72,37 +70,47 @@ commands=
72
70
# due to multiple Trinity instances competing for the same ports
73
71
py.test -n 1 {posargs:tests/trinity/integration/}
74
72
73
+ [testenv:py36-trinity-integration]
74
+ deps = {[common-trinity-integration]deps}
75
+ passenv = {[common-trinity-integration]passenv}
76
+ commands = {[common-trinity-integration]commands}
77
+
78
+ [testenv:py37-trinity-integration]
79
+ deps = {[common-trinity-integration]deps}
80
+ passenv = {[common-trinity-integration]passenv}
81
+ commands = {[common-trinity-integration]commands}
82
+
75
83
76
84
[testenv:py36-benchmark]
77
85
deps = .[eth-extras, benchmark]
78
- basepython =python3.6
79
86
commands =
80
87
benchmark: {toxinidir}/scripts/benchmark/run.py
81
88
82
89
83
- [testenv:lint-py35 ]
90
+ [common-lint ]
84
91
deps = .[lint]
85
- basepython =python3.5
86
92
setenv =MYPYPATH ={toxinidir}:{toxinidir}/stubs
87
93
commands =
88
94
flake8 {toxinidir}/eth
95
+
96
+ [testenv:lint-py35]
97
+ deps = {[common-lint]deps}
98
+ setenv = {[common-lint]setenv}
99
+ commands =
100
+ {[common-lint]commands}
89
101
flake8 {toxinidir}/tests --exclude =" trinity,p2p"
90
102
# TODO: Drop --ignore-missing-imports once we have type annotations for eth_utils, coincurve and cytoolz
91
103
mypy --follow-imports =silent --ignore-missing-imports --no-strict-optional --check-untyped-defs --disallow-incomplete-defs -p eth
92
104
93
-
94
105
[testenv:lint-py36]
95
- deps = .[lint]
96
- basepython =python3.6
97
- setenv =MYPYPATH ={toxinidir}:{toxinidir}/stubs
106
+ deps = {[common-lint]deps}
107
+ setenv = {[common-lint]setenv}
98
108
commands =
99
- flake8 {toxinidir}/eth
109
+ {[common-lint]commands}
110
+ flake8 {toxinidir}/tests
100
111
flake8 {toxinidir}/p2p
101
112
flake8 {toxinidir}/trinity
102
- flake8 {toxinidir}/tests
103
113
flake8 {toxinidir}/scripts
104
114
# TODO: Drop --ignore-missing-imports once we have type annotations for eth_utils, coincurve and cytoolz
105
115
mypy --follow-imports =silent --ignore-missing-imports --no-strict-optional --check-untyped-defs --disallow-incomplete-defs --disallow-untyped-defs --disallow-any-generics scripts/benchmark
106
116
mypy --follow-imports =silent --ignore-missing-imports --no-strict-optional --check-untyped-defs --disallow-incomplete-defs --disallow-untyped-defs --disallow-any-generics -p p2p -p trinity
107
-
108
-
0 commit comments