[arch-commits] Commit in python-requests-aws4auth/trunk (PKGBUILD)
Levente Polyak
anthraxx at gemini.archlinux.org
Tue Aug 30 22:44:26 UTC 2022
Date: Tuesday, August 30, 2022 @ 22:44:26
Author: anthraxx
Revision: 1289088
upgpkg: python-requests-aws4auth 1.1.2-1
Modified:
python-requests-aws4auth/trunk/PKGBUILD
----------+
PKGBUILD | 27 ++++++++++++++-------------
1 file changed, 14 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-30 22:15:41 UTC (rev 1289087)
+++ PKGBUILD 2022-08-30 22:44:26 UTC (rev 1289088)
@@ -3,37 +3,38 @@
_pkgname=requests-aws4auth
pkgname=python-requests-aws4auth
-pkgver=1.1.1
-pkgrel=3
+pkgver=1.1.2
+pkgrel=1
pkgdesc='Amazon Web Services version 4 authentication for the Python Requests module'
url='https://github.com/sam-washington/requests-aws4auth'
arch=('any')
license=('MIT')
depends=('python' 'python-requests' 'python-six')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest')
-source=(${url}/archive/v.${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha512sums=('447f69a6645360c1c2bbe57fe535a1518b1121c9b4cd7f96ccfe22053c1126cd79e60ce6faae28a1e207356dd7c414cab00f313d5139dfe97b24424e0d12c0aa')
-b2sums=('6e1e9def84a5d4d89c9f460e68271e2f7275f4c1eb809380d8953d734d959a15ddba78c21b2dc8ad00e2e9972d76ecb75dbc5c9bf457f70b1c2474e6189b9927')
+makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
+checkdepends=('python-pytest' 'python-httpx')
+optdepends=('python-httpx')
+source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('73207343f1b43d06f20cd998502046141e462c39a1bd0c6421039805afac3b2802cfa585afb8fcab0383f9159f1756b038de4d856ab9fd2cc7fd60b3722ba896')
+b2sums=('b9a6b49bae014f86cbfdba5cfd8596b90ba71ffc6595592ccad8692c5c3df9206a075e08b60f85df14c8b7b55191354d86a37ae6350c122980712ddcfc9c8510')
prepare() {
- cd ${_pkgname}-v.${pkgver}
+ cd ${_pkgname}-${pkgver}
sed '/./{H;$!d} ; x ; s/package_data=.*\n.*]},\n//' -i setup.py
}
build() {
- cd ${_pkgname}-v.${pkgver}
- python setup.py build
+ cd ${_pkgname}-${pkgver}
+ python -m build --wheel --no-isolation
}
check() {
- cd ${_pkgname}-v.${pkgver}
+ cd ${_pkgname}-${pkgver}
python -m pytest -k 'not test_headers_amz_example'
}
package() {
- cd ${_pkgname}-v.${pkgver}
- python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ cd ${_pkgname}-${pkgver}
+ python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
More information about the arch-commits
mailing list