From ac1bdf0eeba1e918011b8f33e116bae0aff5f2f9 Mon Sep 17 00:00:00 2001 From: Paul Yang Date: Sat, 25 Jan 2025 10:13:43 -0800 Subject: [PATCH] Update Pypi publish workflow to use Python 3.9 (#1638) Got this error while trying to publish in the workflow: ``` ERROR InvalidDistribution: Invalid distribution metadata: license-expression introduced in metadata version 2.4, not 2.1 ``` Might be caused by something else, but fixing the Python version to rule it out. --- .github/actions/setup-python-env/action.yaml | 2 +- .github/workflows/cd-push-metricflow-to-pypi.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup-python-env/action.yaml b/.github/actions/setup-python-env/action.yaml index 5b0a2fb964..c7dd2f9dd6 100644 --- a/.github/actions/setup-python-env/action.yaml +++ b/.github/actions/setup-python-env/action.yaml @@ -5,7 +5,7 @@ inputs: python-version: description: "Version of Python to use for testing" required: false - default: "3.8" + default: "3.9" runs: using: "composite" diff --git a/.github/workflows/cd-push-metricflow-to-pypi.yaml b/.github/workflows/cd-push-metricflow-to-pypi.yaml index 076d78593d..5def7800ae 100644 --- a/.github/workflows/cd-push-metricflow-to-pypi.yaml +++ b/.github/workflows/cd-push-metricflow-to-pypi.yaml @@ -8,7 +8,7 @@ on: - "v[0-9]+.[0-9]+.[0-9]+*" env: - PYTHON_VERSION: "3.8" + PYTHON_VERSION: "3.9" jobs: pypi-publish: