From 31cb293cebd23da308a48e37c39442f1323c4471 Mon Sep 17 00:00:00 2001 From: Jan Ittner Date: Thu, 3 Mar 2022 11:44:02 +0100 Subject: [PATCH 1/2] BUILD: update GitHub connection --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0d48b5af..e9cb6eac 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -525,7 +525,7 @@ stages: ) ) inputs: - gitHubConnection: github_release + gitHubConnection: github-release repositoryName: $(Build.Repository.Name) action: create target: $(Build.SourceVersion) From 43dc6d4ad2abd10d68072c5f2622770e80437b0b Mon Sep 17 00:00:00 2001 From: Jan Ittner Date: Thu, 3 Mar 2022 13:29:08 +0100 Subject: [PATCH 2/2] FIX: passing package path to get_package_version() in Azure pipeline --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e9cb6eac..01ab9793 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -465,9 +465,9 @@ stages: set -eux echo "Getting version" pip install packaging~=20.9 - cd $(System.DefaultWorkingDirectory)/$(project_root)/src + package_path=$(System.DefaultWorkingDirectory)/$(project_root)/src/$(project_name) export PYTHONPATH=$(System.DefaultWorkingDirectory)/pytools/sphinx/base - version=$(python -c "import make_base; print(make_base.get_package_version())") + version=$(python -c "import make_util; print(make_util.get_package_version(package_path='$package_path'))") echo "Current version: $version" echo "Detecting pre-release ('dev' or 'rc' in version)" prerelease=False