Files
one/src/oca/python/setup.py
T
2020-04-30 19:26:01 +02:00

89 lines
2.4 KiB
Python

# Copyright 2018 www.privaz.io Valletech AB
# Copyright 2002-2020, OpenNebula Project, OpenNebula Systems
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
import sys
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
install_requires = [
'lxml',
'dicttoxml',
'xmltodict',
'six',
'aenum',
'tblib',
'requests'
]
# include future in python2
if sys.version_info[0] < 3:
install_requires.append('future')
version = '5.11.80'
# mark pre-release
ver_min = int(version.split('.')[-1])
if ver_min >= 90:
pyone_version = version + 'rc1'
elif ver_min >= 80:
pyone_version = version + 'b1'
else:
pyone_version = version
setup(
name='pyone',
version=pyone_version,
description='Python Bindings for OpenNebula XML-RPC API',
long_description=long_description,
# The project's main homepage.
url='http://opennebula.io',
# Author details
author='Rafael del Valle',
author_email='rvalle@privaz.io',
# Choose your license
license='http://www.apache.org/licenses/LICENSE-2.0',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6'
],
keywords='cloud opennebula xmlrpc bindings',
packages=find_packages(),
install_requires=install_requires,
extras_require={
'dev': ['check-manifest'],
'test': ['coverage'],
},
test_suite="tests"
)