-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
61 lines (52 loc) · 1.54 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
60
#!/usr/bin/env python
# coding: utf-8
import os
thisdir = os.path.abspath(os.path.dirname(__file__))
projName = 'swarmy'
from setuptools import setup, find_packages
version = open(os.path.join(thisdir, 'version.txt'), 'rb').read().strip()
#Write out the version to the _version.py file
with open(os.path.join(thisdir, projName, '_version.py'), 'wt') as out:
out.write('version="%s"' % version)
def get_long_desc():
root_dir = os.path.dirname(__file__)
if not root_dir:
root_dir = '.'
return open(os.path.join(root_dir, 'README.md')).read()
testing_extras = []
setup(
name=projName,
version=version,
description="AWS Autoscaling and Metadata utilities",
long_description=get_long_desc(),
url='https://github.com/Crunch-io/swarmy',
download_url='https://github.com/Crunch-io/crunch-lib/archive/master.zip',
classifiers=[
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
],
author=u'Crunch.io',
author_email='[email protected]',
license='MIT',
install_requires=[
'awscli',
'boto',
'docopt',
],
packages=find_packages(),
#namespace_packages=['swarmy.extras'],
include_package_data=True,
#tests_require=testing_extras,
package_data={
'swarmy': ['*.json', '*.csv']
},
zip_safe=True,
extras_require={
'testing': testing_extras,
},
entry_points={
'console_scripts': [
"dynamic_hostname = swarmy.dynamic_hostname:main",
]
},
)