Date: Tuesday, May 16, 2023 @ 07:46:05
  Author: arojas
Revision: 1461907

archrelease: copy trunk to community-x86_64

Added:
  python-lz4/repos/community-x86_64/PKGBUILD
    (from rev 1461906, python-lz4/trunk/PKGBUILD)
Deleted:
  python-lz4/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   76 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 40 insertions(+), 36 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-05-16 07:45:57 UTC (rev 1461906)
+++ PKGBUILD    2023-05-16 07:46:05 UTC (rev 1461907)
@@ -1,36 +0,0 @@
-# Maintainer: Giancarlo Razzolini <[email protected]>
-# Contributor: Nissar Chababy <funilrys at outlook dot com>
-# Contributor: Thrasibule <guillaume dot horel at gmail dot com>
-# Contributor: David Manouchehri <[email protected]>
-# Contributor: Vladimir Tsanev <[email protected]>
-# Contributor: Andrew Reed <[email protected]>
-# Contributor: "Score_Under" <[email protected]>
-
-pkgname=python-lz4
-_pkgname=lz4
-pkgver=3.1.10
-pkgrel=8
-pkgdesc="LZ4 bindings for Python"
-arch=('x86_64')
-license=('BSD')
-url="https://github.com/python-lz4/python-lz4";
-depends=('python')
-makedepends=('python-setuptools-scm' 'python-pkgconfig')
-checkdepends=('python-pytest' 'python-psutil')
-source=("https://pypi.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-${pkgver}.tar.gz";)
-sha512sums=('61983e77fa445f59503ccf8ed5fe0605d79754cdeb166e16a7093a856b23369634db7d105d57b3829e680dad0a3728adec9d18dccd92c994347b74c5af95580e')
-
-build() {
-  cd "$srcdir"/$_pkgname-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd "$srcdir"/$_pkgname-$pkgver
-  python -m pytest
-}
-
-package() {
-  cd $_pkgname-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}

Copied: python-lz4/repos/community-x86_64/PKGBUILD (from rev 1461906, 
python-lz4/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-05-16 07:46:05 UTC (rev 1461907)
@@ -0,0 +1,40 @@
+# Maintainer: Giancarlo Razzolini <[email protected]>
+# Contributor: Nissar Chababy <funilrys at outlook dot com>
+# Contributor: Thrasibule <guillaume dot horel at gmail dot com>
+# Contributor: David Manouchehri <[email protected]>
+# Contributor: Vladimir Tsanev <[email protected]>
+# Contributor: Andrew Reed <[email protected]>
+# Contributor: "Score_Under" <[email protected]>
+
+pkgname=python-lz4
+_pkgname=lz4
+pkgver=4.3.2
+pkgrel=1
+pkgdesc="LZ4 bindings for Python"
+arch=('x86_64')
+license=('BSD')
+url="https://github.com/python-lz4/python-lz4";
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-pkgconfig' 
'python-setuptools-scm' 'python-wheel')
+checkdepends=('python-pytest' 'python-psutil')
+source=("https://pypi.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-${pkgver}.tar.gz";)
+sha512sums=('c2e7d3ec0954110c9b21e562147e80c8abddd21ebb213491d1072454834151a0f3a0935c0f3eebec34c024fe6e79136ccf6363dcb5390aa03cb52489fcb4113c')
+
+build() {
+  cd "$srcdir"/$_pkgname-$pkgver
+  PYLZ4_EXPERIMENTAL=1 \
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd "$srcdir"/$_pkgname-$pkgver
+  mv lz4{,.bak}
+  python -m venv --system-site-packages test-env
+  test-env/bin/python -m installer dist/*.whl
+  test-env/bin/python -m pytest -v
+}
+
+package() {
+  cd $_pkgname-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+}

Reply via email to