]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
ci: fix building source packages
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 2 Jan 2023 03:01:41 +0000 (03:01 +0000)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 2 Jan 2023 03:01:41 +0000 (03:01 +0000)
Something was broken recently and installing from the package root
doesn't work anymore.

.github/workflows/packages-pool.yml
.github/workflows/packages-src.yml

index e9624e7dd4909a7a8988b41d01cc9a8ade661c77..d6ac6bd4d3b6df223fad47fc84e7a903a8749036 100644 (file)
@@ -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
index 1a9534f56dc5fd378db4609f09a614dd92c08e55..df8b029dd3d80c033d18861c2d9fce82f180d6f5 100644 (file)
@@ -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