-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
35 lines (25 loc) · 795 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
# !/usr/bin/env python
import os
from setuptools import setup
from setuptools_scm import get_version
###################################################################
PACKAGES = []
META_PATH = os.path.join("__about__.py")
INSTALL_REQUIRES = []
###################################################################
about = {}
with open(os.path.join("__about__.py")) as f:
exec(f.read(), about)
with open("README.rst", "r") as fh:
long_description = fh.read()
try:
version = get_version(root='.', relative_to=__file__)
except (LookupError, ModuleNotFoundError):
with open("VERSION", "r") as fh:
version = fh.read().strip()
setup(
packages=PACKAGES,
version=version,
long_description=long_description,
long_description_content_type="text/x-rst",
)