aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfossdd <fossdd@pwned.life>2024-04-15 10:35:49 +0200
committeromni <omni+alpine@hack.org>2024-04-15 16:02:10 +0000
commitdcdba6b8b6542cc94b9b5426b4d82da0ba6aa188 (patch)
tree922a7b97022458e7fa14fd0e30dc95a7dd83317c
parentbead46f85f6cf3eae49e26e508ad49171497ab85 (diff)
community/py3-requests-oauthlib: upgrade to 2.0.0, take over maintainership
https://github.com/requests/requests-oauthlib/blob/master/HISTORY.rst#v200-22-march-2024
-rw-r--r--community/py3-requests-oauthlib/APKBUILD34
1 files changed, 25 insertions, 9 deletions
diff --git a/community/py3-requests-oauthlib/APKBUILD b/community/py3-requests-oauthlib/APKBUILD
index c06f12b0b7f..a8c4934341f 100644
--- a/community/py3-requests-oauthlib/APKBUILD
+++ b/community/py3-requests-oauthlib/APKBUILD
@@ -1,15 +1,28 @@
-# Maintainer:
+# Contributor: fossdd <fossdd@pwned.life>
+# Maintainer: fossdd <fossdd@pwned.life>
pkgname=py3-requests-oauthlib
-pkgver=1.3.1
-pkgrel=4
+pkgver=2.0.0
+pkgrel=0
pkgdesc="First-class OAuth library support for Requests"
options="!check" # No tox.ini file
url="https://pypi.org/project/requests-oauthlib"
arch="noarch"
license="ISC"
-depends="python3 py3-oauthlib py3-requests"
-makedepends="py3-setuptools"
-checkdepends="py3-mock py3-requests-mock py3-tox"
+depends="
+ py3-oauthlib
+ py3-requests
+ python3
+ "
+makedepends="
+ py3-gpep517
+ py3-setuptools
+ py3-wheel
+ "
+checkdepends="
+ py3-mock
+ py3-requests-mock
+ py3-tox
+ "
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/r/requests-oauthlib/requests-oauthlib-$pkgver.tar.gz"
builddir="$srcdir/requests-oauthlib-$pkgver"
@@ -18,7 +31,9 @@ replaces="py-requests-oauthlib" # Backwards compatibility
provides="py-requests-oauthlib=$pkgver-r$pkgrel" # Backwards compatibility
build() {
- python3 setup.py build
+ gpep517 build-wheel \
+ --wheel-dir .dist \
+ --output-fd 3 3>&1 >&2
}
check() {
@@ -26,9 +41,10 @@ check() {
}
package() {
- python3 setup.py install --skip-build --root="$pkgdir"
+ python3 -m installer -d "$pkgdir" \
+ .dist/*.whl
}
sha512sums="
-fb4b52edf5f3e4f82f9bedc13b4bc4032e629fd17fef62e72c9eeb734d1963c08c081c9a96db464539637c678e1f5b7f4bf9bb618a8bc1b6aa2024c7b5c620ea requests-oauthlib-1.3.1.tar.gz
+f15851aa27a19053c1bd6ccc7e1fcbc24b5c9e3e4ced736754e34ff8121a3d9be9f4f9ff878cbd2a75ca5803e25522807b4ace19cb0f64a88844158fdf7d098f requests-oauthlib-2.0.0.tar.gz
"