Skip to content

Commit

Permalink
Move docs dependencies into package metadata and use same technique a…
Browse files Browse the repository at this point in the history
…s jaraco/skeleton to build docs in tox and rtd.
  • Loading branch information
jaraco committed Jan 22, 2020
1 parent b2845ed commit 5871f6d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
5 changes: 3 additions & 2 deletions .readthedocs.yml
@@ -1,4 +1,5 @@
python:
version: 3
requirements_file: docs/requirements.txt
pip_install: false
extra_requirements:
- docs
pip_install: true
5 changes: 0 additions & 5 deletions docs/requirements.txt

This file was deleted.

7 changes: 7 additions & 0 deletions setup.cfg
Expand Up @@ -55,8 +55,10 @@ exclude = *.tests
[options.extras_require]
ssl =
wincertstore==0.2; sys_platform=='win32'

certs =
certifi==2016.9.26

tests =
mock
pytest-flake8
Expand All @@ -70,3 +72,8 @@ tests =
paver; python_version>="3.6"
futures; python_version=="2.7"
pip>=19.1 # For proper file:// URLs support.

docs =
sphinx
jaraco.packaging>=6.1
rst.linker>=1.9
10 changes: 5 additions & 5 deletions tox.ini
Expand Up @@ -44,12 +44,12 @@ skip_install=True
commands=codecov -X gcov --file {toxworkdir}/coverage.xml

[testenv:docs]
deps = -r{toxinidir}/docs/requirements.txt
skip_install=True
extras =
docs
testing
changedir = docs
commands =
python -m bootstrap
sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/build/html
sphinx-build -W -b man -d {envtmpdir}/doctrees docs docs/build/man
python -m sphinx . {toxinidir}/build/html

[coverage:run]
source=
Expand Down

0 comments on commit 5871f6d

Please sign in to comment.