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

2022-04-16 Thread David Runge via arch-commits
Date: Saturday, April 16, 2022 @ 20:04:40
  Author: dvzrv
Revision: 1186729

upgpkg: python-cerberus 1.3.4-4: Rebuild to add python-setuptools to depends.

As cerberus uses pkg_resources it requires python-setuptools.
Switch to PEP517.
Simplify call to pytest and do not use legacy way via setup.py.

Modified:
  python-cerberus/trunk/PKGBUILD

--+
 PKGBUILD |   14 --
 1 file changed, 8 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2022-04-16 19:50:28 UTC (rev 1186728)
+++ PKGBUILD2022-04-16 20:04:40 UTC (rev 1186729)
@@ -2,13 +2,13 @@
 
 pkgname=python-cerberus
 pkgver=1.3.4
-pkgrel=3
+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')
-makedepends=('python-setuptools')
+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')
@@ -15,17 +15,19 @@
 
 build() {
   cd cerberus-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
+  # NOTE: remove build dir as pytest otherwise chokes on duplicate imports
+  rm -frv build
 }
 
 check() {
   cd cerberus-$pkgver
-  python setup.py pytest --addopts cerberus
+  pytest -vv
 }
 
 package() {
   cd cerberus-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
 
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }



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

2021-12-01 Thread Evangelos Foutras via arch-commits
Date: Wednesday, December 1, 2021 @ 21:40:58
  Author: foutrelis
Revision: 1060977

upgpkg: python-cerberus 1.3.4-3: Python 3.10 rebuild

Modified:
  python-cerberus/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-12-01 21:40:58 UTC (rev 1060976)
+++ PKGBUILD2021-12-01 21:40:58 UTC (rev 1060977)
@@ -2,7 +2,7 @@
 
 pkgname=python-cerberus
 pkgver=1.3.4
-pkgrel=2
+pkgrel=3
 pkgdesc="Lightweight, extensible schema and data validation tool for Python 
dictionaries"
 url="https://github.com/pyeve/cerberus;
 license=('ISC')



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

2021-11-30 Thread Felix Yan via arch-commits
Date: Tuesday, November 30, 2021 @ 16:06:14
  Author: felixonmars
Revision: 1057818

upgpkg: python-cerberus 1.3.4-2: Python 3.10 rebuild

Modified:
  python-cerberus/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-11-30 16:04:15 UTC (rev 1057817)
+++ PKGBUILD2021-11-30 16:06:14 UTC (rev 1057818)
@@ -2,7 +2,7 @@
 
 pkgname=python-cerberus
 pkgver=1.3.4
-pkgrel=1
+pkgrel=2
 pkgdesc="Lightweight, extensible schema and data validation tool for Python 
dictionaries"
 url="https://github.com/pyeve/cerberus;
 license=('ISC')



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

2021-05-09 Thread Felix Yan via arch-commits
Date: Sunday, May 9, 2021 @ 15:14:54
  Author: felixonmars
Revision: 929235

upgpkg: python-cerberus 1.3.4-1

Modified:
  python-cerberus/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-05-09 15:04:21 UTC (rev 929234)
+++ PKGBUILD2021-05-09 15:14:54 UTC (rev 929235)
@@ -1,7 +1,7 @@
 # Maintainer: Felix Yan 
 
 pkgname=python-cerberus
-pkgver=1.3.3
+pkgver=1.3.4
 pkgrel=1
 pkgdesc="Lightweight, extensible schema and data validation tool for Python 
dictionaries"
 url="https://github.com/pyeve/cerberus;
@@ -11,7 +11,7 @@
 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=('2f2696751dd1f5191fc1ef328c1b1d604d94c87d3c1eb3210ecbede499d2f13a1d197a1c42a5eb4a11c7257214437857f4023a55415d83793a2f3b1a8aa4a8bd')
+sha512sums=('c816b426ed1b32367d1e8f1c26d6ddd4b49c6578540e688baf693e3094a05800f645cfe879be6378c1e9be9899cad7bc2ad1ed9844d6762d2ef6e0cc54a7476a')
 
 build() {
   cd cerberus-$pkgver


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

2021-04-11 Thread Felix Yan via arch-commits
Date: Sunday, April 11, 2021 @ 18:39:15
  Author: felixonmars
Revision: 915778

upgpkg: python-cerberus 1.3.3-1

Modified:
  python-cerberus/trunk/PKGBUILD

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

Modified: PKGBUILD
===
--- PKGBUILD2021-04-11 18:28:31 UTC (rev 915777)
+++ PKGBUILD2021-04-11 18:39:15 UTC (rev 915778)
@@ -1,8 +1,8 @@
 # Maintainer: Felix Yan 
 
 pkgname=python-cerberus
-pkgver=1.3.2
-pkgrel=3
+pkgver=1.3.3
+pkgrel=1
 pkgdesc="Lightweight, extensible schema and data validation tool for Python 
dictionaries"
 url="https://github.com/pyeve/cerberus;
 license=('ISC')
@@ -9,9 +9,9 @@
 arch=('any')
 depends=('python')
 makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner')
+checkdepends=('python-pytest-runner' 'python-pytest-benchmark')
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/pyeve/cerberus/archive/$pkgver.tar.gz;)
-sha512sums=('e9cfef5a936783eb0576afd3d23397dab38d8c88b6b43f98de0ad7e20739e5ff983eaf4ac769206adb7fe9692c651583f6a5f2bab263b81b8de96f45707c84fb')
+sha512sums=('2f2696751dd1f5191fc1ef328c1b1d604d94c87d3c1eb3210ecbede499d2f13a1d197a1c42a5eb4a11c7257214437857f4023a55415d83793a2f3b1a8aa4a8bd')
 
 build() {
   cd cerberus-$pkgver