Date: Monday, January 2, 2023 @ 02:51:30 Author: grawlinson Revision: 1372852
upgpkg: python-psycopg 3.1.7-1; new upstream release * New upstream release. * Remove optional (but recommended) psycopg_c module due to build dependency on beta Cython. Modified: python-psycopg/trunk/PKGBUILD ----------+ PKGBUILD | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-01-02 01:20:16 UTC (rev 1372851) +++ PKGBUILD 2023-01-02 02:51:30 UTC (rev 1372852) @@ -2,22 +2,22 @@ # Contributor: Guillaume Horel <[email protected]> pkgname=python-psycopg -pkgver=3.1.6 +pkgver=3.1.7 pkgrel=1 pkgdesc='PostgreSQL database adapter for Python' -arch=('x86_64') +arch=('any') url='https://www.psycopg.org/psycopg3/' license=('LGPL3') depends=('python' 'postgresql-libs') makedepends=( 'git' - 'cython' + 'python-build' + 'python-installer' + 'python-wheel' 'python-setuptools' - 'python-wheel' - 'python-pip' ) checkdepends=('python-pytest' 'python-pytest-asyncio') -_commit='4ed7b91e3577b71ff8d8ecb47cb8efdc2bbe5e22' +_commit='cefcafff6e29e534f7a6ce5ba9a7e97f1bd193c2' source=("$pkgname::git+https://github.com/psycopg/psycopg.git#commit=$_commit") b2sums=('SKIP') @@ -32,19 +32,13 @@ } build(){ - cd "$pkgname" + cd "$pkgname/psycopg" - for subpackage in psycopg psycopg_c - do - python "$subpackage/setup.py" build - done + python -m build --wheel --no-isolation } package(){ - cd "$pkgname" + cd "$pkgname/psycopg" - for subpackage in psycopg psycopg_c - do - python "$subpackage/setup.py" install --root="$pkgdir" --optimize=1 --skip-build - done + python -m installer --destdir="$pkgdir" dist/*.whl }
