Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Saad Jbabdi
mcutils
Commits
62d25105
Commit
62d25105
authored
May 18, 2019
by
Michiel Cottaar
Browse files
ENH: set up documentation for mcutils
parent
f4f007a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup.py
View file @
62d25105
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'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment