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}"
|
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() {
|
||||||
|
10
setup.py
10
setup.py
@ -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"),
|
||||||
|
}
|
||||||
|
},
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user