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}" cd "${srcdir}/${pkgname}-${pkgver}"
python setup.py build python setup.py build
python setup.py sphinx_build python setup.py sphinx_build -b man
} }
check() { check() {

View File

@ -4,7 +4,7 @@ from sphinx.setup_command import BuildDoc
# ========== Constants ========== # ========== Constants ==========
PACKAGES = ["rbackup", "rbackup.plugins", "rbackup.struct"] PACKAGES = ["rbackup", "rbackup.plugins", "rbackup.struct"]
SCRIPTS = ["bin/backup"] SCRIPTS = ["bin/backup"]
CMDCLASS = {'build_sphinx': BuildDoc} CMDCLASS = {"build_sphinx": BuildDoc}
# ========== Functions ========== # ========== Functions ==========
with open("README.rst", "r") as fh: with open("README.rst", "r") as fh:
@ -28,4 +28,12 @@ setuptools.setup(
"License :: OSI Approved :: MIT License", "License :: OSI Approved :: MIT License",
"Operating System :: OS Independent", "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"),
}
},
) )