[arch-commits] Commit in python-psycopg/repos (2 files)

George Rawlinson grawlinson at gemini.archlinux.org
Wed Jun 8 01:31:27 UTC 2022


    Date: Wednesday, June 8, 2022 @ 01:31:27
  Author: grawlinson
Revision: 1228605

archrelease: copy trunk to community-x86_64

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

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

Copied: python-psycopg/repos/community-x86_64/PKGBUILD (from rev 1228604, python-psycopg/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-06-08 01:31:27 UTC (rev 1228605)
@@ -0,0 +1,50 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Guillaume Horel <guillaume.horel at gmail.com>
+
+pkgname=python-psycopg
+pkgver=3.0.14
+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-setuptools'
+  'python-wheel'
+  'python-pip'
+)
+checkdepends=('python-pytest' 'python-pytest-asyncio')
+_commit='59d541661d26766ef6b137a9f37d433ce75b97a2'
+source=("$pkgname::git+https://github.com/psycopg/psycopg.git#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+  cd "$pkgname"
+}
+
+build(){
+  cd "$pkgname"
+
+  for subpackage in psycopg psycopg_c
+  do
+    python "$subpackage/setup.py" build
+  done
+}
+
+package(){
+  cd "$pkgname"
+
+  for subpackage in psycopg psycopg_c
+  do
+    python "$subpackage/setup.py" install --root="$pkgdir" --optimize=1 --skip-build
+  done
+}



More information about the arch-commits mailing list