Create tag in the local release checkout
This simulates the final tag within the CI build checkout, which
avoids the SCM PRETEND VERSION override
avoids needing to push a tag before a release test branch
Also means that a release can be safely tagged from a successful build.
@@ -44,6 +44,7 @@ stages:
vmImage: $(imageName)
steps:
+ - script: git tag $(TILEDBPY_VERSION)
- task: DownloadPipelineArtifact@2
displayName: 'Download libtiledb artifact'
inputs:
@@ -71,7 +72,7 @@ stages:
# Set the CIBW_ENVIRONMENT from bash in order to get forward slashes because somewhere in the
# cmd/cibw/python chain we end up losing the slashes entirely if we use a job-level variable.
MPATH=$(python -c 'import os; print(os.environ["TILEDB_INSTALL"].replace("\\","/"))')
- export CIBW_ENVIRONMENT="TILEDB_PATH=${MPATH} SETUPTOOLS_SCM_PRETEND_VERSION=${TILEDBPY_VERSION}"
+ export CIBW_ENVIRONMENT="TILEDB_PATH=${MPATH}"
echo "##vso[task.setvariable variable=CIBW_ENVIRONMENT]$CIBW_ENVIRONMENT"
displayName: "Set CIBW_ENVIRONMENT"
condition: succeeded()
@@ -135,6 +136,7 @@ stages:
vmImage: $(imageName)
steps:
+ - script: git tag $(TILEDBPY_VERSION)
- bash: |
docker build -f misc/pypi_linux/Dockerfile . -t wheel_builder
docker run -v `pwd`/wheelhouse:/wheels -t wheel_builder build.sh
