Add provisions for building docs using setup.py

This commit is contained in:
Eric Torres 2019-04-19 23:57:38 -07:00
parent 3f8c3b5ae9
commit 5ecde4c06c
2 changed files with 10 additions and 2 deletions

View File

@ -20,7 +20,7 @@ build() {
cd "${srcdir}/${pkgname}-${pkgver}"
python setup.py build
python setup.py sphinx_build
python setup.py sphinx_build -b man
}
check() {

View File

@ -4,7 +4,7 @@ from sphinx.setup_command import BuildDoc
# ========== Constants ==========
PACKAGES = ["rbackup", "rbackup.plugins", "rbackup.struct"]
SCRIPTS = ["bin/backup"]
CMDCLASS = {'build_sphinx': BuildDoc}
CMDCLASS = {"build_sphinx": BuildDoc}
# ========== Functions ==========
with open("README.rst", "r") as fh:
@ -28,4 +28,12 @@ setuptools.setup(
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
command_options={
"build_sphinx": {
# "project": ("setup.py", name),
"version": ("setup.py", "version"),
"release": ("setup.py", "release"),
# "source_dir": ("setup.py", "doc"),
}
},
)