1
1
[tox]
2
2
envlist = py26,py27,py33,py34,py35,py36
3
3
{py26,py27,py33,py34,py35,py36}-{oldest,cryptography14,requests26,protobuf30}
4
- py36-macOS
4
+ {py26, py36} -macOS
5
5
py36-macOS-{oldest,cryptography14,requests26,protobuf30}
6
6
skip_missing_interpreters = True
7
7
8
8
[testenv]
9
9
commands = py.test -c {posargs:pytest.ini}
10
10
whitelist_externals = py.test
11
11
macOS: env
12
- deps = future011,oldest: future ==0.11.0
12
+
13
+
14
+ ; Tox doesn't allow us to combine main requirements.txt with specific deps versions,
15
+ ; since it will result in 'multiple deps error'.
16
+ ; The solution is to omit those deps in a tox-specific requirements.txt file
17
+ ; and maintain 2 sets of deps by explicitly stating them in tox.ini
18
+ deps =
13
19
protobuf30,oldest: protobuf ==3.0.0
14
20
requests20,oldest: requests ==2.0.0
15
21
cryptography14,oldest: cryptography ==1.4
16
- future013: future>=0.13,<0.14
17
22
requests26: requests>=2.6,<2.7
23
+ -rrequirements_tox.txt
24
+
25
+ [testenv:py26]
26
+ ; Make sure those are the same as in requirements.txt
27
+ ; they will be used in envs that do not specify specific, older versions of these packages.
28
+ deps =
29
+ cryptography ==1.5.2
30
+ protobuf ==3.1.0.post1
31
+ requests ==2.11.1
32
+ -rrequirements_tox.txt
18
33
19
- [testenv:py36]
20
34
platform = win32|linux2|linux|cygwin
21
35
36
+ [testenv:py27]
37
+ deps = {[testenv:py26]deps}
38
+
39
+ [testenv:py33]
40
+ deps = {[testenv:py26]deps}
41
+
42
+ [testenv:py34]
43
+ deps = {[testenv:py26]deps}
44
+
45
+ [testenv:py35]
46
+ deps = {[testenv:py26]deps}
47
+
48
+ [testenv:py36]
49
+ platform = {[testenv:py26]platform}
50
+ deps = {[testenv:py26]deps}
51
+
22
52
[testenv:py36-oldest]
23
53
platform = {[testenv:py36]platform}
24
54
@@ -38,6 +68,10 @@ platform = {[testenv:py36]platform}
38
68
install_command = env LDFLAGS =" -L/usr/local/opt/openssl/lib" CFLAGS =" -I/usr/local/opt/openssl/include" pip install {opts} {packages}
39
69
platform = darwin
40
70
71
+ [testenv:py26-macOS]
72
+ install_command = {[testenv:macOS]install_command}
73
+ platform = {[testenv:macOS]platform}
74
+
41
75
[testenv:py36-macOS]
42
76
install_command = {[testenv:macOS]install_command}
43
77
platform = {[testenv:macOS]platform}
0 commit comments