From e170f6075c08f3e2ddaff1e4708db46474f1a71c Mon Sep 17 00:00:00 2001 From: Donald Stufft <donald@stufft.io> Date: Sun, 27 Oct 2013 22:22:20 -0400 Subject: [PATCH] Make it so the docs build without an install --- .travis.yml | 1 + docs/conf.py | 3 +++ docs/signing.rst | 2 +- tox.ini | 1 - 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 777141fa..3decc7d2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,6 +21,7 @@ env: - TOXENV=py32 SODIUM_INSTALL=system CC=clang - TOXENV=py33 SODIUM_INSTALL=system CC=clang - TOXENV=pypy SODIUM_INSTALL=system CC=clang + - docs install: # Add the PyPy repository diff --git a/docs/conf.py b/docs/conf.py index 0d256c06..c96071b6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -194,6 +194,9 @@ class Mock(object): else: return Mock() + def __floordiv__(self, other): + return Mock() + MOCK_MODULES = [ "cffi", "cffi.vengine_cpy", "cffi.vengine_gen", "cffi.verifier", ] diff --git a/docs/signing.rst b/docs/signing.rst index 3af4fa1e..076939ad 100644 --- a/docs/signing.rst +++ b/docs/signing.rst @@ -60,7 +60,7 @@ Reference .. autoclass:: nacl.signing.SignedMessage :members: -.. autoclass:: nacl.signing.BadSignatureError +.. autoclass:: nacl.exceptions.BadSignatureError :members: diff --git a/tox.ini b/tox.ini index 11d32571..68b0fd85 100644 --- a/tox.ini +++ b/tox.ini @@ -13,7 +13,6 @@ commands = [testenv:docs] deps = sphinx - cffi basepython = python2.7 commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html -- GitLab