From 07d748b49253e37a4bc53c6fdbe5f2df0dda035a Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Mon, 2 Jan 2023 03:01:41 +0000 Subject: [PATCH] ci: fix building source packages Something was broken recently and installing from the package root doesn't work anymore. --- .github/workflows/packages-pool.yml | 9 ++++----- .github/workflows/packages-src.yml | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/packages-pool.yml b/.github/workflows/packages-pool.yml index e9624e7dd..d6ac6bd4d 100644 --- a/.github/workflows/packages-pool.yml +++ b/.github/workflows/packages-pool.yml @@ -25,14 +25,13 @@ jobs: python-version: 3.9 - name: Create the sdist packages - run: |- - python ${{ matrix.package }}/setup.py sdist -d `pwd`/dist/ + working-directory: ${{ matrix.package }} + run: python setup.py sdist -d ../dist if: ${{ matrix.format == 'sdist' }} - name: Create the wheel packages - run: |- - pip install wheel - python ${{ matrix.package }}/setup.py bdist_wheel -d `pwd`/dist/ + working-directory: ${{ matrix.package }} + run: pip wheel -w ../dist . if: ${{ matrix.format == 'wheel' }} - name: Install the Python pool package and test requirements diff --git a/.github/workflows/packages-src.yml b/.github/workflows/packages-src.yml index 1a9534f56..df8b029dd 100644 --- a/.github/workflows/packages-src.yml +++ b/.github/workflows/packages-src.yml @@ -27,14 +27,13 @@ jobs: python-version: 3.9 - name: Create the sdist packages - run: |- - python ${{ matrix.package }}/setup.py sdist -d `pwd`/dist/ + working-directory: ${{ matrix.package }} + run: python setup.py sdist -d ../dist if: ${{ matrix.format == 'sdist' }} - name: Create the wheel packages - run: |- - pip install wheel - python ${{ matrix.package }}/setup.py bdist_wheel -d `pwd`/dist/ + working-directory: ${{ matrix.package }} + run: pip wheel -w ../dist . if: ${{ matrix.format == 'wheel' }} - name: Install the Python package and test requirements -- 2.47.2