Add provisions for building docs using setup.py
This commit is contained in:
parent
3f8c3b5ae9
commit
5ecde4c06c
2
PKGBUILD
2
PKGBUILD
@ -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() {
|
||||
|
10
setup.py
10
setup.py
@ -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"),
|
||||
}
|
||||
},
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user