Build docs using python3 #1885

Open
g1itch wants to merge 4 commits from g1itch/doc-python3 into v0.6
4 changed files with 10 additions and 7 deletions

View File

@ -1,7 +1,7 @@
version: 2 version: 2
python: python:
version: 2.7 version: 3.8
install: install:
- requirements: docs/requirements.txt - requirements: docs/requirements.txt
- method: setuptools - method: setuptools

View File

@ -23,7 +23,7 @@ copyright = u'2019, The Bitmessage Team' # pylint: disable=redefined-builtin
author = u'The Bitmessage Team' author = u'The Bitmessage Team'
# The short X.Y version # The short X.Y version
version = unicode(version.softwareVersion) version = version.softwareVersion
# The full version, including alpha/beta/rc tags # The full version, including alpha/beta/rc tags
release = version release = version
@ -46,7 +46,7 @@ extensions = [
'sphinx.ext.napoleon', 'sphinx.ext.napoleon',
'sphinx.ext.todo', 'sphinx.ext.todo',
'sphinxcontrib.apidoc', 'sphinxcontrib.apidoc',
'm2r', 'm2r2',
] ]
default_role = 'obj' default_role = 'obj'
@ -199,13 +199,16 @@ epub_exclude_files = ['search.html']
# -- Extension configuration ------------------------------------------------- # -- Extension configuration -------------------------------------------------
autodoc_mock_imports = [ autodoc_mock_imports = [
'debug',
'pybitmessage.bitmessagekivy', 'pybitmessage.bitmessagekivy',
'pybitmessage.bitmessageqt.foldertree', 'pybitmessage.bitmessageqt.foldertree',
'pybitmessage.bitmessageqt.tests',
'pybitmessage.debug',
'pybitmessage.fallback.umsgpack',
'pybitmessage.helper_startup', 'pybitmessage.helper_startup',
'pybitmessage.mock', 'pybitmessage.mock',
'pybitmessage.network.httpd', 'pybitmessage.network.httpd',
'pybitmessage.network.https', 'pybitmessage.network.https',
'pybitmessage.pyelliptic.tests',
'ctypes', 'ctypes',
'dialog', 'dialog',
'gi', 'gi',
@ -268,7 +271,7 @@ def linkcode_resolve(domain, info):
# -- Options for intersphinx extension --------------------------------------- # -- Options for intersphinx extension ---------------------------------------
# Example configuration for intersphinx: refer to the Python standard library. # Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'https://docs.python.org/2.7/': None} intersphinx_mapping = {'https://docs.python.org/3/': None}
# -- Options for todo extension ---------------------------------------------- # -- Options for todo extension ----------------------------------------------

View File

@ -1,3 +1,3 @@
m2r m2r2
sphinxcontrib-apidoc sphinxcontrib-apidoc
docutils<=0.17.1 docutils<=0.17.1

View File

@ -12,7 +12,7 @@ commands =
coverage run -a src/bitmessagemain.py -t coverage run -a src/bitmessagemain.py -t
coverage run -a -m tests coverage run -a -m tests
[testenv:py27-doc] [testenv:doc]
deps = deps =
.[docs] .[docs]
-r docs/requirements.txt -r docs/requirements.txt