Date: Tuesday, November 22, 2022 @ 22:26:55
Author: arojas
Revision: 1351906
archrelease: copy trunk to community-any
Added:
python-flask-dance/repos/community-any/PKGBUILD
(from rev 1351905, python-flask-dance/trunk/PKGBUILD)
Deleted:
python-flask-dance/repos/community-any/PKGBUILD
----------+
PKGBUILD | 84 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 43 insertions(+), 41 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-11-22 22:26:47 UTC (rev 1351905)
+++ PKGBUILD 2022-11-22 22:26:55 UTC (rev 1351906)
@@ -1,41 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-flask-dance
-pkgver=6.1.0
-pkgrel=2
-pkgdesc="Doing the OAuth dance with style using Flask, requests, and oauthlib"
-url="https://github.com/singingwolfboy/flask-dance"
-license=('MIT')
-arch=('any')
-depends=('python-requests' 'python-oauthlib' 'python-requests-oauthlib'
'python-flask'
- 'python-urlobject' 'python-werkzeug')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner' 'python-sphinx' 'python-pytest-cov'
- 'python-responses' 'python-freezegun' 'python-sqlalchemy'
'python-sqlalchemy-utils'
- 'python-flask-sqlalchemy' 'python-flask-login'
'python-flask-caching'
- 'python-flask-sphinx-themes' 'python-sphinxcontrib-seqdiag'
'python-betamax'
- 'python-pyjwt' 'python-pytest-mock')
-source=("https://github.com/singingwolfboy/flask-dance/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('bb2b80cf2fe6031a4004b66cbcc16d847472af8fa454fe5b00bcea81843fed983367795913f1cfa08df9e7c614da9dd8710d7bb88c463db7bc1d65468fe61c81')
-
-prepare() {
- cd flask-dance-$pkgver
- sed -i 's/sign_rsa_sha1/_sign_rsa/' tests/contrib/test_jira.py
-}
-
-build() {
- cd flask-dance-$pkgver
- python setup.py build
-}
-
-check() {
- cd flask-dance-$pkgver
- # New oauthlib related failure. The sed above didn't fix it cleanly.
- python setup.py pytest --addopts '--deselect
tests/contrib/test_jira.py::test_load_from_config'
-}
-
-package() {
- cd flask-dance-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: python-flask-dance/repos/community-any/PKGBUILD (from rev 1351905,
python-flask-dance/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-11-22 22:26:55 UTC (rev 1351906)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-flask-dance
+pkgver=6.2.0
+pkgrel=1
+pkgdesc="Doing the OAuth dance with style using Flask, requests, and oauthlib"
+url="https://github.com/singingwolfboy/flask-dance"
+license=('MIT')
+arch=('any')
+depends=('python-requests' 'python-oauthlib' 'python-requests-oauthlib'
'python-flask'
+ 'python-urlobject' 'python-werkzeug')
+makedepends=('python-build' 'python-installer' 'python-flit-core')
+checkdepends=('python-pytest-runner' 'python-sphinx' 'python-pytest-cov'
+ 'python-responses' 'python-freezegun' 'python-sqlalchemy'
'python-sqlalchemy-utils'
+ 'python-flask-sqlalchemy' 'python-flask-login'
'python-flask-caching'
+ 'python-flask-sphinx-themes' 'python-sphinxcontrib-seqdiag'
'python-betamax'
+ 'python-pyjwt' 'python-pytest-mock')
+source=("https://github.com/singingwolfboy/flask-dance/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('2e0a56e9e12faae34ac888df9f0b9e4ebfe0c0a7ea36fba4f3e17d5c0f4b2a25dba85d6f2e3c46f07757fff32ba5cb721bf562c4cf0f1af315d88663bc3f8e23')
+
+prepare() {
+ cd flask-dance-$pkgver
+ sed -i 's/sign_rsa_sha1/_sign_rsa/' tests/contrib/test_jira.py
+}
+
+build() {
+ cd flask-dance-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd flask-dance-$pkgver
+ # New oauthlib related failure. The sed above didn't fix it cleanly.
+ python -m venv --system-site-packages test-env
+ test-env/bin/python -m installer dist/*.whl
+ test-env/bin/python -m pytest --deselect
tests/contrib/test_jira.py::test_load_from_config
+}
+
+package() {
+ cd flask-dance-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}