2017-10-28 16:48:41 +05:30
|
|
|
# Tox (https://tox.readthedocs.io/) is a tool for running tests
|
2012-06-28 12:43:12 -07:00
|
|
|
# in multiple virtualenvs. This configuration file will run the
|
|
|
|
# test suite on all supported python versions. To use it, "pip install tox"
|
|
|
|
# and then run "tox" from this directory.
|
|
|
|
|
|
|
|
[tox]
|
2019-10-31 14:46:02 +05:00
|
|
|
envlist = py35
|
2012-06-28 12:43:12 -07:00
|
|
|
|
|
|
|
[testenv]
|
2013-07-09 00:26:59 +06:00
|
|
|
deps =
|
2018-05-17 08:53:42 +00:00
|
|
|
-ctests/constraints.txt
|
2019-10-31 14:46:02 +05:00
|
|
|
-rrequirements-py3.txt
|
|
|
|
-rtests/requirements-py3.txt
|
2013-11-07 04:02:46 -02:00
|
|
|
# Extras
|
2019-08-07 04:36:52 -03:00
|
|
|
botocore>=1.3.23
|
|
|
|
Pillow>=3.4.2
|
2016-02-15 16:20:13 +03:00
|
|
|
passenv =
|
2016-02-15 17:50:47 +03:00
|
|
|
S3_TEST_FILE_URI
|
2016-02-15 16:20:13 +03:00
|
|
|
AWS_ACCESS_KEY_ID
|
|
|
|
AWS_SECRET_ACCESS_KEY
|
2017-09-13 16:24:04 +09:00
|
|
|
GCS_TEST_FILE_URI
|
|
|
|
GCS_PROJECT_ID
|
2012-06-28 12:43:12 -07:00
|
|
|
commands =
|
2019-11-14 15:42:34 +01:00
|
|
|
py.test --cov=scrapy --cov-report= {posargs:--durations=10 docs scrapy tests}
|
2013-07-09 00:26:59 +06:00
|
|
|
|
2019-08-07 04:36:52 -03:00
|
|
|
[testenv:py35]
|
|
|
|
basepython = python3.5
|
2013-11-19 20:15:15 -02:00
|
|
|
|
2019-08-07 04:36:52 -03:00
|
|
|
[testenv:py35-pinned]
|
2016-01-13 12:47:42 +01:00
|
|
|
basepython = python3.5
|
2019-08-07 04:36:52 -03:00
|
|
|
deps =
|
|
|
|
-ctests/constraints.txt
|
|
|
|
cryptography==2.0
|
|
|
|
cssselect==0.9.1
|
|
|
|
lxml==3.5.0
|
|
|
|
parsel==1.5.0
|
2019-09-09 08:12:32 +00:00
|
|
|
Protego==0.1.15
|
2019-08-07 04:36:52 -03:00
|
|
|
PyDispatcher==2.0.5
|
|
|
|
pyOpenSSL==16.2.0
|
|
|
|
queuelib==1.4.2
|
|
|
|
service_identity==16.0.0
|
|
|
|
six==1.10.0
|
|
|
|
Twisted==17.9.0
|
|
|
|
w3lib==1.17.0
|
|
|
|
zope.interface==4.1.3
|
|
|
|
-rtests/requirements-py3.txt
|
|
|
|
# Extras
|
|
|
|
botocore==1.3.23
|
|
|
|
Pillow==3.4.2
|
2016-01-13 12:47:42 +01:00
|
|
|
|
2017-01-06 15:38:35 +01:00
|
|
|
[testenv:py36]
|
|
|
|
basepython = python3.6
|
|
|
|
|
2018-03-02 14:57:39 +01:00
|
|
|
[testenv:py37]
|
|
|
|
basepython = python3.7
|
|
|
|
|
2019-10-21 18:32:30 +01:00
|
|
|
[testenv:py38]
|
|
|
|
basepython = python3.8
|
|
|
|
|
2017-12-25 13:46:22 +03:00
|
|
|
[testenv:pypy3]
|
|
|
|
basepython = pypy3
|
|
|
|
commands =
|
2019-11-14 15:42:34 +01:00
|
|
|
py.test {posargs:--durations=10 docs scrapy tests}
|
2017-12-25 13:46:22 +03:00
|
|
|
|
2019-11-14 12:10:25 +01:00
|
|
|
[testenv:security]
|
|
|
|
basepython = python3.8
|
|
|
|
deps =
|
|
|
|
bandit
|
|
|
|
commands =
|
|
|
|
bandit -r -c .bandit.yml {posargs:scrapy}
|
|
|
|
|
2019-11-07 14:05:01 +01:00
|
|
|
[testenv:flake8]
|
|
|
|
basepython = python3.8
|
|
|
|
deps =
|
|
|
|
{[testenv]deps}
|
|
|
|
pytest-flake8
|
|
|
|
commands =
|
2019-11-08 16:00:10 +01:00
|
|
|
py.test --flake8 {posargs:docs scrapy tests}
|
2019-11-07 14:05:01 +01:00
|
|
|
|
2015-05-14 20:41:55 -03:00
|
|
|
[docs]
|
2014-04-09 18:46:01 -03:00
|
|
|
changedir = docs
|
|
|
|
deps =
|
2017-03-20 22:21:08 +05:30
|
|
|
-rdocs/requirements.txt
|
2015-05-14 20:41:55 -03:00
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
changedir = {[docs]changedir}
|
|
|
|
deps = {[docs]deps}
|
2014-04-09 18:46:01 -03:00
|
|
|
commands =
|
2015-05-14 20:40:12 -03:00
|
|
|
sphinx-build -W -b html . {envtmpdir}/html
|
2015-05-14 20:41:55 -03:00
|
|
|
|
2019-01-04 18:17:35 +01:00
|
|
|
[testenv:docs-coverage]
|
|
|
|
changedir = {[docs]changedir}
|
|
|
|
deps = {[docs]deps}
|
|
|
|
commands =
|
|
|
|
sphinx-build -b coverage . {envtmpdir}/coverage
|
|
|
|
|
2015-05-14 20:41:55 -03:00
|
|
|
[testenv:docs-links]
|
|
|
|
changedir = {[docs]changedir}
|
|
|
|
deps = {[docs]deps}
|
|
|
|
commands =
|
2015-05-14 20:40:12 -03:00
|
|
|
sphinx-build -W -b linkcheck . {envtmpdir}/linkcheck
|
2019-08-02 13:13:29 +05:30
|
|
|
|
2019-10-21 18:32:30 +01:00
|
|
|
[testenv:py38-extra-deps]
|
|
|
|
basepython = python3.8
|
2019-08-07 04:36:52 -03:00
|
|
|
deps =
|
2019-08-02 13:13:29 +05:30
|
|
|
{[testenv]deps}
|
|
|
|
reppy
|
|
|
|
robotexclusionrulesparser
|