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

Levente Polyak anthraxx at gemini.archlinux.org
Wed Mar 30 23:49:48 UTC 2022


    Date: Wednesday, March 30, 2022 @ 23:49:47
  Author: anthraxx
Revision: 1177880

upgpkg: python-flask-compress 1.11-1

Modified:
  python-flask-compress/trunk/PKGBUILD

----------+
 PKGBUILD |   15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-30 23:43:08 UTC (rev 1177879)
+++ PKGBUILD	2022-03-30 23:49:47 UTC (rev 1177880)
@@ -3,7 +3,7 @@
 
 _pyname=Flask-Compress
 pkgname=python-flask-compress
-pkgver=1.10.1
+pkgver=1.11
 pkgrel=1
 pkgdesc='Compress responses in your Flask app'
 url='http://pypi.python.org/pypi/Flask-Compress/'
@@ -10,24 +10,25 @@
 arch=('any')
 license=('BSD')
 depends=('python' 'python-flask' 'python-brotli')
-makedepends=('python-setuptools')
+makedepends=('python-setuptools' 'python-setuptools-scm' 'python-build' 'python-installer' 'python-wheel')
+checkdepends=('python-pytest')
 source=(https://pypi.io/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz)
-sha256sums=('28352387efbbe772cfb307570019f81957a13ff718d994a9125fa705efb73680')
-sha512sums=('fb94aef71f59e38a6058f5ef799c8973d258cf624b1d8bf0a991cac2e4eabb73e2836ce351faa73bc7640720396183212a6dc8d72428b53ceb3473f7b61f0d27')
+sha256sums=('f569f32c446d6b25ca8e347d5003a0531811ef732678005b0036fc1c9eb1c21c')
+sha512sums=('dd2ceca37eee968527f2008e9356f0ab89f2df46e6d874eff38b93a2cf326c9d24433f0adc8dfe7a7b72599a33f8d173f330aefcd4eea8650923a0466959d7fb')
 
 build() {
   cd ${_pyname}-${pkgver}
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
   cd ${_pyname}-${pkgver}
-  python setup.py test
+  PYTHONPATH="build/lib" pytest
 }
 
 package() {
   cd ${_pyname}-${pkgver}
-  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }
 



More information about the arch-commits mailing list