Add setuptools sphinx integration

This commit is contained in:
Dmitri Bogomolov 2019-10-11 18:50:35 +03:00
parent 7ba296a6fe
commit 86932617bd
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
2 changed files with 7 additions and 8 deletions

1
.gitignore vendored
View File

@ -17,4 +17,5 @@ dist
*.egg-info *.egg-info
docs/_*/* docs/_*/*
docs/autodoc/ docs/autodoc/
build/sphinx/
pyan/ pyan/

View File

@ -17,13 +17,7 @@ EXTRAS_REQUIRE = {
'qrcode': ['qrcode'], 'qrcode': ['qrcode'],
'sound;platform_system=="Windows"': ['winsound'], 'sound;platform_system=="Windows"': ['winsound'],
'tor': ['stem'], 'tor': ['stem'],
'docs': [ 'docs': ['sphinx', 'sphinxcontrib-apidoc', 'm2r']
'sphinx', # fab build_docs
'graphviz', # fab build_docs
'curses', # src/depends.py
'python2-pythondialog', # src/depends.py
'm2r', # fab build_docs
]
} }
@ -155,5 +149,9 @@ if __name__ == "__main__":
# ] # ]
}, },
scripts=['src/pybitmessage'], scripts=['src/pybitmessage'],
cmdclass={'install': InstallCmd} cmdclass={'install': InstallCmd},
command_options={
'build_sphinx': {
'source_dir': ('setup.py', 'docs')}
}
) )