From 5821e65eda14c1da0967c5f59de608691e37a06f Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Thu, 30 Mar 2023 13:15:54 -0400 Subject: Added tox environments for building the docs and running tests with no dependencies installed. --- doc/source/conf.py | 2 +- tox.ini | 20 +++++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 15e258b..c9955b4 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -120,7 +120,7 @@ html_theme = 'default' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] +#html_static_path = ['_static'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. diff --git a/tox.ini b/tox.ini index 50a12cb..345a445 100644 --- a/tox.ini +++ b/tox.ini @@ -1,22 +1,25 @@ [tox] env_list = - py{36, 37, 38, 39, 310, 311} + py{36, 37, 38, 39, 310, 311},bare,docs minversion = 4.4.8 [testenv] description = run the tests with all dependencies installed package = wheel wheel_build_env = .pkg -deps = - lxml - html5lib - soupsieve>=1.2 - pytest>=6 +deps = lxml + html5lib + soupsieve>=1.2 + pytest>=6 commands = pytest {tty:--color=yes} {posargs} -[testenv:oldpy] -description = run the tests on a very old version of Python without any dependencies installed +[testenv:docs] +deps = sphinx +commands = sphinx-build -b html doc/source doc/build/html + +[testenv:bare] +description = run the tests on the oldest supported version of Python, without any dependencies installed basepython = py36 package = wheel wheel_build_env = .pkg @@ -24,4 +27,3 @@ deps = pytest>=6 commands = pytest {tty:--color=yes} {posargs} - -- cgit v1.2.3