diff options
author | Carl Smedstad | 2023-11-24 00:33:28 +0100 |
---|---|---|
committer | Carl Smedstad | 2023-11-24 00:38:17 +0100 |
commit | add344c8c086a3936286cb16d5e424059bef1889 (patch) | |
tree | 351845aebef3cc7043f2ba75e4c512cdb20db13d | |
parent | 0fdd99eef7bae6ca040b82683cce62fb503da1ae (diff) | |
download | aur-add344c8c086a3936286cb16d5e424059bef1889.tar.gz |
Publish version 2.2.1-1
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 54 |
2 files changed, 31 insertions, 32 deletions
@@ -1,7 +1,7 @@ pkgbase = python-aiohttp-middlewares pkgdesc = Collection of useful middlewares for aiohttp.web applications - pkgver = 2.2.0 - pkgrel = 2 + pkgver = 2.2.1 + pkgrel = 1 url = https://github.com/playpauseandstop/aiohttp-middlewares arch = any license = custom:BSD3 @@ -15,8 +15,9 @@ pkgbase = python-aiohttp-middlewares depends = python depends = python-aiohttp depends = python-async-timeout + depends = python-attrs depends = python-yarl - source = python-aiohttp-middlewares-2.2.0.tar.gz::https://github.com/playpauseandstop/aiohttp-middlewares/archive/refs/tags/v2.2.0.tar.gz - sha256sums = 354e97552937cc881ffb36f7c0bb5a679d7a81d485bf0dba6367eb5294586f60 + source = python-aiohttp-middlewares-2.2.1.tar.gz::https://github.com/playpauseandstop/aiohttp-middlewares/archive/refs/tags/v2.2.1.tar.gz + sha256sums = 823bb0598079563ab06d18daf500796c9d8a3893bdd89678f9960185ce04a4e1 pkgname = python-aiohttp-middlewares @@ -1,59 +1,57 @@ # Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com> pkgname=python-aiohttp-middlewares -_pypiname=aiohttp-middlewares -pkgver=2.2.0 -pkgrel=2 +_name=${pkgname#python-} +pkgver=2.2.1 +pkgrel=1 pkgdesc="Collection of useful middlewares for aiohttp.web applications" -arch=('any') +arch=(any) url="https://github.com/playpauseandstop/aiohttp-middlewares" -license=('custom:BSD3') +license=(custom:BSD3) depends=( - 'python' - 'python-aiohttp' - 'python-async-timeout' - 'python-yarl' + python + python-aiohttp + python-async-timeout + python-attrs + python-yarl ) makedepends=( - 'python-build' - 'python-installer' - 'python-poetry-core' - 'python-wheel' + python-build + python-installer + python-poetry-core + python-wheel ) checkdepends=( - 'python-pytest' - 'python-pytest-aiohttp' - 'python-pytest-asyncio' + python-pytest + python-pytest-aiohttp + python-pytest-asyncio ) -source=( - "$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz" -) -sha256sums=( - '354e97552937cc881ffb36f7c0bb5a679d7a81d485bf0dba6367eb5294586f60' -) +source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz") +sha256sums=('823bb0598079563ab06d18daf500796c9d8a3893bdd89678f9960185ce04a4e1') + +_archive="$_name-$pkgver" prepare() { - rm "$_pypiname-$pkgver/.python-version" + rm "$_archive/.python-version" } - build() { - cd "$_pypiname-$pkgver" + cd "$_archive" GIT_DIR=$PWD python -m build --wheel --no-isolation } check() { - cd "$_pypiname-$pkgver" + cd "$_archive" PYTHONPATH=src/ python -m pytest --override-ini='addopts=""' } package() { - cd "$_pypiname-$pkgver" + cd "$_archive" python -m installer --destdir="$pkgdir" dist/*.whl - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE } |