-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
38 lines (32 loc) · 1.1 KB
/
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
from setuptools import find_packages, setup
import conf
extra_kwargs = {}
entry_points = None
if conf.CONSOLE_SCRIPTS:
entry_points = dict(console_scripts=conf.CONSOLE_SCRIPTS)
extras_require = None
if conf.OPTIONAL_PACKAGE_INSTALL_REQUIRES:
extras_require = conf.OPTIONAL_PACKAGE_INSTALL_REQUIRES
long_description = conf.PACKAGE_DESCRIPTION
if conf.PACKAGE_DESCRIPTION.strip().lower() == "auto":
with open("README.md", "r") as f:
long_description = f.read()
extra_kwargs["long_description_content_type"] = "text/markdown"
setup(
name=conf.PACKAGE_NAME,
description=conf.PACKAGE_SHORT_DESCRIPTION,
long_description=long_description,
author=conf.PACKAGE_AUTHOR,
author_email=conf.PACKAGE_AUTHOR_EMAIL,
license=conf.PACKAGE_LICENSE,
packages=find_packages(),
include_package_data=True,
classifiers=conf.PACKAGE_CLASSIFIERS,
install_requires=conf.PACKAGE_INSTALL_REQUIRES,
extras_require=extras_require,
project_urls=conf.PACKAGE_URLS,
url=conf.PACKAGE_URLS["Code"],
scripts=conf.SCRIPTS,
entry_points=entry_points,
**extra_kwargs
)