[arch-commits] Commit in python-flask-compress/repos/community-any (PKGBUILD PKGBUILD)

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


    Date: Wednesday, March 30, 2022 @ 23:49:51
  Author: anthraxx
Revision: 1177881

archrelease: copy trunk to community-any

Added:
  python-flask-compress/repos/community-any/PKGBUILD
    (from rev 1177880, python-flask-compress/trunk/PKGBUILD)
Deleted:
  python-flask-compress/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   69 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 35 insertions(+), 34 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-30 23:49:47 UTC (rev 1177880)
+++ PKGBUILD	2022-03-30 23:49:51 UTC (rev 1177881)
@@ -1,34 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Contributor: Cedric Girard <girard.cedric at gmail.com>
-
-_pyname=Flask-Compress
-pkgname=python-flask-compress
-pkgver=1.10.1
-pkgrel=1
-pkgdesc='Compress responses in your Flask app'
-url='http://pypi.python.org/pypi/Flask-Compress/'
-arch=('any')
-license=('BSD')
-depends=('python' 'python-flask' 'python-brotli')
-makedepends=('python-setuptools')
-source=(https://pypi.io/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz)
-sha256sums=('28352387efbbe772cfb307570019f81957a13ff718d994a9125fa705efb73680')
-sha512sums=('fb94aef71f59e38a6058f5ef799c8973d258cf624b1d8bf0a991cac2e4eabb73e2836ce351faa73bc7640720396183212a6dc8d72428b53ceb3473f7b61f0d27')
-
-build() {
-  cd ${_pyname}-${pkgver}
-  python setup.py build
-}
-
-check() {
-  cd ${_pyname}-${pkgver}
-  python setup.py test
-}
-
-package() {
-  cd ${_pyname}-${pkgver}
-  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-  install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}
-
-# vim: ts=2 sw=2 et:

Copied: python-flask-compress/repos/community-any/PKGBUILD (from rev 1177880, python-flask-compress/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-03-30 23:49:51 UTC (rev 1177881)
@@ -0,0 +1,35 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Cedric Girard <girard.cedric at gmail.com>
+
+_pyname=Flask-Compress
+pkgname=python-flask-compress
+pkgver=1.11
+pkgrel=1
+pkgdesc='Compress responses in your Flask app'
+url='http://pypi.python.org/pypi/Flask-Compress/'
+arch=('any')
+license=('BSD')
+depends=('python' 'python-flask' 'python-brotli')
+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=('f569f32c446d6b25ca8e347d5003a0531811ef732678005b0036fc1c9eb1c21c')
+sha512sums=('dd2ceca37eee968527f2008e9356f0ab89f2df46e6d874eff38b93a2cf326c9d24433f0adc8dfe7a7b72599a33f8d173f330aefcd4eea8650923a0466959d7fb')
+
+build() {
+  cd ${_pyname}-${pkgver}
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd ${_pyname}-${pkgver}
+  PYTHONPATH="build/lib" pytest
+}
+
+package() {
+  cd ${_pyname}-${pkgver}
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list