-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.py
59 lines (49 loc) · 1.61 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
from setuptools import setup, find_packages
import os
HERE = os.path.abspath(os.path.dirname(__file__))
def get_long_description():
dirs = [HERE]
if os.getenv("TRAVIS"):
dirs.append(os.getenv("TRAVIS_BUILD_DIR"))
long_description = ""
for d in dirs:
rst_readme = os.path.join(d, "README.rst")
if not os.path.exists(rst_readme):
continue
with open(rst_readme) as fp:
long_description = fp.read()
return long_description
return long_description
long_description = get_long_description()
version = "0.3.10"
setup(
name="basescript",
version=version,
description="Basic infrastructure for writing scripts",
long_description=long_description,
keywords="basescript",
author="Deep Compute, LLC",
author_email="[email protected]",
url="https://github.com/deep-compute/basescript",
download_url="https://github.com/deep-compute/basescript/tarball/%s" % version,
license="MIT License",
install_requires=[
"pytz>2018.3",
"six>=1.11.0",
"structlog==18.1.0",
"colorama>=0.3.9",
"deeputil>=0.2.7",
"PyYAML>=6.0"
],
package_dir={"basescript": "basescript"},
packages=find_packages(".", exclude=["tests*"]),
entry_points={"console_scripts": ["basescript=basescript:main"]},
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
],
)