-
Notifications
You must be signed in to change notification settings - Fork 19
/
setup.py
61 lines (55 loc) · 1.88 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
61
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
__author__ = "Chmouel Boudjnah <[email protected]>"
import os
from setuptools import setup, find_packages
#import cloudlb.consts
NAME = "python-cloudlb"
GITHUB_URL = "https://github.com/rackspace/%s" % (NAME)
DESCRIPTION = "Python interface to Rackspace Load Balancer" + \
" as a Service product"
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 cloudlb.consts import VERSION
except ImportError:
VERSION="0.0.0"
for line in read('cloudlb/consts.py').split('\n'):
if line.startswith('VERSION'):
VERSION = line.split('=')[1].replace('"', '').replace("'", '').strip()
requirements = ['httplib2']
setup(name=NAME,
# requires=['httplib2',],
# version=0.1,
# download_url="%s/zipball/%s" % (GITHUB_URL, '0.1'),
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,
scripts=['bin/cloudlb'],
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',
],
)