From ae0f0a3cec0f89b318ad0a4941a2f58c77672caf Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Thu, 2 Jun 2016 11:23:52 -0700 Subject: [PATCH] msrest/msrestazure 0.4.0 (#1092) * msrest/msrestazure 0.4.0rc1 * msrest/msrestazure 0.4.0 * Add a build script --- .../Azure.Python/AzurePythonCodeGenerator.cs | 2 +- .../AzureServiceClientTemplateModel.cs | 2 +- .../Python/Python/PythonCodeGenerator.cs | 2 +- ClientRuntimes/Python/msrest/doc/conf.py | 4 ++-- ClientRuntimes/Python/msrest/msrest/version.py | 2 +- ClientRuntimes/Python/msrest/readme.rst | 13 +++++++++++++ ClientRuntimes/Python/msrest/setup.py | 2 +- ClientRuntimes/Python/msrest_build.sh | 15 +++++++++++++++ ClientRuntimes/Python/msrestazure/doc/conf.py | 4 ++-- .../Python/msrestazure/msrestazure/version.py | 2 +- ClientRuntimes/Python/msrestazure/readme.rst | 15 +++++++++++++++ ClientRuntimes/Python/msrestazure/setup.py | 4 ++-- 12 files changed, 55 insertions(+), 12 deletions(-) create mode 100644 ClientRuntimes/Python/msrest_build.sh diff --git a/AutoRest/Generators/Python/Azure.Python/AzurePythonCodeGenerator.cs b/AutoRest/Generators/Python/Azure.Python/AzurePythonCodeGenerator.cs index 400b4b6747..464cc1fe44 100644 --- a/AutoRest/Generators/Python/Azure.Python/AzurePythonCodeGenerator.cs +++ b/AutoRest/Generators/Python/Azure.Python/AzurePythonCodeGenerator.cs @@ -19,7 +19,7 @@ namespace Microsoft.Rest.Generator.Azure.Python { public class AzurePythonCodeGenerator : PythonCodeGenerator { - private const string ClientRuntimePackage = "msrestazure version 0.3.0"; + private const string ClientRuntimePackage = "msrestazure version 0.4.0"; // page extensions class dictionary. private IList pageModels; diff --git a/AutoRest/Generators/Python/Azure.Python/TemplateModels/AzureServiceClientTemplateModel.cs b/AutoRest/Generators/Python/Azure.Python/TemplateModels/AzureServiceClientTemplateModel.cs index 0a3b44b0e6..c43fa7afe5 100644 --- a/AutoRest/Generators/Python/Azure.Python/TemplateModels/AzureServiceClientTemplateModel.cs +++ b/AutoRest/Generators/Python/Azure.Python/TemplateModels/AzureServiceClientTemplateModel.cs @@ -97,7 +97,7 @@ public override string SetupRequires { get { - return "\"msrest>=0.3.0\", \"msrestazure>=0.3.0\""; + return "\"msrest>=0.4.0\", \"msrestazure>=0.4.0\""; } } diff --git a/AutoRest/Generators/Python/Python/PythonCodeGenerator.cs b/AutoRest/Generators/Python/Python/PythonCodeGenerator.cs index 8131b8cba6..3eea27500c 100644 --- a/AutoRest/Generators/Python/Python/PythonCodeGenerator.cs +++ b/AutoRest/Generators/Python/Python/PythonCodeGenerator.cs @@ -16,7 +16,7 @@ namespace Microsoft.Rest.Generator.Python { public class PythonCodeGenerator : CodeGenerator { - private const string ClientRuntimePackage = "msrest version 0.3.0"; + private const string ClientRuntimePackage = "msrest version 0.4.0"; public PythonCodeGenerator(Settings settings) : base(settings) { diff --git a/ClientRuntimes/Python/msrest/doc/conf.py b/ClientRuntimes/Python/msrest/doc/conf.py index 169d6053b5..04f96a303f 100644 --- a/ClientRuntimes/Python/msrest/doc/conf.py +++ b/ClientRuntimes/Python/msrest/doc/conf.py @@ -57,9 +57,9 @@ # built documents. # # The short X.Y version. -version = '0.3.0' +version = '0.4.0' # The full version, including alpha/beta/rc tags. -release = '0.3.0' +release = '0.4.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/ClientRuntimes/Python/msrest/msrest/version.py b/ClientRuntimes/Python/msrest/msrest/version.py index 527b2a717c..b53eff34fb 100644 --- a/ClientRuntimes/Python/msrest/msrest/version.py +++ b/ClientRuntimes/Python/msrest/msrest/version.py @@ -25,4 +25,4 @@ # -------------------------------------------------------------------------- -msrest_version = "0.3.0" +msrest_version = "0.4.0" diff --git a/ClientRuntimes/Python/msrest/readme.rst b/ClientRuntimes/Python/msrest/readme.rst index b65e1bf5b1..3ddf58e590 100644 --- a/ClientRuntimes/Python/msrest/readme.rst +++ b/ClientRuntimes/Python/msrest/readme.rst @@ -15,6 +15,19 @@ To install: Release History --------------- +2016-05-25 Version 0.4.0 +++++++++++++++++++++++++ + +This version has no bug fixes, but implements new features of Autorest: +- Base64 url type +- unixtime type +- x-ms-enum modelAsString flag + +**Behaviour changes** + +- Add Platform information in UserAgent +- Needs Autorest > 0.17.0 Nightly 20160525 + 2016-04-26 Version 0.3.0 ++++++++++++++++++++++++ diff --git a/ClientRuntimes/Python/msrest/setup.py b/ClientRuntimes/Python/msrest/setup.py index 02bdd49b71..db7fd3f5e3 100644 --- a/ClientRuntimes/Python/msrest/setup.py +++ b/ClientRuntimes/Python/msrest/setup.py @@ -28,7 +28,7 @@ setup( name='msrest', - version='0.3.0', + version='0.4.0', author='Microsoft Corporation', packages=['msrest'], url=("https://github.com/xingwu1/autorest/tree/python/" diff --git a/ClientRuntimes/Python/msrest_build.sh b/ClientRuntimes/Python/msrest_build.sh new file mode 100644 index 0000000000..36564a7ad4 --- /dev/null +++ b/ClientRuntimes/Python/msrest_build.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +pushd msrest +rm -rf dist +python3 ./setup.py sdist --formats=zip +python3 ./setup.py bdist_wheel +python2 ./setup.py bdist_wheel +popd + +pushd msrestazure +rm -rf dist +python3 ./setup.py sdist --formats=zip +python3 ./setup.py bdist_wheel +python2 ./setup.py bdist_wheel +popd diff --git a/ClientRuntimes/Python/msrestazure/doc/conf.py b/ClientRuntimes/Python/msrestazure/doc/conf.py index 1225f72e6e..06750e9eeb 100644 --- a/ClientRuntimes/Python/msrestazure/doc/conf.py +++ b/ClientRuntimes/Python/msrestazure/doc/conf.py @@ -58,9 +58,9 @@ # built documents. # # The short X.Y version. -version = '0.3.0' +version = '0.4.0' # The full version, including alpha/beta/rc tags. -release = '0.3.0' +release = '0.4.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/ClientRuntimes/Python/msrestazure/msrestazure/version.py b/ClientRuntimes/Python/msrestazure/msrestazure/version.py index edb859f0a8..e197321775 100644 --- a/ClientRuntimes/Python/msrestazure/msrestazure/version.py +++ b/ClientRuntimes/Python/msrestazure/msrestazure/version.py @@ -24,4 +24,4 @@ # # -------------------------------------------------------------------------- -msrestazure_version = "0.3.0" +msrestazure_version = "0.4.0" diff --git a/ClientRuntimes/Python/msrestazure/readme.rst b/ClientRuntimes/Python/msrestazure/readme.rst index 7ba256b12c..a45eb88576 100644 --- a/ClientRuntimes/Python/msrestazure/readme.rst +++ b/ClientRuntimes/Python/msrestazure/readme.rst @@ -15,6 +15,21 @@ To install: Release History --------------- +2016-05-25 Version 0.4.0 +++++++++++++++++++++++++ + +Update msrest dependency to 0.4.0 + +**Bugfixes** + +- Fix for several AAD issues https://github.com/Azure/autorest/issues/1055 +- Fix for LRO PATCH bug and refactor https://github.com/Azure/autorest/issues/993 + +**Behaviour changes** + +- Needs Autorest > 0.17.0 Nightly 20160525 + + 2016-04-26 Version 0.3.0 ++++++++++++++++++++++++ diff --git a/ClientRuntimes/Python/msrestazure/setup.py b/ClientRuntimes/Python/msrestazure/setup.py index 7778b0185d..7e8e92b2d7 100644 --- a/ClientRuntimes/Python/msrestazure/setup.py +++ b/ClientRuntimes/Python/msrestazure/setup.py @@ -28,7 +28,7 @@ setup( name='msrestazure', - version='0.3.0', + version='0.4.0', author='Microsoft Corporation', packages=['msrestazure'], url=('https://github.com/xingwu1/autorest/tree/python/' @@ -49,5 +49,5 @@ 'License :: OSI Approved :: MIT License', 'Topic :: Software Development'], install_requires=[ - "msrest>=0.3.0"], + "msrest>=0.4.0"], )