Date: Tuesday, January 17, 2023 @ 06:07:32
  Author: grawlinson
Revision: 1386716

upgpkg: python-psycopg 3.1.8-1; new upstream release

Modified:
  python-psycopg/trunk/PKGBUILD

----------+
 PKGBUILD |   27 ++++++++++++++++-----------
 1 file changed, 16 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-17 06:03:52 UTC (rev 1386715)
+++ PKGBUILD    2023-01-17 06:07:32 UTC (rev 1386716)
@@ -2,15 +2,16 @@
 # Contributor: Guillaume Horel <[email protected]>
 
 pkgname=python-psycopg
-pkgver=3.1.7
+pkgver=3.1.8
 pkgrel=1
 pkgdesc='PostgreSQL database adapter for Python'
-arch=('any')
+arch=('x86_64')
 url='https://www.psycopg.org/psycopg3/'
 license=('LGPL3')
 depends=('python' 'postgresql-libs')
 makedepends=(
   'git'
+  'cython'
   'python-build'
   'python-installer'
   'python-wheel'
@@ -17,7 +18,7 @@
   'python-setuptools'
 )
 checkdepends=('python-pytest' 'python-pytest-asyncio')
-_commit='cefcafff6e29e534f7a6ce5ba9a7e97f1bd193c2'
+_commit='1ec7ed57f3c13a7bce3b817168325b30dbc35e6b'
 source=("$pkgname::git+https://github.com/psycopg/psycopg.git#commit=$_commit";)
 b2sums=('SKIP')
 
@@ -27,18 +28,22 @@
   git describe --tags | sed 's/^v//'
 }
 
-prepare() {
+build(){
   cd "$pkgname"
-}
 
-build(){
-  cd "$pkgname/psycopg"
-
-  python -m build --wheel --no-isolation
+  for subpackage in psycopg psycopg_c; do
+    pushd "$subpackage"
+    python -m build --wheel --no-isolation
+    popd
+  done
 }
 
 package(){
-  cd "$pkgname/psycopg"
+  cd "$pkgname"
 
-  python -m installer --destdir="$pkgdir" dist/*.whl 
+  for subpackage in psycopg psycopg_c; do
+    pushd "$subpackage"
+    python -m installer --destdir="$pkgdir" dist/*.whl 
+    popd
+  done
 }

Reply via email to