From f99157217cbd7aa933b5830e4bd20fad73d71efe Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Thu, 14 Dec 2023 14:24:23 -0500 Subject: [PATCH 1/2] Revert "ci: temporarily disable Zenodo so we can get a release out" Cranko has been fixed up, so we can restore the Zenodo integration. This reverts commit 60d901b8ab316ef811f1712fa0639a6d4414ab7d. --- ci/azure-deployment.yml | 43 +++++++++++++++++++---------------------- ci/azure-sdist.yml | 13 +++++-------- 2 files changed, 25 insertions(+), 31 deletions(-) diff --git a/ci/azure-deployment.yml b/ci/azure-deployment.yml index 1273451..877a84b 100644 --- a/ci/azure-deployment.yml +++ b/ci/azure-deployment.yml @@ -83,26 +83,23 @@ jobs: env: PYPI_TOKEN: $(PYPI_TOKEN) - # 2023 Oct: temporarily disabling Zenodo; they have just updated their API and broken - # everything, and we want to ge a release out. - # - # - job: zenodo_publish - # pool: - # vmImage: ubuntu-latest - # variables: - # - group: Deployment Credentials - # - # steps: - # - template: azure-job-setup.yml - # parameters: - # setupCranko: true - # - # - bash: cranko zenodo upload-artifacts --metadata=ci/zenodo.json5 $BASH_WORKSPACE/sdist/*.tar.gz - # displayName: Upload source tarball - # env: - # ZENODO_TOKEN: $(ZENODO_TOKEN) - # - # - bash: cranko zenodo publish --metadata=ci/zenodo.json5 - # displayName: Publish to Zenodo - # env: - # ZENODO_TOKEN: $(ZENODO_TOKEN) + - job: zenodo_publish + pool: + vmImage: ubuntu-latest + variables: + - group: Deployment Credentials + + steps: + - template: azure-job-setup.yml + parameters: + setupCranko: true + + - bash: cranko zenodo upload-artifacts --metadata=ci/zenodo.json5 $BASH_WORKSPACE/sdist/*.tar.gz + displayName: Upload source tarball + env: + ZENODO_TOKEN: $(ZENODO_TOKEN) + + - bash: cranko zenodo publish --metadata=ci/zenodo.json5 + displayName: Publish to Zenodo + env: + ZENODO_TOKEN: $(ZENODO_TOKEN) diff --git a/ci/azure-sdist.yml b/ci/azure-sdist.yml index 3a8002c..d7802ab 100644 --- a/ci/azure-sdist.yml +++ b/ci/azure-sdist.yml @@ -29,14 +29,11 @@ jobs: - bash: cranko release-workflow apply-versions displayName: Apply Cranko versions - # 2023 Oct: temporarily disabling Zenodo; they have just updated their API and broken - # everything, and we want to ge a release out. - # - #- bash: cranko zenodo preregister --metadata=ci/zenodo.json5 wwt_data_formats wwt_data_formats/cli.py CHANGELOG.md - # displayName: "Preregister Zenodo DOI" - # ${{ if and(eq(variables['Build.SourceBranchName'], 'rc'), ne(variables['build.reason'], 'PullRequest')) }}: - # env: - # ZENODO_TOKEN: $(ZENODO_TOKEN) + - bash: cranko zenodo preregister --metadata=ci/zenodo.json5 wwt_data_formats wwt_data_formats/cli.py CHANGELOG.md + displayName: "Preregister Zenodo DOI" + ${{ if and(eq(variables['Build.SourceBranchName'], 'rc'), ne(variables['build.reason'], 'PullRequest')) }}: + env: + ZENODO_TOKEN: $(ZENODO_TOKEN) - bash: | set -xeuo pipefail From d4600ee0eebc737f89edbc3ee9203fa1780e33ac Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Thu, 14 Dec 2023 14:32:48 -0500 Subject: [PATCH 2/2] ci: update Ubuntu image versions --- ci/azure-build-and-test.yml | 8 ++++---- ci/azure-sdist.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ci/azure-build-and-test.yml b/ci/azure-build-and-test.yml index edc1ef5..92b3e1e 100644 --- a/ci/azure-build-and-test.yml +++ b/ci/azure-build-and-test.yml @@ -6,12 +6,12 @@ parameters: default: - name: linux_37 - vmImage: ubuntu-20.04 + vmImage: ubuntu-22.04 vars: PYTHON_SERIES: "3.7" - name: linux_38 - vmImage: ubuntu-20.04 + vmImage: ubuntu-22.04 vars: PYTHON_SERIES: "3.8" @@ -68,7 +68,7 @@ jobs: - job: coverage pool: - vmImage: ubuntu-20.04 + vmImage: ubuntu-latest steps: - template: azure-job-setup.yml parameters: @@ -97,7 +97,7 @@ jobs: - job: docs pool: - vmImage: ubuntu-20.04 + vmImage: ubuntu-latest steps: - template: azure-job-setup.yml parameters: diff --git a/ci/azure-sdist.yml b/ci/azure-sdist.yml index d7802ab..6c8ab4c 100644 --- a/ci/azure-sdist.yml +++ b/ci/azure-sdist.yml @@ -4,7 +4,7 @@ jobs: - job: sdist pool: - vmImage: ubuntu-20.04 + vmImage: ubuntu-latest # Need Zenodo credentials to generate DOIs during formal releases. Try not to # provide credentials otherwise, in case of malicious PRs. But note that such