Commit 641e088d authored by Jason R. Coombs's avatar Jason R. Coombs

Move docs dependencies into package metadata and use same technique as...

Move docs dependencies into package metadata and use same technique as jaraco/skeleton to build docs in tox and rtd.
parent b2845edf
...@@ -55,7 +55,7 @@ jobs: ...@@ -55,7 +55,7 @@ jobs:
uses: actions/cache@v1 uses: actions/cache@v1
with: with:
path: ~/.cache/pip path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}-${{ hashFiles('setup.cfg') }}-${{ hashFiles('tox.ini') }} key: ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }}
restore-keys: | restore-keys: |
${{ runner.os }}-pip- ${{ runner.os }}-pip-
${{ runner.os }}- ${{ runner.os }}-
......
python: python:
version: 3 version: 3
requirements_file: docs/requirements.txt extra_requirements:
pip_install: false - docs
pip_install: true
sphinx!=1.8.0
rst.linker>=1.9
jaraco.packaging>=6.1
setuptools>=34
...@@ -55,8 +55,10 @@ exclude = *.tests ...@@ -55,8 +55,10 @@ exclude = *.tests
[options.extras_require] [options.extras_require]
ssl = ssl =
wincertstore==0.2; sys_platform=='win32' wincertstore==0.2; sys_platform=='win32'
certs = certs =
certifi==2016.9.26 certifi==2016.9.26
tests = tests =
mock mock
pytest-flake8 pytest-flake8
...@@ -70,3 +72,8 @@ tests = ...@@ -70,3 +72,8 @@ tests =
paver; python_version>="3.6" paver; python_version>="3.6"
futures; python_version=="2.7" futures; python_version=="2.7"
pip>=19.1 # For proper file:// URLs support. pip>=19.1 # For proper file:// URLs support.
docs =
sphinx
jaraco.packaging>=6.1
rst.linker>=1.9
...@@ -44,12 +44,12 @@ skip_install=True ...@@ -44,12 +44,12 @@ skip_install=True
commands=codecov -X gcov --file {toxworkdir}/coverage.xml commands=codecov -X gcov --file {toxworkdir}/coverage.xml
[testenv:docs] [testenv:docs]
deps = -r{toxinidir}/docs/requirements.txt extras =
skip_install=True docs
testing
changedir = docs
commands = commands =
python -m bootstrap python -m sphinx . {toxinidir}/build/html
sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/build/html
sphinx-build -W -b man -d {envtmpdir}/doctrees docs docs/build/man
[coverage:run] [coverage:run]
source= source=
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment