forked from tobych/python-clouddns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·55 lines (50 loc) · 1.7 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
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
__author__ = "Chmouel Boudjnah <[email protected]>"
import os
from setuptools import setup, find_packages
NAME = "python-clouddns"
GITHUB_URL = "https://github.com/chmouel/%s" % (NAME)
DESCRIPTION = "Python interface to Rackspace Cloud DNS "
VERSION = "0.0.0"
def read(fname):
full_path = os.path.join(os.path.dirname(__file__), fname)
if os.path.exists(fname):
return open(full_path).read()
else:
return ""
try:
from clouddns.consts import VERSION
except ImportError:
for line in read('clouddns/consts.py').split('\n'):
if line.startswith('VERSION'):
VERSION = \
line.split('=')[1].replace('"', '').replace("'", '').strip()
requirements = []
setup(name=NAME,
version=VERSION,
download_url="%s/zipball/%s" % (GITHUB_URL, VERSION),
description=DESCRIPTION,
install_requires=requirements,
author='Chmouel Boudjnah',
author_email='[email protected]',
url=GITHUB_URL,
long_description=read('README.rst'),
license='MIT',
include_package_data=True,
zip_safe=False,
packages=find_packages(exclude=['tests', 'debian']),
tests_require=["nose"],
test_suite="nose.collector",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Distributed Computing',
'Topic :: Utilities',
],
)