From 8170a67d6f159ec212848ac814a865ac3a65473c Mon Sep 17 00:00:00 2001 From: scbedd <45376673+scbedd@users.noreply.github.com> Date: Wed, 16 Sep 2020 12:10:30 -0700 Subject: [PATCH 1/3] make the wheel retrieval a little bit more forgiving --- scripts/devops_tasks/common_tasks.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/scripts/devops_tasks/common_tasks.py b/scripts/devops_tasks/common_tasks.py index 5c3ed4ca9fe0..6a9c2eabd014 100644 --- a/scripts/devops_tasks/common_tasks.py +++ b/scripts/devops_tasks/common_tasks.py @@ -27,6 +27,7 @@ # this assumes the presence of "packaging" from packaging.specifiers import SpecifierSet from packaging.version import Version +from packaging.version import parse DEV_REQ_FILE = "dev_requirements.txt" @@ -340,13 +341,15 @@ def find_whl(package_name, version, whl_directory): logging.error("Whl directory is incorrect") exit(1) - logging.info("Searching whl for package {}".format(package_name)) - whl_name = "{0}-{1}*.whl".format(package_name.replace("-", "_"), version) + parsed_version = parse(version) + + logging.info("Searching whl for package {0}-{1}".format(package_name, parsed_version.base_version)) + whl_name = "{0}-{1}*.whl".format(package_name.replace("-", "_"), parsed_version.base_version) paths = glob.glob(os.path.join(whl_directory, whl_name)) if not paths: logging.error( - "whl is not found in whl directory {0} for package {1}".format( - whl_directory, package_name + "whl is not found in whl directory {0} for package {1}-{2}".format( + whl_directory, package_name, parsed_version.base_version ) ) exit(1) From 16d9330d71110d36eaf3cb7180bbedcd4a9f17bd Mon Sep 17 00:00:00 2001 From: scbedd <45376673+scbedd@users.noreply.github.com> Date: Wed, 16 Sep 2020 15:35:21 -0700 Subject: [PATCH 2/3] add 1.0.0b1 to the omission --- scripts/devops_tasks/git_helper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/devops_tasks/git_helper.py b/scripts/devops_tasks/git_helper.py index 7a613a6f0fa9..126bbf14f186 100644 --- a/scripts/devops_tasks/git_helper.py +++ b/scripts/devops_tasks/git_helper.py @@ -23,6 +23,7 @@ 'azure-cosmos': '3.2.0', 'azure-servicebus': '0.50.3', 'azure-eventgrid': '1.3.0', + 'azure-schemaregistry-avroserializer': '1.0.0' } # This method identifies release tag for latest or oldest released version of a given package From fae62f59d7f329f92335f4d11412fe21562c9de3 Mon Sep 17 00:00:00 2001 From: scbedd <45376673+scbedd@users.noreply.github.com> Date: Wed, 16 Sep 2020 15:38:00 -0700 Subject: [PATCH 3/3] update version exclusion --- scripts/devops_tasks/git_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/devops_tasks/git_helper.py b/scripts/devops_tasks/git_helper.py index 126bbf14f186..f1aa54472a52 100644 --- a/scripts/devops_tasks/git_helper.py +++ b/scripts/devops_tasks/git_helper.py @@ -23,7 +23,7 @@ 'azure-cosmos': '3.2.0', 'azure-servicebus': '0.50.3', 'azure-eventgrid': '1.3.0', - 'azure-schemaregistry-avroserializer': '1.0.0' + 'azure-schemaregistry-avroserializer': '1.0.0b1' } # This method identifies release tag for latest or oldest released version of a given package