forked from themartorana/python-cloudlb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·55 lines (51 loc) · 1.75 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 <chmouel@chmouel.com>"
import os
from setuptools import setup, find_packages
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.4.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,
version=VERSION,
download_url="%s/zipball/%s" % (GITHUB_URL, VERSION),
description=DESCRIPTION,
install_requires=requirements,
author='Chmouel Boudjnah',
author_email='chmouel@chmouel.com',
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',
],
)