diff --git a/.readthedocs.yml b/.readthedocs.yml index b796095..f1d8270 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -6,11 +6,3 @@ build: sphinx: configuration: documentation/source/conf.py fail_on_warning: true - -python: - version: 3.7 - install: - - method: pip - path: . - extra_requirements: - - docs diff --git a/.travis.yml b/.travis.yml index 1ce50ed..11d53f0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,10 @@ language: python +addons: + apt: + packages: + - libsodium-dev + matrix: include: - python: 3.6 diff --git a/documentation/source/conf.py b/documentation/source/conf.py index 362ac8f..b468f64 100644 --- a/documentation/source/conf.py +++ b/documentation/source/conf.py @@ -6,3 +6,4 @@ master_doc = 'index' project = 'hypercore-crypto' templates_path = ['_templates'] extensions = ['sphinx.ext.autodoc', 'sphinx_autodoc_typehints'] +autodoc_mock_imports = ['pysodium'] # no libsodium in the RTD environment diff --git a/tox.ini b/tox.ini index 96bcc0f..c72adcf 100644 --- a/tox.ini +++ b/tox.ini @@ -56,7 +56,7 @@ commands = [testenv:docs] description = build the documentation -skip_install=True +skipdist = True extras = docs commands = python -m setup build_sphinx