aboutsummaryrefslogtreecommitdiff
path: root/setup.py
blob: b4d2739153dd89b34f00d5837bceb8ac64408edd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python3
# *****************************************************************************
# Copyright (C) 2019-2022 Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
# This file is part of the thcolor Python module, which is MIT-licensed.
# *****************************************************************************
"""Setup script for the thcolor Python package and script."""

from setuptools import setup as _setup

kwargs = {}

try:
    from sphinx.setup_command import BuildDoc as _BuildDoc
    kwargs['cmdclass'] = {'build_sphinx': _BuildDoc}
except ImportError:
    pass

# Actually, most of the project's data is read from the `setup.cfg` file.
_setup(**kwargs)

# End of file.