Add command to build sphinx docs and update packages
This commit is contained in:
parent
7ec7d05f50
commit
7b27343d52
13
setup.py
13
setup.py
@ -1,8 +1,11 @@
|
|||||||
import setuptools
|
import setuptools
|
||||||
|
from sphinx.setup_command import BuildDoc
|
||||||
|
|
||||||
# ========== Constants ==========
|
# ========== Constants ==========
|
||||||
PACKAGES = ["packaging_scripts"]
|
EXCLUDED_PACKAGES = ["test", "tests"]
|
||||||
|
PACKAGES = setuptools.find_packages(exclude=EXCLUDED_PACKAGES)
|
||||||
SCRIPTS = ["bin/addpkg", "bin/delpkg", "bin/fqo"]
|
SCRIPTS = ["bin/addpkg", "bin/delpkg", "bin/fqo"]
|
||||||
|
CMDCLASS = {"build_sphinx": BuildDoc}
|
||||||
|
|
||||||
|
|
||||||
# ========== Functions ==========
|
# ========== Functions ==========
|
||||||
@ -27,4 +30,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