/
setup.py
48 lines (41 loc) · 1.31 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
from setuptools import setup
from setuptools import Command
__version__ = '0.4.0'
long_description = file('README.markdown','r').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 versiontools
import subprocess
version = versiontools.format_version(__version__)
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='cli53',
version=__version__,
description='Command line script to administer the Amazon Route 53 DNS service',
long_description=long_description,
license='MIT',
author='Barnaby Gray',
author_email='barnaby@pickle.me.uk',
url='http://loads.pickle.me.uk/cli53/',
install_requires=['boto', 'argparse', 'dnspython'],
scripts=['scripts/cli53'],
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
"License :: OSI Approved :: MIT License",
],
cmdclass={
'tag': tag,
},
)