Update supported version (#60)
This commit is contained in:
Родитель
a53ceb9991
Коммит
f089faab2c
|
@ -3,4 +3,4 @@
|
|||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# --------------------------------------------------------------------------------------------
|
||||
|
||||
VERSION = "1.1.0"
|
||||
VERSION = "1.1.1"
|
||||
|
|
|
@ -13,9 +13,9 @@ from azure.batch_extensions import __version__ as batch_ext_version
|
|||
|
||||
|
||||
logger = get_logger(__name__)
|
||||
SUPPORTED_BATCH_VERSION = "4.1"
|
||||
SUPPORTED_BATCH_VERSION = "4.2"
|
||||
SUPPORTED_BMGMT_VERSION = "4.2"
|
||||
SUPPORTED_BATCH_EXT_VERSION = "1.1"
|
||||
SUPPORTED_BATCH_EXT_VERSION = "1.2"
|
||||
|
||||
|
||||
def confirm_version(current, supported, package):
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# --------------------------------------------------------------------------------------------
|
||||
|
||||
VERSION = "2.1.0"
|
||||
VERSION = "2.2.2"
|
||||
|
|
|
@ -6,11 +6,10 @@
|
|||
# --------------------------------------------------------------------------------------------
|
||||
|
||||
import os
|
||||
import re
|
||||
from codecs import open
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
VERSION = '2.2.1'
|
||||
|
||||
# The full list of classifiers is available at
|
||||
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
||||
CLASSIFIERS = [
|
||||
|
@ -29,6 +28,14 @@ CLASSIFIERS = [
|
|||
|
||||
DEPENDENCIES = []
|
||||
|
||||
# Version extraction inspired from 'requests'
|
||||
with open(os.path.join('azext_batch', 'version.py'), 'r') as fd:
|
||||
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]',
|
||||
fd.read(), re.MULTILINE).group(1)
|
||||
|
||||
if not version:
|
||||
raise RuntimeError('Cannot find version information')
|
||||
|
||||
with open('README.rst', 'r', encoding='utf-8') as f:
|
||||
README = f.read()
|
||||
with open('HISTORY.rst', 'r', encoding='utf-8') as f:
|
||||
|
@ -36,7 +43,7 @@ with open('HISTORY.rst', 'r', encoding='utf-8') as f:
|
|||
|
||||
setup(
|
||||
name='azure-batch-cli-extensions',
|
||||
version=VERSION,
|
||||
version=version,
|
||||
description='Additional commands for working with Azure Batch service',
|
||||
long_description=README + '\n\n' + HISTORY,
|
||||
license='MIT',
|
||||
|
|
|
@ -17,5 +17,5 @@ setuptools==30.4.0
|
|||
six==1.10.0
|
||||
tabulate==0.7.5
|
||||
vcrpy==1.10.3
|
||||
azure-cli==2.0.31
|
||||
azure-cli==2.0.32
|
||||
azure-storage-blob==1.1.0
|
|
@ -30,6 +30,9 @@ print('Root directory \'{}\'\n'.format(root_dir))
|
|||
# install general requirements and azure-cli
|
||||
exec_command('pip install -r requirements.txt')
|
||||
|
||||
# upgrade to latest azure-batch
|
||||
exec_command('pip install --upgrade azure-batch')
|
||||
|
||||
# install automation package
|
||||
exec_command('pip install -e ./scripts')
|
||||
|
||||
|
|
14
setup.py
14
setup.py
|
@ -5,12 +5,11 @@
|
|||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# --------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
import os
|
||||
import re
|
||||
from codecs import open
|
||||
from setuptools import setup
|
||||
|
||||
VERSION = '1.1.1'
|
||||
|
||||
# The full list of classifiers is available at
|
||||
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
||||
CLASSIFIERS = [
|
||||
|
@ -38,6 +37,13 @@ DEPENDENCIES_27 = {
|
|||
":python_version<'3.4'": ['pathlib>=1.0.1']
|
||||
}
|
||||
|
||||
# Version extraction inspired from 'requests'
|
||||
with open(os.path.join('azure/batch_extensions', 'version.py'), 'r') as fd:
|
||||
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]',
|
||||
fd.read(), re.MULTILINE).group(1)
|
||||
|
||||
if not version:
|
||||
raise RuntimeError('Cannot find version information')
|
||||
|
||||
with open('README.rst', 'r', encoding='utf-8') as f:
|
||||
README = f.read()
|
||||
|
@ -46,7 +52,7 @@ with open('HISTORY.rst', 'r', encoding='utf-8') as f:
|
|||
|
||||
setup(
|
||||
name='azure-batch-extensions',
|
||||
version=VERSION,
|
||||
version=version,
|
||||
description='Microsoft Azure Batch Extended Features',
|
||||
long_description=README + '\n\n' + HISTORY,
|
||||
license='MIT',
|
||||
|
|
Загрузка…
Ссылка в новой задаче