Commit 62d25105 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

ENH: set up documentation for mcutils

parent f4f007a2
import setuptools
import os.path as op
import shutil
basedir = op.dirname(__file__)
class doc(setuptools.Command):
"""Build the API documentation. """
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sphinx.cmd.build as sphinx_build
docdir = op.join(basedir, 'doc')
destdir = op.join(docdir, 'html')
if op.exists(destdir):
shutil.rmtree(destdir)
print('Building documentation [{}]'.format(destdir))
sphinx_build.main([docdir, destdir])
setuptools.setup(
name="mcutils",
......@@ -24,6 +55,8 @@ setuptools.setup(
'mc_script=mcutils.scripts.__main__:main',
]},
cmdclass={'doc': doc},
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Programming Language :: Python',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment