@@ -29,8 +29,7 @@ envlist =
29
29
{pypy,py2.7,py3.4,py3.5,py3.6,py3.7,py3.8,py3.9}-flask-{0.10,0.11,0.12,1.0}
30
30
{pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9}-flask-1.1
31
31
32
- # TODO: see note in [testenv:flask-dev] below
33
- ; {py3.6,py3.7,py3.8,py3.9}-flask-dev
32
+ {py3.7,py3.8,py3.9}-flask-dev
34
33
35
34
{pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9}-bottle-0.12
36
35
@@ -64,8 +63,7 @@ envlist =
64
63
65
64
{py3.7,py3.8,py3.9}-tornado-{5,6}
66
65
67
- {py3.4,py3.5,py3.6,py3.7,py3.8,py3.9}-trytond-{4.6,4.8,5.0}
68
- {py3.5,py3.6,py3.7,py3.8,py3.9}-trytond-{5.2}
66
+ {py3.5,py3.6,py3.7,py3.8,py3.9}-trytond-{4.6,5.0,5.2}
69
67
{py3.6,py3.7,py3.8,py3.9}-trytond-{5.4}
70
68
71
69
{py2.7,py3.8,py3.9}-requests
@@ -94,25 +92,13 @@ deps =
94
92
95
93
django-{1.11,2.0,2.1,2.2,3.0,3.1,dev}: djangorestframework>=3.0.0,<4.0.0
96
94
97
- ; TODO: right now channels 3 is crashing tests/integrations/django/asgi/test_asgi.py
98
- ; see https://github.com/django/channels/issues/1549
99
- {py3.7,py3.8,py3.9}-django-{1.11,2.0,2.1,2.2,3.0,3.1,dev}: channels>2,<3
100
- {py3.7,py3.8,py3.9}-django-{1.11,2.0,2.1,2.2,3.0,3.1,dev}: pytest-asyncio ==0.10.0
95
+ {py3.7,py3.8,py3.9}-django-{1.11,2.0,2.1,2.2,3.0,3.1,dev}: channels>2
96
+ {py3.7,py3.8,py3.9}-django-{1.11,2.0,2.1,2.2,3.0,3.1,dev}: pytest-asyncio
101
97
{py2.7,py3.7,py3.8,py3.9}-django-{1.11,2.2,3.0,3.1,dev}: psycopg2-binary
102
98
103
- django-{1.6,1.7,1.8}: pytest-django<3.0
104
-
105
- ; TODO: once we upgrade pytest to at least 5.4, we can split it like this:
106
- ; django-{1.9,1.10,1.11,2.0,2.1}: pytest-django<4.0
107
- ; django-{2.2,3.0,3.1}: pytest-django>=4.0
108
-
109
- ; (note that py3.9, on which we recently began testing, only got official
110
- ; support in pytest-django >=4.0, so we probablly want to upgrade the whole
111
- ; kit and kaboodle at some point soon)
112
-
113
- ; see https://pytest-django.readthedocs.io/en/latest/changelog.html#v4-0-0-2020-10-16
114
- django-{1.9,1.10,1.11,2.0,2.1,2.2,3.0,3.1}: pytest-django<4.0
115
-
99
+ django-{1.6,1.7}: pytest-django<3.0
100
+ django-{1.8,1.9,1.10,1.11,2.0,2.1}: pytest-django<4.0
101
+ django-{2.2,3.0,3.1}: pytest-django>=4.0
116
102
django-dev: git+https://github.com/pytest-dev/pytest-django# egg=pytest-django
117
103
118
104
django-1.6: Django>=1.6,<1.7
@@ -135,9 +121,8 @@ deps =
135
121
flask-1.0: Flask>=1.0,<1.1
136
122
flask-1.1: Flask>=1.1,<1.2
137
123
138
- # TODO: see note in [testenv:flask-dev] below
139
- ; flask-dev: git+https://github.com/pallets/flask.git#egg=flask
140
- ; flask-dev: git+https://github.com/pallets/werkzeug.git#egg=werkzeug
124
+ flask-dev: git+https://github.com/pallets/flask.git# egg=flask
125
+ flask-dev: git+https://github.com/pallets/werkzeug.git# egg=werkzeug
141
126
142
127
bottle-0.12: bottle>=0.12,<0.13
143
128
bottle-dev: git+https://github.com/bottlepy/bottle# egg=bottle
@@ -207,9 +192,10 @@ deps =
207
192
trytond-5.4: trytond>=5.4,<5.5
208
193
trytond-5.2: trytond>=5.2,<5.3
209
194
trytond-5.0: trytond>=5.0,<5.1
210
- trytond-4.8: trytond>=4.8,<4.9
211
195
trytond-4.6: trytond>=4.6,<4.7
212
196
197
+ trytond-4.8: werkzeug<1.0
198
+
213
199
redis: fakeredis
214
200
215
201
rediscluster-1: redis-py-cluster>=1.0.0,<2.0.0
@@ -302,41 +288,15 @@ basepython =
302
288
pypy: pypy
303
289
304
290
commands =
305
- py.test {env:TESTPATH} {posargs}
291
+ django-{1.6,1.7}: pip install pytest<4
306
292
293
+ ; https://github.com/pytest-dev/pytest/issues/5532
294
+ {py3.5,py3.6,py3.7,py3.8,py3.9}-flask-{0.10,0.11,0.12}: pip install pytest<5
307
295
308
- # TODO: This is broken out as a separate env so as to be able to override the
309
- # werkzeug version. (You can't do it just by letting one version be specifed in
310
- # a requirements file and specifying a different version in one testenv, see
311
- # https://github.com/tox-dev/tox/issues/1390.) The issue is that as of 11/11/20,
312
- # flask-dev has made a change which werkzeug then had to compensate for in
313
- # https://github.com/pallets/werkzeug/pull/1960. Since we've got werkzeug
314
- # pinned at 0.15.5 in test-requirements.txt, we don't get this fix.
296
+ ; trytond tries to import werkzeug.contrib
297
+ trytond-5.0: pip install werkzeug<1.0
315
298
316
- # At some point, we probably want to revisit this, since the list copied from
317
- # test-requirements.txt could easily get stale.
318
- [testenv:flask-dev]
319
- deps =
320
- git+https://github.com/pallets/flask.git# egg=flask
321
- git+https://github.com/pallets/werkzeug.git# egg=werkzeug
322
-
323
- # everything below this point is from test-requirements.txt (minus, of
324
- # course, werkzeug)
325
- pytest ==3.7.3
326
- pytest-forked ==1.1.3
327
- tox ==3.7.0
328
- pytest-localserver ==0.5.0
329
- pytest-cov ==2.8.1
330
- jsonschema ==3.2.0
331
- pyrsistent ==0.16.0 # TODO(py3): 0.17.0 requires python3, see https://github.com/tobgu/pyrsistent/issues/205
332
- mock # for testing under python < 3.3
333
-
334
- gevent
335
- eventlet
336
-
337
- newrelic
338
- executing
339
- asttokens
299
+ py.test {env:TESTPATH} {posargs}
340
300
341
301
[testenv:linters]
342
302
commands =
0 commit comments