From f4508cfd7a06f8dda0777a9bff9eec03b44ce1a2 Mon Sep 17 00:00:00 2001 From: Ihor Kalnytskyi Date: Sat, 10 Aug 2019 23:08:34 +0300 Subject: [PATCH] Use newer setuptools version for py36 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/ --- tox.ini | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tox.ini b/tox.ini index f7d6649..4d2b61d 100644 --- a/tox.ini +++ b/tox.ini @@ -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 =