Skip to content

Commit

Permalink
Use newer setuptools version for py36
Browse files Browse the repository at this point in the history
Unfortunately, Travis CI uses a pretty outdated version of setuptools
package in Python 3.6 environments. That version has a bug that prevents
using namespace packages [1]. Fortunately, it has been fixed in newer
versions, thus we simply must update a setuptools version.

pypa/setuptools#1402
  • Loading branch information
ikalnytskyi committed Aug 10, 2019
1 parent 38bbd15 commit f4508cf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ commands =
{envpython} -m flake8 sphinxcontrib/ tests/
{envpython} -m pytest tests/ --strict {posargs}


[testenv:py36]
commands_pre =
# Unfortunately, Travis CI uses a pretty outdated version of setuptools
# package in Python 3.6 environments. That version has a bug that prevents
# using namespace packages [1]. Fortunately, it has been fixed in newer
# versions, thus we simply must update a setuptools version.
#
# https://github.com/pypa/setuptools/pull/1402/
{envpython} -m pip install -U setuptools >= 40.3.0

[testenv:docs]
deps = sphinx_rtd_theme
commands =
Expand Down

0 comments on commit f4508cf

Please sign in to comment.