Date: Monday, April 24, 2023 @ 10:45:58
  Author: dvzrv
Revision: 1448484

upgpkg: python-numba 0.58.0dev0-1: Upgrade to 0.58.0dev0 and rebuild against 
Python 3.11.

Upgrade to dev version as it is the only one supporting Python 3.11.
Add all direct dependencies.
Sort dependencies alphabetically.
Switch to PEP517.

Modified:
  python-numba/trunk/PKGBUILD

----------+
 PKGBUILD |   52 +++++++++++++++++++++++++++++++++++++++-------------
 1 file changed, 39 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-24 10:25:35 UTC (rev 1448483)
+++ PKGBUILD    2023-04-24 10:45:58 UTC (rev 1448484)
@@ -1,32 +1,58 @@
 # Maintainer: Bruno Pagani <[email protected]>
 
 pkgname=python-numba
-pkgver=0.56.4
-pkgrel=2
+pkgver=0.58.0dev0
+pkgrel=1
 pkgdesc="JIT compiler that translates a subset of Python and NumPy code into 
fast machine code"
 url="https://numba.pydata.org/";
 arch=(x86_64)
 license=(BSD)
-depends=(python-llvmlite python-numpy python-setuptools)
-makedepends=(openmp tbb)
+depends=(
+  gcc-libs
+  glibc
+  python
+  python-llvmlite
+  python-numpy
+  python-setuptools
+)
+makedepends=(
+  onetbb
+  openmp
+  python-build
+  python-installer
+  python-wheel
+)
 optdepends=(
+  'onetbb: TBB threading backend'
   'openmp: OpenMP threading backend'
-  'tbb: TBB threading backend'
+  'python-cffi: use of CFFI bindings in compiled functions'
+  'python-colorama: error message highlighting'
   'python-scipy: cython bindings used in np.linalg.* support'
   'python-jinja: “pretty” type annotation output (HTML) via the CLI'
-  'python-cffi: use of CFFI bindings in compiled functions'
-  'python-yaml: use of a .numba_config.yaml file for storing per project 
configuration options'
-  'python-colorama: error message highlighting'
+  'python-pyelftools: for code generation'
   'python-pygments: “pretty” type annotation'
+  'python-pyyaml: use of a .numba_config.yaml file for storing per project 
configuration options'
+  'python-psutil: for sysinfo'
 )
-checkdepends=(python-pytest python-cffi python-jinja python-pygments
-              python-scipy python-yaml python-ipykernel python-pip gdb ipython)
+checkdepends=(
+  gdb
+  ipython
+  python-cffi
+  python-ipykernel
+  python-jinja
+  python-pexpect
+  python-pip
+  python-pygments
+  python-pytest
+  python-pyyaml
+  python-scipy
+)
 source=(https://github.com/numba/numba/archive/$pkgver/$pkgname-$pkgver.tar.gz)
-sha256sums=('ab96b731fb9dee12b404b42b7c1fb82c119352648906a80526afa73658895b73')
+sha256sums=('8740c8e0fd540efd3202f6dae38fe795683e150aee99361e74da5db64cf5637a')
 
 build() {
   cd numba-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -49,6 +75,6 @@
 
 package() {
   cd numba-$pkgver
-  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }

Reply via email to