Date: Tuesday, January 17, 2023 @ 06:08:58
  Author: grawlinson
Revision: 1386717

archrelease: copy trunk to community-x86_64

Added:
  python-psycopg/repos/community-x86_64/
  python-psycopg/repos/community-x86_64/PKGBUILD
    (from rev 1386716, python-psycopg/trunk/PKGBUILD)

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

Copied: python-psycopg/repos/community-x86_64/PKGBUILD (from rev 1386716, 
python-psycopg/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2023-01-17 06:08:58 UTC (rev 1386717)
@@ -0,0 +1,49 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Guillaume Horel <[email protected]>
+
+pkgname=python-psycopg
+pkgver=3.1.8
+pkgrel=1
+pkgdesc='PostgreSQL database adapter for Python'
+arch=('x86_64')
+url='https://www.psycopg.org/psycopg3/'
+license=('LGPL3')
+depends=('python' 'postgresql-libs')
+makedepends=(
+  'git'
+  'cython'
+  'python-build'
+  'python-installer'
+  'python-wheel'
+  'python-setuptools'
+)
+checkdepends=('python-pytest' 'python-pytest-asyncio')
+_commit='1ec7ed57f3c13a7bce3b817168325b30dbc35e6b'
+source=("$pkgname::git+https://github.com/psycopg/psycopg.git#commit=$_commit";)
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+build(){
+  cd "$pkgname"
+
+  for subpackage in psycopg psycopg_c; do
+    pushd "$subpackage"
+    python -m build --wheel --no-isolation
+    popd
+  done
+}
+
+package(){
+  cd "$pkgname"
+
+  for subpackage in psycopg psycopg_c; do
+    pushd "$subpackage"
+    python -m installer --destdir="$pkgdir" dist/*.whl 
+    popd
+  done
+}

Reply via email to