-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
46 lines (39 loc) · 1.21 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
from setuptools import setup
from setuptools import Command
__version__ = '0.1.4'
long_description = file('README.rst').read()
class tag(Command):
"""Tag git release."""
description = __doc__
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import subprocess
ret = subprocess.call(['git', 'tag', '-a', __version__, '-m', __version__])
if ret:
raise SystemExit("git tag failed")
ret = subprocess.call(['git', 'push', '--tags'])
if ret:
raise SystemExit("git push --tags failed")
setup(name='cloudily',
version=__version__,
description='Command line tool to visualize your EC2 infrastructure',
long_description=long_description,
license='MIT',
author='Barnaby Gray',
author_email='[email protected]',
url='http://loads.pickle.me.uk/cloudily/',
install_requires=['boto', 'paramiko'],
scripts=['scripts/cloudily'],
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"License :: OSI Approved :: MIT License",
],
cmdclass={
'tag': tag,
},
)