From d1d8012ca38d88675c7e74c54d8ca1e1f0c5c005 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sat, 5 Oct 2019 21:59:52 +0200 Subject: [PATCH 1/4] Don't install package on RTD env --- .readthedocs.yml | 8 -------- 1 file changed, 8 deletions(-) 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 From e876e7f9c9ea15a663d7048b26349c9c25d73f7c Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sat, 5 Oct 2019 22:00:00 +0200 Subject: [PATCH 2/4] Add libsodium in the CI env --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) 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 From 4545f60526b6750d39ce40f0acc8a8f5fee8eb13 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sat, 5 Oct 2019 22:00:10 +0200 Subject: [PATCH 3/4] Mock up pysodium on RTD --- documentation/source/conf.py | 1 + 1 file changed, 1 insertion(+) 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 From e1b134bc678c282b64ea0967a2de34fbf47a6344 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sat, 5 Oct 2019 22:00:20 +0200 Subject: [PATCH 4/4] Install docs but not dist (libsodium included now) --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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