@@ -28,7 +28,9 @@ envlist =
2828
2929 {pypy,py2.7,py3.4,py3.5,py3.6,py3.7,py3.8,py3.9}-flask-{0.10,0.11,0.12,1.0}
3030 {pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9}-flask-1.1
31- {py3.6,py3.7,py3.8,py3.9}-flask-dev
31+
32+ # TODO: see note in [testenv:flask-dev] below
33+ ; {py3.6,py3.7,py3.8,py3.9}-flask-dev
3234
3335 {pypy,py2.7,py3.5,py3.6,py3.7,py3.8,py3.9}-bottle-0.12
3436
@@ -132,7 +134,10 @@ deps =
132134 flask-0.12: Flask>=0.12,<0.13
133135 flask-1.0: Flask>=1.0,<1.1
134136 flask-1.1: Flask>=1.1,<1.2
135- flask-dev: git+https://github.com/pallets/flask.git# egg=flask
137+
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
136141
137142 bottle-0.12: bottle>=0.12,<0.13
138143 bottle-dev: git+https://github.com/bottlepy/bottle# egg=bottle
@@ -293,6 +298,40 @@ basepython =
293298commands =
294299 py.test {env:TESTPATH} {posargs}
295300
301+
302+ # TODO: This is broken out as a separate env so as to be able to override the
303+ # werkzeug version. (You can't do it just by letting one version be specifed in
304+ # a requirements file and specifying a different version in one testenv, see
305+ # https://github.com/tox-dev/tox/issues/1390.) The issue is that as of 11/11/20,
306+ # flask-dev has made a change which werkzeug then had to compensate for in
307+ # https://github.com/pallets/werkzeug/pull/1960. Since we've got werkzeug
308+ # pinned at 0.15.5 in test-requirements.txt, we don't get this fix.
309+
310+ # At some point, we probably want to revisit this, since the list copied from
311+ # test-requirements.txt could easily get stale.
312+ [testenv:flask-dev]
313+ deps =
314+ git+https://github.com/pallets/flask.git# egg=flask
315+ git+https://github.com/pallets/werkzeug.git# egg=werkzeug
316+
317+ # everything below this point is from test-requirements.txt (minus, of
318+ # course, werkzeug)
319+ pytest ==3.7.3
320+ pytest-forked ==1.1.3
321+ tox ==3.7.0
322+ pytest-localserver ==0.5.0
323+ pytest-cov ==2.8.1
324+ jsonschema ==3.2.0
325+ pyrsistent ==0.16.0 # TODO(py3): 0.17.0 requires python3, see https://github.com/tobgu/pyrsistent/issues/205
326+ mock # for testing under python < 3.3
327+
328+ gevent
329+ eventlet
330+
331+ newrelic
332+ executing
333+ asttokens
334+
296335[testenv:linters]
297336commands =
298337 flake8 tests examples sentry_sdk
0 commit comments