This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 21c40cd4cc Improve provider release process (#26748)
21c40cd4cc is described below
commit 21c40cd4cc7830bc17a4180d8dd0fa2cc4ed9cea
Author: Jarek Potiuk <[email protected]>
AuthorDate: Wed Sep 28 20:02:08 2022 +0200
Improve provider release process (#26748)
Found during September release:
* fix process steps to be copy&pasteable
* add -m to tag generation to account for signed/annotated tags
* added twine check to the CI workflow
---
.github/workflows/ci.yml | 4 ++++
dev/README_RELEASE_PROVIDER_PACKAGES.md | 3 ++-
dev/provider_packages/tag_providers.sh | 2 +-
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 357cadb04c..8229ddcbb0 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -861,6 +861,10 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
--use-airflow-version wheel --use-packages-from-dist
--package-format wheel
env:
SKIP_CONSTRAINTS: "${{
needs.build-info.outputs.upgrade-to-newer-dependencies }}"
+ - name: "Verify packages with twine"
+ run: |
+ pipx install twine
+ twine check dist/*.whl
- name: "Remove airflow package and replace providers with 2.2-compliant
versions"
run: |
rm -vf dist/apache_airflow-*.whl \
diff --git a/dev/README_RELEASE_PROVIDER_PACKAGES.md
b/dev/README_RELEASE_PROVIDER_PACKAGES.md
index 693f1d484f..503613714a 100644
--- a/dev/README_RELEASE_PROVIDER_PACKAGES.md
+++ b/dev/README_RELEASE_PROVIDER_PACKAGES.md
@@ -196,11 +196,12 @@ popd
```shell script
# First clone the repo if you do not have it
+cd ..
[ -d asf-dist ] || svn checkout --depth=immediates
https://dist.apache.org/repos/dist asf-dist
svn update --set-depth=infinity asf-dist/dev/airflow
# Create a new folder for the release.
-cd asf-dist/dev/providers
+cd asf-dist/dev/airflow/providers
# Remove previously released providers
rm -rf *
diff --git a/dev/provider_packages/tag_providers.sh
b/dev/provider_packages/tag_providers.sh
index 53c861182e..d06c7e10e6 100755
--- a/dev/provider_packages/tag_providers.sh
+++ b/dev/provider_packages/tag_providers.sh
@@ -32,7 +32,7 @@ do
if [[ ${file} =~ .*airflow_providers_(.*)-(.*)-py3.* ]]; then
provider="providers-${BASH_REMATCH[1]}"
tag="${provider//_/-}/${BASH_REMATCH[2]}"
- { git tag "${tag}" && tags+=("$tag") ; } || true
+ { git tag "${tag}" -m "Release $(date '+%Y-%m-%d') of providers" &&
tags+=("$tag") ; } || true
fi
done
if [[ -n "${tags:-}" && "${#tags}" -gt 0 ]]; then