[arch-commits] Commit in python-warlock/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Fri Sep 2 17:47:44 UTC 2022
Date: Friday, September 2, 2022 @ 17:47:44
Author: felixonmars
Revision: 1290955
archrelease: copy trunk to community-any
Added:
python-warlock/repos/community-any/PKGBUILD
(from rev 1290954, python-warlock/trunk/PKGBUILD)
Deleted:
python-warlock/repos/community-any/PKGBUILD
----------+
PKGBUILD | 63 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 34 insertions(+), 29 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-02 17:47:30 UTC (rev 1290954)
+++ PKGBUILD 2022-09-02 17:47:44 UTC (rev 1290955)
@@ -1,29 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-warlock
-pkgver=1.3.3
-pkgrel=7
-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')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/bcwaldon/warlock/archive/$pkgver.tar.gz")
-sha512sums=('8a9135a17ccc0d0939ad98eee16100ec68b911d672b3af549f7629edcd6e08129f9e4ab707082593274fc896bc405ab6d6ba9e4bf6fc40b8522ec99327c983ec')
-
-build() {
- cd warlock-$pkgver
- python setup.py build
-}
-
-check() {
- cd warlock-$pkgver
- python setup.py pytest
-}
-
-package() {
- cd warlock-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
-}
Copied: python-warlock/repos/community-any/PKGBUILD (from rev 1290954, python-warlock/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-09-02 17:47:44 UTC (rev 1290955)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-warlock
+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')
+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=('56ef0aaf8d7bb706e79832d606eaa2c927dd43880a09d339388cae0d629815b2c31bf53ae6005d02fb4d91708ac889586e635b2cdd068f6498c97f6b2276b1b5')
+
+prepare() {
+ cd warlock-$pkgver
+ sed -i '/--cov/d' pytest.ini
+}
+
+build() {
+ cd warlock-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd warlock-$pkgver
+ pytest
+}
+
+package() {
+ cd warlock-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+}
More information about the arch-commits
mailing list