Add command to build sphinx docs and update packages

This commit is contained in:
Eric Torres 2019-04-23 21:44:20 -07:00
parent 7ec7d05f50
commit 7b27343d52

View File

@ -1,8 +1,11 @@
import setuptools
from sphinx.setup_command import BuildDoc
# ========== Constants ==========
PACKAGES = ["packaging_scripts"]
EXCLUDED_PACKAGES = ["test", "tests"]
PACKAGES = setuptools.find_packages(exclude=EXCLUDED_PACKAGES)
SCRIPTS = ["bin/addpkg", "bin/delpkg", "bin/fqo"]
CMDCLASS = {"build_sphinx": BuildDoc}
# ========== Functions ==========
@ -27,4 +30,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"),
}
},
)