diff --git a/PKGBUILD b/PKGBUILD index 9bdb373..42b9bd5 100644 --- a/PKGBUILD +++ b/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() { diff --git a/setup.py b/setup.py index b53a470..9488d65 100644 --- a/setup.py +++ b/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"), + } + }, )