forked from pycontribs/pyrax
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·47 lines (43 loc) · 1.3 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
#!/usr/bin/env python
from setuptools import setup
import re
import sys
if sys.version < "2.2.3":
from distutils.dist import DistributionMetadata
DistributionMetadata.classifiers = None
DistributionMetadata.download_url = None
# Workaround for problems caused by this import
# It's either this or hardcoding the version.
#from pyrax.version import version
with open("pyrax/version.py", "rt") as vfile:
version_text = vfile.read()
vmatch = re.search(r'version ?= ?"(.+)"$', version_text)
version = vmatch.groups()[0]
testing_requires = ["mock"]
setup(
name="pyrax",
version=version,
description="Python language bindings for OpenStack Clouds.",
author="Rackspace",
author_email="[email protected]",
url="https://github.com/rackspace/pyrax",
keywords="pyrax rackspace cloud openstack",
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 2",
],
install_requires=[
"python-novaclient>=2.13.0",
"rackspace-novaclient",
"python-swiftclient>=1.5.0",
"httplib2",
"keyring",
"paste",
] + testing_requires,
packages=[
"pyrax",
"pyrax/cf_wrapper",
"pyrax/identity",
],
)