[arch-commits] Commit in python-werkzeug/repos/community-any (PKGBUILD PKGBUILD)
Levente Polyak
anthraxx at gemini.archlinux.org
Wed Mar 30 23:43:08 UTC 2022
Date: Wednesday, March 30, 2022 @ 23:43:08
Author: anthraxx
Revision: 1177879
archrelease: copy trunk to community-any
Added:
python-werkzeug/repos/community-any/PKGBUILD
(from rev 1177878, python-werkzeug/trunk/PKGBUILD)
Deleted:
python-werkzeug/repos/community-any/PKGBUILD
----------+
PKGBUILD | 81 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 43 insertions(+), 38 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-30 23:43:04 UTC (rev 1177878)
+++ PKGBUILD 2022-03-30 23:43:08 UTC (rev 1177879)
@@ -1,38 +0,0 @@
-# Maintainer: Sven-Hendrik Haase <svenstaro at archlinux.org>
-# Contributor: Alexander Rødseth <rodseth at gmail.com>
-# Contributor: Thomas Dziedzic < gostrc at gmail >
-# Contributor: Dan Serban
-# Contributor: Richard Murri
-
-pkgname=python-werkzeug
-pkgver=2.1.0
-pkgrel=1
-pkgdesc='Swiss Army knife of Python web development'
-url='http://werkzeug.pocoo.org/'
-arch=('any')
-license=('custom:BSD')
-depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-timeout' 'python-requests' 'python-pytest-xprocess')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/pallets/werkzeug/archive/${pkgver}.tar.gz")
-sha512sums=('acda1e4037e1d525cbd82ed2310ddf55968d14df6656018b910d7200b51569e88cf58957f94f377deb7fe100db03d30016e9dc91e033a298ad54cb34922be30e')
-
-build() {
- cd "werkzeug-$pkgver"
-
- python setup.py build
-}
-
-# check() {
-# cd "werkzeug-$pkgver"
-# PYTHONPATH="$PWD/build/lib" pytest
-# }
-
-package() {
- cd "werkzeug-$pkgver"
-
- python setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst"
-}
-
-# vim:set ts=2 sw=2 et:
Copied: python-werkzeug/repos/community-any/PKGBUILD (from rev 1177878, python-werkzeug/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-03-30 23:43:08 UTC (rev 1177879)
@@ -0,0 +1,43 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at archlinux.org>
+# Contributor: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Dan Serban
+# Contributor: Richard Murri
+
+pkgname=python-werkzeug
+pkgver=2.1.0
+pkgrel=2
+pkgdesc='Swiss Army knife of Python web development'
+url='https://werkzeug.palletsprojects.com/'
+arch=('any')
+license=('custom:BSD')
+depends=('python')
+makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
+checkdepends=('python-pytest' 'python-pytest-timeout' 'python-pytest-xprocess' 'python-requests'
+ 'python-ephemeral-port-reserve' 'python-greenlet' 'python-watchdog'
+ 'python-cryptography')
+source=("https://github.com/pallets/werkzeug/archive/${pkgver}/$pkgname-$pkgver.tar.gz")
+sha512sums=('acda1e4037e1d525cbd82ed2310ddf55968d14df6656018b910d7200b51569e88cf58957f94f377deb7fe100db03d30016e9dc91e033a298ad54cb34922be30e')
+
+build() {
+ cd "werkzeug-$pkgver"
+
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd "werkzeug-$pkgver"
+ PYTHONPATH="build/lib" pytest \
+ --deselect=tests/test_serving.py \
+ --deselect=tests/test_debug.py::test_basic \
+ --deselect=tests/middleware/test_http_proxy.py
+}
+
+package() {
+ cd "werkzeug-$pkgver"
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm 644 LICENSE.rst -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list