[arch-commits] Commit in python-asyncpg/trunk (PKGBUILD)
Filipe Laíns
ffy00 at gemini.archlinux.org
Sat Sep 3 17:18:19 UTC 2022
Date: Saturday, September 3, 2022 @ 17:18:19
Author: ffy00
Revision: 1292646
upgpkg: python-asyncpg 0.26.0-1
Modified:
python-asyncpg/trunk/PKGBUILD
----------+
PKGBUILD | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-03 17:11:50 UTC (rev 1292645)
+++ PKGBUILD 2022-09-03 17:18:19 UTC (rev 1292646)
@@ -2,8 +2,8 @@
_pkgname=asyncpg
pkgname=python-$_pkgname
-pkgver=0.24.0
-pkgrel=2
+pkgver=0.26.0
+pkgrel=1
pkgdesc='A fast PostgreSQL Database Client Library for Python/asyncio'
arch=('x86_64')
url='https://github.com/MagicStack/asyncpg'
@@ -10,6 +10,8 @@
license=('Apache')
depends=('python')
makedepends=('git' 'python-setuptools' 'cython')
+makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'cython'
+ 'python-setuptools' 'python-setuptools-scm' 'python-setuptools-scm-git-archive')
checkdepends=('python-pytest-runner' 'python-uvloop' 'postgresql')
source=("git+$url.git#tag=v$pkgver"
'git+https://github.com/MagicStack/py-pgproto.git')
@@ -29,19 +31,23 @@
build() {
cd $_pkgname
- python setup.py build_py build_ext
+ python -m build -nw
}
check() {
cd $_pkgname
- python setup.py pytest
+ python -m venv --system-site-packages test
+ cd test/bin
+ ./python -m installer ../../dist/*.whl
+
+ ./python -m pytest ../../tests
}
package() {
cd $_pkgname
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ python -m installer -d "$pkgdir" dist/*.whl
install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
More information about the arch-commits
mailing list