You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2024/02/14 10:07:25 UTC

(airflow) branch main updated: Uninstall twine before installing it in CI (#37415)

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 a15a3274af Uninstall twine before installing it in CI (#37415)
a15a3274af is described below

commit a15a3274af87172c395a588ad6fdea3c88284e13
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Wed Feb 14 11:07:18 2024 +0100

    Uninstall twine before installing it in CI (#37415)
    
    Since we are using different Python versions for pipx now, it can
    be that twine is not usable as it was installed with different
    python version. Uninstalling twine before installing should help.
---
 .github/workflows/ci.yml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index b3ab00bf17..7ea2a41038 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -871,7 +871,9 @@ jobs:
       - name: "Prepare airflow package: wheel"
         run: breeze release-management prepare-airflow-package --version-suffix-for-pypi dev0
       - name: "Verify wheel packages with twine"
-        run: pipx install twine --force && twine check dist/*.whl
+        run: |
+          pipx uninstall twine || true
+          pipx install twine && twine check dist/*.whl
       - name: "Test providers issue generation automatically"
         run: >
           breeze release-management generate-issue-content-providers
@@ -931,7 +933,9 @@ jobs:
           breeze release-management prepare-airflow-package
           --version-suffix-for-pypi dev0 --package-format sdist
       - name: "Verify sdist packages with twine"
-        run: pipx install twine --force && twine check dist/*.tar.gz
+        run: |
+          pipx uninstall twine || true
+          pipx install twine && twine check dist/*.whl
       - name: "Generate source constraints from CI image"
         shell: bash
         run: >