mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
F OpenNebula/infra#331: Mark pyone pre-releases (#4630)
Co-authored-by: Vlastimil Holer <vholer@opennebula.io>
This commit is contained in:
parent
7814f50ac7
commit
c62fe20ecf
@ -26,7 +26,7 @@ here = path.abspath(path.dirname(__file__))
|
||||
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
|
||||
long_description = f.read()
|
||||
|
||||
install_requires=[
|
||||
install_requires = [
|
||||
'lxml',
|
||||
'dicttoxml',
|
||||
'xmltodict',
|
||||
@ -40,9 +40,20 @@ install_requires=[
|
||||
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='5.11.80',
|
||||
version=pyone_version,
|
||||
description='Python Bindings for OpenNebula XML-RPC API',
|
||||
long_description=long_description,
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user