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

Felix Yan felixonmars at gemini.archlinux.org
Fri Sep 2 17:47:30 UTC 2022


    Date: Friday, September 2, 2022 @ 17:47:30
  Author: felixonmars
Revision: 1290954

upgpkg: python-warlock 2.0.0-1

Modified:
  python-warlock/trunk/PKGBUILD

----------+
 PKGBUILD |   23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-09-02 17:45:17 UTC (rev 1290953)
+++ PKGBUILD	2022-09-02 17:47:30 UTC (rev 1290954)
@@ -1,29 +1,34 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=python-warlock
-pkgver=1.3.3
-pkgrel=7
+pkgver=2.0.0
+pkgrel=1
 pkgdesc="Python object model built on JSON schema and JSON patch."
 arch=('any')
 license=('Apache')
 url="https://github.com/bcwaldon/warlock"
-depends=('python-jsonschema' 'python-jsonpatch' 'python-six')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner' 'python-pytest-cov')
+depends=('python-jsonschema' 'python-jsonpatch')
+makedepends=('python-build' 'python-installer' 'python-poetry')
+checkdepends=('python-pytest')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/bcwaldon/warlock/archive/$pkgver.tar.gz")
-sha512sums=('8a9135a17ccc0d0939ad98eee16100ec68b911d672b3af549f7629edcd6e08129f9e4ab707082593274fc896bc405ab6d6ba9e4bf6fc40b8522ec99327c983ec')
+sha512sums=('56ef0aaf8d7bb706e79832d606eaa2c927dd43880a09d339388cae0d629815b2c31bf53ae6005d02fb4d91708ac889586e635b2cdd068f6498c97f6b2276b1b5')
 
+prepare() {
+  cd warlock-$pkgver
+  sed -i '/--cov/d' pytest.ini
+}
+
 build() {
   cd warlock-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
   cd warlock-$pkgver
-  python setup.py pytest
+  pytest
 }
 
 package() {
   cd warlock-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
 }



More information about the arch-commits mailing list