-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
38 lines (29 loc) · 912 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"""A setuptools based setup module.
See:
https://packaging.python.org/guides/distributing-packages-using-setuptools/
https://github.com/pypa/sampleproject
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
import pathlib
install_cmd = None
try:
from install_cmd import InstallWrapper
install_cmd = InstallWrapper
except ModuleNotFoundError:
pass
here = pathlib.Path(__file__).parent.resolve()
# Get the long description from the README file
long_description = (here / "README.md").read_text(encoding="utf-8")
extra = dict()
if install_cmd:
cmdclass = {"install": install_cmd}
extra["cmdclass"] = cmdclass
setup(
url="https://github.com/jheld/diycrate",
test_suite="tests",
packages=find_packages(exclude=["tests", "tests.*"]),
long_description=long_description,
long_description_content_type="text/markdown",
**extra,
)