[arch-commits] Commit in python-cytoolz/repos/community-x86_64 (PKGBUILD PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Tue Jul 12 19:55:18 UTC 2022


    Date: Tuesday, July 12, 2022 @ 19:55:18
  Author: dvzrv
Revision: 1251199

archrelease: copy trunk to community-x86_64

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

----------+
 PKGBUILD |   79 +++++++++++++++++++++++++++----------------------------------
 1 file changed, 36 insertions(+), 43 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-07-12 19:55:08 UTC (rev 1251198)
+++ PKGBUILD	2022-07-12 19:55:18 UTC (rev 1251199)
@@ -1,43 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=cytoolz
-pkgname=python-cytoolz
-pkgver=0.11.2
-pkgrel=3
-pkgdesc="Cython implementation of Toolz: High performance functional utilities"
-arch=('x86_64')
-url="https://github.com/pytoolz/cytoolz/"
-license=('BSD')
-depends=('cython' 'python-toolz')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('7df91df94eee56097798ab75222a8c48d7bab042bfb284230c8888121a166fbf356a13ee49dc5fc54d5a8aad3c7bfbe0e4225ba20dbe36927655154e93b7bd13')
-b2sums=('9ed21c1a285b2d7dbe5c7e93656f9f062a184c20d81f9739d0c7173deae7c6d90fe85d77a56f08fc9af1cbce8fd6d6cdccdd44a6bfb2eb69268ae4fdee006147')
-
-prepare() {
-  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  # build C extension
-  python setup.py build_ext --inplace --with-cython
-  # build python extension
-  python setup.py build
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  local _pyver=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
-  export PYTHONPATH="build/lib.linux-${CARCH}-${_pyver}/:${PYTHONPATH}"
-  echo "$PYTHONPATH"
-  pytest -v
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --optimize=1 --root="${pkgdir}"
-  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}

Copied: python-cytoolz/repos/community-x86_64/PKGBUILD (from rev 1251198, python-cytoolz/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-07-12 19:55:18 UTC (rev 1251199)
@@ -0,0 +1,36 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=cytoolz
+pkgname=python-cytoolz
+pkgver=0.12.0
+pkgrel=1
+pkgdesc="Cython implementation of Toolz: High performance functional utilities"
+arch=(x86_64)
+url="https://github.com/pytoolz/cytoolz/"
+license=(BSD)
+depends=(cython python-toolz)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pytest)
+options=(debug)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha512sums=('efc42ed63676389279e0733944d8d41ce0f0139337103e44e9cc04ebb0f346e2e034b6dbb9160e5486bcd9af5b1fde49ef61e18a48922c3d0bab6fc4f6526338')
+b2sums=('ff6ada5f16acf016e57078f049c375fcea1031220b904157bbc5286645c08e2606debc5d016c0edbfd5d0ee32ca9b4754ba09672f067eebb5f630b9b05639c05')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $_name-$pkgver
+  local _pyver=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+  export PYTHONPATH="build/lib.linux-${CARCH}-${_pyver}/:${PYTHONPATH}"
+  pytest -v
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}



More information about the arch-commits mailing list