This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v2-8-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit a4b27b8aaf76f1329b8834b781b862af5260a5a6
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.
    
    (cherry picked from commit a15a3274af87172c395a588ad6fdea3c88284e13)
---
 .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 8880c06e68..04141ac941 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -874,7 +874,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
@@ -934,7 +936,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: >

Reply via email to