CIBW_TEST_COMMAND: >-
pytest {project}/tests -m 'not slow and not flakey' --color yes
CIBW_ENVIRONMENT: >-
+ PG_VERSION=16
PSYCOPG_IMPL=binary
PSYCOPG_TEST_DSN='dbname=postgres'
- PSYCOPG_TEST_WANT_LIBPQ_BUILD=">= 14"
- PSYCOPG_TEST_WANT_LIBPQ_IMPORT=">= 14"
+ PATH="/usr/local/opt/postgresql@${PG_VERSION}/bin:$PATH"
+ PSYCOPG_TEST_WANT_LIBPQ_BUILD=">= $PG_VERSION"
+ PSYCOPG_TEST_WANT_LIBPQ_IMPORT=">= $PG_VERSION"
- uses: actions/upload-artifact@v3
with:
# Latest release: https://www.postgresql.org/ftp/source/
# IMPORTANT! Change the cache key in packages.yml when upgrading libraries
-postgres_version="${LIBPQ_VERSION:-15.0}"
+postgres_version="${LIBPQ_VERSION:-16.0}"
# Latest release: https://www.openssl.org/source/
openssl_version="${OPENSSL_VERSION:-1.1.1r}"
# export LD_LIBRARY_PATH="${LIBPQ_BUILD_PREFIX}/lib"
./configure --prefix=${LIBPQ_BUILD_PREFIX} --sysconfdir=/etc/postgresql-common \
- --without-readline --with-gssapi --with-openssl --with-pam --with-ldap \
+ --without-readline --without-icu \
+ --with-gssapi --with-openssl --with-pam --with-ldap \
CPPFLAGS=-I${LIBPQ_BUILD_PREFIX}/include/ LDFLAGS=-L${LIBPQ_BUILD_PREFIX}/lib
make -C src/interfaces/libpq
make -C src/bin/pg_config
set -x
python_versions="3.8.10 3.9.13 3.10.5 3.11.0"
-pg_version=15
+pg_version=16
# Move to the root of the project
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Configure the environment needed to build wheel packages on Mac OS.
# This script is designed to be used by cibuildwheel as CIBW_BEFORE_ALL_MACOS
+#
+# The PG_VERSION env var must be set to a Postgres major version (e.g. 16).
set -euo pipefail
set -x
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-brew install gnu-sed postgresql@15
+brew install gnu-sed postgresql@${PG_VERSION}
# Start the database for testing
brew services start postgresql