From b0b18c578cc416d7a62afa54452a16724a0f5fbd Mon Sep 17 00:00:00 2001 From: Felix Dangel Date: Tue, 2 Jul 2024 15:22:46 -0400 Subject: [PATCH] [FIX] Explicitly install `wheel` Magically seems to fix the import error of `packaging` --- .github/workflows/lint-black.yaml | 9 +++------ .github/workflows/lint-darglint.yaml | 3 +-- .github/workflows/lint-flake8.yaml | 3 +-- .github/workflows/lint-isort.yaml | 3 +-- .github/workflows/lint-pydocstyle.yaml | 3 +-- .github/workflows/python-publish.yml | 2 +- .github/workflows/test.yaml | 3 +-- 7 files changed, 9 insertions(+), 17 deletions(-) diff --git a/.github/workflows/lint-black.yaml b/.github/workflows/lint-black.yaml index d9230b8..063b982 100644 --- a/.github/workflows/lint-black.yaml +++ b/.github/workflows/lint-black.yaml @@ -14,16 +14,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - name: Set up Python 3.10 + - name: Set up Python 3.8 uses: actions/setup-python@v1 with: - python-version: '3.10' + python-version: 3.8 - name: Install dependencies run: | - python -m pip install --upgrade pip - python -m pip install --upgrade wheel - python -m pip install --upgrade packaging - python -m pip show packaging + python -m pip install --upgrade pip wheel make install-lint - name: Run black run: | diff --git a/.github/workflows/lint-darglint.yaml b/.github/workflows/lint-darglint.yaml index 5135286..600e191 100644 --- a/.github/workflows/lint-darglint.yaml +++ b/.github/workflows/lint-darglint.yaml @@ -20,8 +20,7 @@ jobs: python-version: 3.8 - name: Install dependencies run: | - python -m pip install --upgrade pip - python -m pip install packaging + python -m pip install --upgrade pip wheel make install-lint - name: Run darglint run: | diff --git a/.github/workflows/lint-flake8.yaml b/.github/workflows/lint-flake8.yaml index 43ecafd..0c95cfa 100644 --- a/.github/workflows/lint-flake8.yaml +++ b/.github/workflows/lint-flake8.yaml @@ -19,8 +19,7 @@ jobs: python-version: 3.8 - name: Install dependencies run: | - python -m pip install --upgrade pip - python -m pip install packaging + python -m pip install --upgrade pip wheel make install-lint - name: Run flake8 run: | diff --git a/.github/workflows/lint-isort.yaml b/.github/workflows/lint-isort.yaml index 0e7b54b..59e567c 100644 --- a/.github/workflows/lint-isort.yaml +++ b/.github/workflows/lint-isort.yaml @@ -20,8 +20,7 @@ jobs: python-version: 3.8 - name: Install dependencies run: | - python -m pip install --upgrade pip - python -m pip install packaging + python -m pip install --upgrade pip wheel make install-lint - name: Run isort run: | diff --git a/.github/workflows/lint-pydocstyle.yaml b/.github/workflows/lint-pydocstyle.yaml index cc13ada..f4eba33 100644 --- a/.github/workflows/lint-pydocstyle.yaml +++ b/.github/workflows/lint-pydocstyle.yaml @@ -21,8 +21,7 @@ jobs: python-version: 3.8 - name: Install dependencies run: | - python -m pip install --upgrade pip - python -m pip install packaging + python -m pip install --upgrade pip wheel make install-lint - name: Run pydocstyle run: | diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 5389d3c..6ac32ac 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -20,7 +20,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install setuptools wheel twine packaging + python -m pip install setuptools wheel twine - name: Build and publish env: TWINE_USERNAME: __token__ diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4425b82..9524c04 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -25,8 +25,7 @@ jobs: python-version: "${{ matrix.python-version }}" - name: Install Dependencies run: | - python -m pip install --upgrade pip - python -m pip install packaging + python -m pip install --upgrade pip wheel make install-test - name: Run test if: contains('refs/heads/master refs/heads/development', github.ref)