[arch-commits] Commit in python-vector/repos/community-any (PKGBUILD PKGBUILD)

Konstantin Gizdov kgizdov at gemini.archlinux.org
Wed Mar 23 21:29:06 UTC 2022


    Date: Wednesday, March 23, 2022 @ 21:29:05
  Author: kgizdov
Revision: 1172081

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-23 21:28:54 UTC (rev 1172080)
+++ PKGBUILD	2022-03-23 21:29:05 UTC (rev 1172081)
@@ -1,31 +0,0 @@
-# Maintainer: Konstantin Gizdov <arch at kge dot pw>
-
-_pkgname='vector'
-pkgname="python-${_pkgname}"
-pkgver='0.8.5'
-pkgrel=1
-pkgdesc="A library for 2D, 3D, and Lorentz vectors, especially arrays of vectors, to solve common physics problems in a NumPy-like way."
-arch=('any')
-url='https://github.com/scikit-hep/vector'
-license=('MIT')
-depends=('python-numpy' 'python-packaging' 'python-importlib-metadata' 'python-typing-extensions')
-makedepends=('git' 'python-setuptools' 'python-setuptools-scm' 'python-toml')
-checkdepends=('python-pytest' )
-source=("${pkgname}::git+${url}#tag=v${pkgver}")
-sha256sums=('SKIP')
-
-build() {
-  cd "${srcdir}/${pkgname}"
-  python setup.py bdist_egg
-}
-
-check() {
-  cd "${srcdir}/${pkgname}"
-  PYTHONPATH="${PWD}/build/lib:${PWD}/src" pytest
-}
-
-package() {
-  cd "${srcdir}/${pkgname}"
-  python setup.py install  --skip-build --root="${pkgdir}/" --optimize=1
-  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}

Copied: python-vector/repos/community-any/PKGBUILD (from rev 1172080, python-vector/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-03-23 21:29:05 UTC (rev 1172081)
@@ -0,0 +1,31 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+
+_pkgname='vector'
+pkgname="python-${_pkgname}"
+pkgver='0.8.5'
+pkgrel=2
+pkgdesc="A library for 2D, 3D, and Lorentz vectors, especially arrays of vectors, to solve common physics problems in a NumPy-like way."
+arch=('any')
+url='https://github.com/scikit-hep/vector'
+license=('MIT')
+depends=('python-numpy' 'python-packaging' 'python-importlib-metadata' 'python-typing-extensions')
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel')
+checkdepends=('python-pytest')
+source=("${pkgname}::git+${url}#tag=v${pkgver}")
+sha256sums=('SKIP')
+
+build() {
+  cd "${srcdir}/${pkgname}"
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd "${srcdir}/${pkgname}"
+  PYTHONPATH="${PWD}/build/lib:${PWD}/src" pytest
+}
+
+package() {
+  cd "${srcdir}/${pkgname}"
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list