Date: Thursday, October 27, 2022 @ 19:52:15
  Author: felixonmars
Revision: 1338240

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   62 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 32 insertions(+), 30 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-27 19:52:06 UTC (rev 1338239)
+++ PKGBUILD    2022-10-27 19:52:15 UTC (rev 1338240)
@@ -1,30 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-pyhamcrest
-pkgver=2.0.3
-pkgrel=1
-pkgdesc="Hamcrest framework for matcher objects"
-arch=('any')
-license=('BSD')
-url="https://github.com/hamcrest/PyHamcrest";
-depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest')
-source=("https://github.com/hamcrest/PyHamcrest/archive/V$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('4a28c0ae04db11a86c44dff001e919a5bb6b820af8ffd60b1a1f2846f257d79daac76fbdeac4a0039d149e643043258a0685382a3a4b52c6d4586b8be95e1657')
-
-build() {
-  cd PyHamcrest-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd PyHamcrest-$pkgver
-  PYTHONPATH="$PWD/build/lib" pytest
-}
-
-package() {
-  cd PyHamcrest-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
-}

Copied: python-pyhamcrest/repos/community-any/PKGBUILD (from rev 1338239, 
python-pyhamcrest/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-10-27 19:52:15 UTC (rev 1338240)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-pyhamcrest
+pkgver=2.0.4
+pkgrel=1
+pkgdesc="Hamcrest framework for matcher objects"
+arch=('any')
+license=('BSD')
+url="https://github.com/hamcrest/PyHamcrest";
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-hatchling' 
'python-hatch-vcs')
+checkdepends=('python-pytest')
+source=("https://github.com/hamcrest/PyHamcrest/archive/V$pkgver/$pkgname-$pkgver.tar.gz";)
+sha512sums=('6ee558fe04dce839d5d5d20b90ecf82fed96570e1c5b3a827fce19dba167bf4702ea707560b19e2d6e82be20913deb6cf17fa7e140733899a92abb28e9f2aa56')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd PyHamcrest-$pkgver
+  python -m build -nw
+}
+
+check() {
+  cd PyHamcrest-$pkgver
+  PYTHONPATH="$PWD/src" pytest
+}
+
+package() {
+  cd PyHamcrest-$pkgver
+  python -m installer -d "$pkgdir" dist/*.whl
+  install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
+}

Reply via email to