From 7ca31369055c19f5eb409e67c5d9624ba2ec1041 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 16 Aug 2019 22:22:14 -0500 Subject: [PATCH] Add `tox.ini` for building docs automatically with buildbot so we can have a truly "latest" version at rattailproject.org --- .gitignore | 5 +++-- setup.py | 1 + tox.ini | 9 +++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore index 6cbe9c6..da46463 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ -Rattail Tutorial.egg-info/ +rattail_tutorial.egg-info/ docs/_build/ -.vagrant/ \ No newline at end of file +.tox/ +.vagrant/ diff --git a/setup.py b/setup.py index e5c497a..8d4aa85 100644 --- a/setup.py +++ b/setup.py @@ -46,6 +46,7 @@ requires = [ 'psycopg2', # 2.6.2 'rattail', # 0.7.25 'Tailbone', # 0.5.29 + 'tox', # 3.13.2 ] diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..0eac852 --- /dev/null +++ b/tox.ini @@ -0,0 +1,9 @@ + +[tox] +envlist = docs + +[testenv:docs] +basepython = python3 +deps = rattail[docs] +changedir = docs +commands = sphinx-build -b html -d {envtmpdir}/doctrees -W -T . {envtmpdir}/docs