[arch-commits] Commit in python-flask/trunk (PKGBUILD)

Levente Polyak anthraxx at gemini.archlinux.org
Wed Mar 30 20:02:13 UTC 2022


    Date: Wednesday, March 30, 2022 @ 20:02:13
  Author: anthraxx
Revision: 1177844

upgpkg: python-flask 2.1.0-2: run tests and declare optdepends

Modified:
  python-flask/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-30 19:57:43 UTC (rev 1177843)
+++ PKGBUILD	2022-03-30 20:02:13 UTC (rev 1177844)
@@ -5,30 +5,34 @@
 
 pkgname=python-flask
 pkgver=2.1.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Micro webdevelopment framework for Python'
 url='http://flask.pocoo.org/'
 arch=('any')
 license=('custom:BSD')
 depends=('python-werkzeug' 'python-jinja' 'python-itsdangerous' 'python-click')
-makedepends=('python-setuptools'  'python-werkzeug' 'python-jinja' 'python-itsdangerous' 'python-click')
+makedepends=('python-build' 'python-installer' 'python-wheel')
+checkdepends=('python-pytest')
+optdepends=(
+  'python-asgiref: async functions and views'
+  'python-dotenv: loading env vars from files'
+)
 source=("$pkgname-$pkgver.tar.gz::https://github.com/pallets/flask/archive/${pkgver}.tar.gz")
 sha512sums=('aac87f68d9123ef8ea8dccbadecc91d6996dc4343fff65b01c8847d176911b4c21b14e4d62788ff734b62987fa35a983ba94d01a5dc8b375209f2875da83c430')
 
 build() {
   cd "flask-$pkgver"
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
   cd "flask-$pkgver"
-  python setup.py test
+  PYTHONPATH="build/lib" pytest
 }
 
 package() {
   cd "flask-$pkgver"
-
-  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst"
 }
 



More information about the arch-commits mailing list