From dbe40151e4f554a277b83209cee42ca6206f0dae Mon Sep 17 00:00:00 2001 From: Sergey Serebryakov Date: Thu, 20 Jun 2024 16:35:21 -0700 Subject: [PATCH] Forcing pip to 24.0 version in GitHub workdflows. (#361) Latest pip (`24.1`, released on 06/20/2024) does not install `omegaconf==2.1.0` due to non-standard metadata: ``` DEPRECATION: omegaconf 2.1.0 has a non-standard dependency specifier PyYAML>=5.1.*. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of omegaconf or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063 ``` GitHub workflows fail due to this reason. Temporarily, I have updated workflow files to use pip 24.0 until this is fixed. The following files are modified - _ci.yml_, _runner-publish.yml_, _docs-site.yml_ and _python-publish.yml_. --- .github/workflows/ci.yml | 4 +++- .github/workflows/docs-site.yml | 4 +++- .github/workflows/python-publish.yml | 4 +++- .github/workflows/runner-publish.yml | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2df289a..3f4a0b4f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,9 @@ jobs: python-version: 3.8.5 - name: Install Python dependencies run: | - python -m pip install --upgrade pip + # FIX sergey https://github.com/mlcommons/mlcube/issues/360 + # python -m pip install --upgrade pip + python -m pip install pip==24.0 pip install setuptools wheel pip install -r ./requirements-test.txt - name: Install MLCube diff --git a/.github/workflows/docs-site.yml b/.github/workflows/docs-site.yml index b4897cda..7b74bbab 100644 --- a/.github/workflows/docs-site.yml +++ b/.github/workflows/docs-site.yml @@ -20,7 +20,9 @@ jobs: python-version: '3.8' - name: Install Python dependencies run: | - python -m pip install --upgrade pip + # FIX sergey https://github.com/mlcommons/mlcube/issues/360 + # python -m pip install --upgrade pip + python -m pip install pip==24.0 pip install -r docs/requirements.txt - name: Build Docs working-directory: './' diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index a3eaaccd..bc516cc9 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -20,7 +20,9 @@ jobs: python-version: '3.x' - name: Install dependencies run: | - python -m pip install --upgrade pip + # FIX sergey https://github.com/mlcommons/mlcube/issues/360 + # python -m pip install --upgrade pip + python -m pip install pip==24.0 pip install setuptools wheel twine - name: Build distribution run: | diff --git a/.github/workflows/runner-publish.yml b/.github/workflows/runner-publish.yml index cada583b..be21bc37 100644 --- a/.github/workflows/runner-publish.yml +++ b/.github/workflows/runner-publish.yml @@ -20,7 +20,9 @@ jobs: python-version: '3.x' - name: Install dependencies run: | - python -m pip install --upgrade pip + # FIX sergey https://github.com/mlcommons/mlcube/issues/360 + # python -m pip install --upgrade pip + python -m pip install pip==24.0 pip install setuptools wheel twine - name: Build distribution run: |