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]
@@ -61,9 +61,8 @@ commands=
61
61
make validate-docs
62
62
63
63
64
- [testenv:py36 -trinity-integration]
64
+ [common -trinity-integration]
65
65
deps = .[eth-extras, test]
66
- basepython =python3.6
67
66
passenv =
68
67
PYTEST_ADDOPTS
69
68
TRAVIS_EVENT_TYPE
@@ -72,37 +71,52 @@ commands=
72
71
# due to multiple Trinity instances competing for the same ports
73
72
py.test -n 1 {posargs:tests/trinity/integration/}
74
73
74
+ [testenv:py36-trinity-integration]
75
+ basepython =python3.6
76
+ deps = {[common-trinity-integration]deps}
77
+ passenv = {[common-trinity-integration]passenv}
78
+ commands = {[common-trinity-integration]commands}
79
+
80
+ [testenv:py37-trinity-integration]
81
+ basepython =python3.7
82
+ deps = {[common-trinity-integration]deps}
83
+ passenv = {[common-trinity-integration]passenv}
84
+ commands = {[common-trinity-integration]commands}
85
+
75
86
76
87
[testenv:py36-benchmark]
77
- deps = .[eth-extras, benchmark]
78
88
basepython =python3.6
89
+ deps = .[eth-extras, benchmark]
79
90
commands =
80
91
benchmark: {toxinidir}/scripts/benchmark/run.py
81
92
82
93
83
- [testenv:lint-py35 ]
94
+ [common-lint ]
84
95
deps = .[lint]
85
- basepython =python3.5
86
96
setenv =MYPYPATH ={toxinidir}:{toxinidir}/stubs
87
97
commands =
88
98
flake8 {toxinidir}/eth
99
+
100
+ [testenv:lint-py35]
101
+ basepython =python3.5
102
+ deps = {[common-lint]deps}
103
+ setenv = {[common-lint]setenv}
104
+ commands =
105
+ {[common-lint]commands}
89
106
flake8 {toxinidir}/tests --exclude =" trinity,p2p"
90
107
# TODO: Drop --ignore-missing-imports once we have type annotations for eth_utils, coincurve and cytoolz
91
108
mypy --follow-imports =silent --ignore-missing-imports --no-strict-optional --check-untyped-defs --disallow-incomplete-defs -p eth
92
109
93
-
94
110
[testenv:lint-py36]
95
- deps = .[lint]
96
111
basepython =python3.6
97
- setenv =MYPYPATH ={toxinidir}:{toxinidir}/stubs
112
+ deps = {[common-lint]deps}
113
+ setenv = {[common-lint]setenv}
98
114
commands =
99
- flake8 {toxinidir}/eth
115
+ {[common-lint]commands}
116
+ flake8 {toxinidir}/tests
100
117
flake8 {toxinidir}/p2p
101
118
flake8 {toxinidir}/trinity
102
- flake8 {toxinidir}/tests
103
119
flake8 {toxinidir}/scripts
104
120
# TODO: Drop --ignore-missing-imports once we have type annotations for eth_utils, coincurve and cytoolz
105
121
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
122
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