From: Daniele Varrazzo Date: Mon, 2 Jan 2023 03:01:41 +0000 (+0000) Subject: ci: fix building source packages X-Git-Tag: pool-3.2.0~144^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07d748b49253e37a4bc53c6fdbe5f2df0dda035a;p=thirdparty%2Fpsycopg.git ci: fix building source packages Something was broken recently and installing from the package root doesn't work anymore. --- 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