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 6a6648c commit 6f7708a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ jobs:
matrix:
arch: [win_amd64]
pyver: [cp38, cp39, cp310, cp311, cp312, cp313]
package_name: [psycopg2, psycopg2-binary]

defaults:
run:
Expand Down Expand Up @@ -226,9 +227,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 All @@ -252,7 +255,7 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: windows-${{matrix.pyver}}-${{matrix.arch}}
name: windows-${{ matrix.package_name }}-${{matrix.pyver}}-${{matrix.arch}}
path: ./wheelhouse/*.whl

# }}}
Expand Down

0 comments on commit 6f7708a

Please sign in to comment.