-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
56 lines (46 loc) · 1.48 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
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.2.18"
setup(
name="funcserver",
version=version,
description="Simple and opiniated way to build APIs in Python",
long_description=long_description,
keywords="funcserver",
author="Deep Compute, LLC",
author_email="contact@deepcompute.com",
url="https://github.com/deep-compute/funcserver",
download_url="https://github.com/deep-compute/funcserver/tarball/%s" % version,
license="MIT License",
install_requires=[
"statsd==3.2.2",
"requests==2.20.0",
"tornado==5.0.1",
"msgpack-python==0.5.6",
"basescript==0.2.2",
],
package_dir={"funcserver": "funcserver"},
packages=find_packages("."),
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 2.7",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
],
)