key: libpq-${{ matrix.platform }}-${{ matrix.arch }}-${{ env.LIBPQ_VERSION }}-${{ env.OPENSSL_VERSION }}
- name: Create the binary package source tree
- run: python3 ./tools/build/copy_to_binary.py
+ run: python3 ./tools/ci/copy_to_binary.py
- name: Build wheels
uses: pypa/cibuildwheel@v2.22.0
CIBW_MANYLINUX_PPC64LE_IMAGE: manylinux2014
CIBW_BUILD: ${{matrix.pyver}}-${{matrix.platform}}_${{matrix.arch}}
CIBW_ARCHS_LINUX: auto aarch64 ppc64le
- CIBW_BEFORE_ALL_LINUX: ./tools/build/wheel_linux_before_all.sh
+ CIBW_BEFORE_ALL_LINUX: ./tools/ci/wheel_linux_before_all.sh
CIBW_REPAIR_WHEEL_COMMAND: >-
- ./tools/build/strip_wheel.sh {wheel}
+ ./tools/ci/strip_wheel.sh {wheel}
&& auditwheel repair -w {dest_dir} {wheel}
CIBW_TEST_REQUIRES: ./psycopg[test] ./psycopg_pool
CIBW_TEST_COMMAND: >-
key: libpq-${{ env.LIBPQ_VERSION }}-macos-${{ matrix.arch }}-${{ env.OPENSSL_VERSION }}
- name: Create the binary package source tree
- run: python3 ./tools/build/copy_to_binary.py
+ run: python3 ./tools/ci/copy_to_binary.py
- name: Build wheels
uses: pypa/cibuildwheel@v2.22.0
CIBW_BUILD: ${{matrix.pyver}}-macosx_${{matrix.arch}}
CIBW_ARCHS_MACOS: ${{matrix.arch}}
MACOSX_ARCHITECTURE: ${{matrix.arch}}
- CIBW_BEFORE_ALL_MACOS: ./tools/build/wheel_macos_before_all.sh
+ CIBW_BEFORE_ALL_MACOS: ./tools/ci/wheel_macos_before_all.sh
CIBW_TEST_REQUIRES: ./psycopg[test] ./psycopg_pool
CIBW_TEST_COMMAND: >-
pytest {project}/tests -m 'not slow and not flakey' --color yes
id: libdir
- name: Create the binary package source tree
- run: python3 ./tools/build/copy_to_binary.py
+ run: python3 ./tools/ci/copy_to_binary.py
- name: Build wheels
uses: pypa/cibuildwheel@v2.22.0
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" # cache vcpkg
CIBW_BUILD: ${{matrix.pyver}}-${{matrix.arch}}
CIBW_ARCHS_WINDOWS: AMD64 x86
- CIBW_BEFORE_BUILD_WINDOWS: '.\tools\build\wheel_win32_before_build.bat'
+ CIBW_BEFORE_BUILD_WINDOWS: '.\tools\ci\wheel_win32_before_build.bat'
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: >-
delvewheel repair -w {dest_dir}
--add-path="${{ steps.libdir.outputs.EXTRA_LIB_DIR }}"
-c max_prepared_transactions=10
- name: Install the wanted libpq version
- run: sudo ./tools/build/ci_install_libpq.sh ${{ matrix.libpq }}
+ run: sudo ./tools/ci/ci_install_libpq.sh ${{ matrix.libpq }}
- name: Include psycopg-c to the packages to install
if: ${{ matrix.impl == 'c' }}
run: pip install $DEPS
- name: Run tests
- run: ./tools/build/ci_test.sh
+ run: ./tools/ci/ci_test.sh
# }}}
run: pip install $DEPS
- name: Run tests
- run: ./tools/build/ci_test.sh
+ run: ./tools/ci/ci_test.sh
# }}}
run: pip install $DEPS
- name: Run tests
- run: ./tools/build/ci_test.sh
+ run: ./tools/ci/ci_test.sh
# }}}
run: echo "$(pg_config.exe --bindir)" >> $GITHUB_PATH
- name: Install delvewheel
- run: .\tools\build\wheel_win32_before_build.bat
+ run: .\tools\ci\wheel_win32_before_build.bat
shell: powershell
- name: Build the C wheel
run: pip install $DEPS
- name: Run tests
- run: ./tools/build/ci_test.sh
+ run: ./tools/ci/ci_test.sh
# }}}
start-single-node --insecure
- name: Install the wanted libpq version
- run: sudo ./tools/build/ci_install_libpq.sh ${{ matrix.libpq }}
+ run: sudo ./tools/ci/ci_install_libpq.sh ${{ matrix.libpq }}
- name: Include psycopg-c to the packages to install
if: ${{ matrix.impl == 'c' }}
run: pip install $DEPS
- name: Run tests
- run: ./tools/build/ci_test.sh
+ run: ./tools/ci/ci_test.sh
# }}}
.eggs/
dist/
wheelhouse/
-# Spelling these explicitly because we have /scripts/build/ to not ignore
-# but I still want 'ag' to avoid looking here.
-/build/
-/psycopg/build/
-/psycopg_c/build/
-/psycopg_pool/build/
-/tools/build/pg_config_vcpkg_stub/build/
-/tools/isort-psycopg/build/
+build/
- Delete the ``wheelhouse`` directory if there is one.
-- Build m1 packages by running ``./tools/build/run_build_macos_arm64.sh BRANCH``.
+- Build m1 packages by running ``./tools/ci/run_build_macos_arm64.sh BRANCH``.
On successful completion it will save built packages in ``wheelhouse``
- If all packages were built ok, push the new tag created by ``bump_version.py``::
- ``.github/workflows/packages-bin.yml``.
- ``.github/workflows/tests.yml``.
-- Bump ``pg_version`` in ``tools/build/build_macos_arm64.sh``.
+- Bump ``pg_version`` in ``tools/ci/build_macos_arm64.sh``.
-- Bump the version in ``tools/build/wheel_win32_before_build.bat``.
+- Bump the version in ``tools/ci/wheel_win32_before_build.bat``.
- Update the documented versions in:
``psycopg/pyproject.toml``, ``psycopg_c/pyproject.toml``, and
``psycopg_pool/pyproject.toml``.
-- Update the list of versions in ``tools/build/build_macos_arm64.sh`` to include
+- Update the list of versions in ``tools/ci/build_macos_arm64.sh`` to include
the new version. Look for both the ``python_versions`` variable and the
``CIBW_BUILD`` environment variable.
disable_memoryview_promotion = true
strict = true
exclude = '''(?x)(
- ^ build/
- | docs/lib/.*\.py
- | psycopg/build/
- | psycopg_binary/build/
- | psycopg_c/build/
- | psycopg_pool/build/
- | tools/build/pg_config_vcpkg_stub/build/
+ ^ docs/lib/.*\.py
)'''
[[tool.mypy.overrides]]
# Create the psycopg_binary source package
rm -rf psycopg_binary
-python tools/build/copy_to_binary.py
+python tools/ci/copy_to_binary.py
# Build the binary packages
export CIBW_PLATFORM=macos
$ssh git clone https://github.com/psycopg/psycopg.git --branch ${tag} "${rdir}"
# Build the wheel packages
-$ssh "${rdir}/tools/build/build_macos_arm64.sh"
+$ssh "${rdir}/tools/ci/build_macos_arm64.sh"
# Transfer the packages locally
scp -r "${user}@${host}:${rdir}/wheelhouse" .
prjdir="$( cd "${dir}/../.." && pwd )"
# Build dependency libraries
-"${prjdir}/tools/build/build_libpq.sh"
+"${prjdir}/tools/ci/build_libpq.sh"
# Show dependency tree
otool -L /tmp/libpq.build/lib/*.dylib
@echo on
pip install delvewheel wheel
-