Merge branch '321-docs-py3'

closes #321
This commit is contained in:
Brian Warner 2019-05-05 18:15:24 -04:00
commit 9e4e0850f1
3 changed files with 14 additions and 0 deletions

View File

@ -31,5 +31,9 @@ matrix:
- python: 3.6
script: tox -e flake8less
env: FLAKE8
- python: 3.7
dist: xenial
script: tox -e docs
env: DOCS
allow_failures:
- python: nightly

View File

@ -64,6 +64,8 @@ def _get_versions():
parent = os.path.dirname(here)
v = subprocess.check_output([sys.executable, "setup.py", "--version"],
cwd=parent)
if sys.version_info[0] >= 3:
v = v.decode()
short = ".".join(v.split(".")[:2])
long = v
return short, long

View File

@ -44,3 +44,11 @@ max-complexity = 40
[testenv:flake8less]
deps = flake8
commands = flake8 --select=E901,E999,F821,F822,F823 src/wormhole
[testenv:docs]
deps =
sphinx
recommonmark
skip_install = True
commands =
sphinx-build -b html -d {toxinidir}/docs/_build/doctrees {toxinidir}/docs {toxinidir}/docs/_build/html