Browse Source

fix tox python3 overrides

We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I483632acf5a68075bbf200ffb172f945e5294cf8
tags/1.9.0
Nguyen Hung Phuong 1 year ago
parent
commit
1298e765d1
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      tox.ini

+ 5
- 0
tox.ini View File

@@ -15,6 +15,7 @@ deps = scrapy>=1.0.0
commands = python setup.py testr --slowest --testr-args='{posargs}'

[testenv:pep8]
basepython = python3
commands =
python setup.py check --restructuredtext --strict
flake8
@@ -27,15 +28,18 @@ commands =
bashate bin/doc-tools-check-languages

[testenv:releasenotes]
basepython = python3
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html

[testenv:sitemap]
# commands = functional test command goes here

[testenv:venv]
basepython = python3
commands = {posargs}

[testenv:docs]
basepython = python3
commands = python setup.py build_sphinx

[testenv:bindep]
@@ -45,6 +49,7 @@ commands = python setup.py build_sphinx
# separately, outside of the requirements files, and develop mode disabled
# explicitly to avoid unnecessarily installing the checked-out repo too (this
# further relies on "tox.skipsdist = True" above).
basepython = python3
deps = bindep
commands = bindep test
usedevelop = False

Loading…
Cancel
Save