Skip to content

Commit

Permalink
ci(windows): create the psycopg2-binary package in Github
Browse files Browse the repository at this point in the history
  • Loading branch information
dvarrazzo committed Jan 4, 2025
1 parent 3c84e77 commit 24a63fe
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ jobs:
matrix:
arch: [win_amd64]
pyver: [cp38, cp39, cp310, cp311, cp312, cp313]
package_name: [psycopg2, psycopg2-binary]

defaults:
run:
Expand Down Expand Up @@ -223,9 +224,11 @@ jobs:
core.addPath(path.join(process.env.VCPKG_INSTALLATION_ROOT, 'installed/x64-windows-release/lib'));
core.addPath(path.join(process.env.VCPKG_INSTALLATION_ROOT, 'installed/x64-windows-release/bin'));
# TODO: patch to psycopg2-binary
# - name: Create the binary package source tree
# run: python3 ./tools/build/copy_to_binary.py
- name: Create the binary package source tree
run: >-
sed -i 's/^setup(name="psycopg2"/setup(name="${{matrix.package_name}}"/'
setup.py
if: ${{ matrix.package_name != 'psycopg2' }}

- name: Build wheels
uses: pypa/[email protected]
Expand Down

0 comments on commit 24a63fe

Please sign in to comment.