forked from python-oca/python-oca
-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
42 lines (36 loc) · 1.33 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
# -*- coding: UTF-8 -*-
from setuptools import setup
import setuptools
import os
import sys
__version__ = '4.15.2'
# borrowed from Pylons project
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
except IOError:
README = CHANGES = ''
EXTRAS_REQUIRE = {}
INSTALL_REQUIRES = []
if int(setuptools.__version__.split(".", 1)[0]) < 18:
if sys.version_info[0:2] < (3, 0):
INSTALL_REQUIRES.append("future")
else:
EXTRAS_REQUIRE[":python_version<'3.0'"] = ['future']
setup(name='oca',
version=__version__,
description='Python Bindings for XMLRPC OpenNebula Cloud API',
long_description=README + '\n\n' + CHANGES,
test_suite='nose.collector',
classifiers=['Development Status :: 3 - Alpha',
'License :: OSI Approved :: Apache Software License',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent'],
keywords='opennebula cloud xmlrpc',
author=u'Łukasz Oleś, Matthias Schmitz, Michael Schmidt',
url='https://github.com/python-oca/python-oca',
license='Apache License 2.0',
extras_require=EXTRAS_REQUIRE,
install_requires=INSTALL_REQUIRES,
packages=['oca'])