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

David Runge dvzrv at gemini.archlinux.org
Sat Apr 16 20:04:51 UTC 2022


    Date: Saturday, April 16, 2022 @ 20:04:50
  Author: dvzrv
Revision: 1186730

archrelease: copy trunk to community-any

Added:
  python-cerberus/repos/community-any/PKGBUILD
    (from rev 1186729, python-cerberus/trunk/PKGBUILD)
Deleted:
  python-cerberus/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   64 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 33 insertions(+), 31 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-16 20:04:40 UTC (rev 1186729)
+++ PKGBUILD	2022-04-16 20:04:50 UTC (rev 1186730)
@@ -1,31 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-cerberus
-pkgver=1.3.4
-pkgrel=3
-pkgdesc="Lightweight, extensible schema and data validation tool for Python dictionaries"
-url="https://github.com/pyeve/cerberus"
-license=('ISC')
-arch=('any')
-depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner' 'python-pytest-benchmark')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/pyeve/cerberus/archive/$pkgver.tar.gz")
-sha512sums=('c816b426ed1b32367d1e8f1c26d6ddd4b49c6578540e688baf693e3094a05800f645cfe879be6378c1e9be9899cad7bc2ad1ed9844d6762d2ef6e0cc54a7476a')
-
-build() {
-  cd cerberus-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd cerberus-$pkgver
-  python setup.py pytest --addopts cerberus
-}
-
-package() {
-  cd cerberus-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}

Copied: python-cerberus/repos/community-any/PKGBUILD (from rev 1186729, python-cerberus/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-04-16 20:04:50 UTC (rev 1186730)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-cerberus
+pkgver=1.3.4
+pkgrel=4
+pkgdesc="Lightweight, extensible schema and data validation tool for Python dictionaries"
+url="https://github.com/pyeve/cerberus"
+license=('ISC')
+arch=('any')
+depends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-wheel')
+checkdepends=('python-pytest-runner' 'python-pytest-benchmark')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pyeve/cerberus/archive/$pkgver.tar.gz")
+sha512sums=('c816b426ed1b32367d1e8f1c26d6ddd4b49c6578540e688baf693e3094a05800f645cfe879be6378c1e9be9899cad7bc2ad1ed9844d6762d2ef6e0cc54a7476a')
+
+build() {
+  cd cerberus-$pkgver
+  python -m build --wheel --no-isolation
+  # NOTE: remove build dir as pytest otherwise chokes on duplicate imports
+  rm -frv build
+}
+
+check() {
+  cd cerberus-$pkgver
+  pytest -vv
+}
+
+package() {
+  cd cerberus-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list