diff options
author | Philipp A. | 2023-12-27 15:56:40 +0100 |
---|---|---|
committer | Philipp A. | 2023-12-27 15:56:40 +0100 |
commit | f88ecb6932cf7901e37c0409b101349d1c4d88b7 (patch) | |
tree | 1addc6094fe500531105cb617dc3816142058049 | |
parent | eee26bf865060c3e6311679f7b6db769a8d294bf (diff) | |
download | aur-f88ecb6932cf7901e37c0409b101349d1c4d88b7.tar.gz |
build system update
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | PKGBUILD | 13 |
3 files changed, 15 insertions, 6 deletions
@@ -1,10 +1,13 @@ pkgbase = python-connection_pool pkgdesc = Thread-safe connection pool for Python pkgver = 0.0.3 - pkgrel = 1 + pkgrel = 2 url = https://github.com/zhouyl/ConnectionPool arch = any license = MIT + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel makedepends = python-setuptools depends = python source = https://files.pythonhosted.org/packages/source/c/connection_pool/connection_pool-0.0.3.tar.gz diff --git a/.gitignore b/.gitignore index 8bba9d8c732d..a327084529c0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /src/ /pkg/ /*.tar.gz -/*.pkg.tar.xz +/*.pkg.* +/*.log @@ -2,17 +2,22 @@ _name=connection_pool pkgname=python-$_name pkgver=0.0.3 -pkgrel=1 +pkgrel=2 pkgdesc='Thread-safe connection pool for Python' arch=(any) url='https://github.com/zhouyl/ConnectionPool' license=(MIT) depends=(python) -makedepends=(python-setuptools) +makedepends=(python-build python-installer python-wheel python-setuptools) source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") sha256sums=('bf429e7aef65921c69b4ed48f3d48d3eac1383b05d2df91884705842d974d0dc') +build() { + cd "$_name-$pkgver" + python -m build --wheel --no-isolation +} + package() { - cd "$srcdir/$_name-$pkgver" - python setup.py install --root="$pkgdir" --optimize=1 + cd "$_name-$pkgver" + python -m installer --destdir="$pkgdir" dist/*.whl } |