Skip to content

Commit

Permalink
FIX: passing package path to get_package_version() in Azure pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
j-ittner committed Mar 3, 2022
1 parent 31cb293 commit 43dc6d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 43dc6d4

Please sign in to comment.