diff options
author | Carlos Aznarán Laos | 2023-05-27 21:32:29 -0500 |
---|---|---|
committer | Carlos Aznarán Laos | 2023-05-27 21:32:29 -0500 |
commit | 12c615a2de4eb3a11fdec1623b980b9bea00289e (patch) | |
tree | cd84f46bea8a6c0cd40bc236da526928c4aaf340 | |
parent | f12f39ed2835c83de0fc5c5ed3765dfd86ddf4af (diff) | |
download | aur-12c615a2de4eb3a11fdec1623b980b9bea00289e.tar.gz |
Python 3.11 rebuild
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 14 |
2 files changed, 12 insertions, 9 deletions
@@ -1,17 +1,18 @@ pkgbase = python-numdifftools pkgdesc = Solve automatic numerical differentiation problems in one or more variables pkgver = 0.9.41 - pkgrel = 1 + pkgrel = 2 url = https://github.com/pbrod/numdifftools arch = x86_64 license = custom:BSD-3-clause - checkdepends = python-algopy checkdepends = python-hypothesis - checkdepends = python-statsmodels checkdepends = python-matplotlib + checkdepends = python-algopy + checkdepends = python-lineprofiler makedepends = python-build makedepends = python-installer makedepends = python-pytest-runner + makedepends = python-wheel depends = python-scipy source = numdifftools-0.9.41.tar.gz::https://github.com/pbrod/numdifftools/archive/v0.9.41.tar.gz sha512sums = 7eb26ca23238b1592a6d230d9b59d49e2574b97151de66fda158bc37e49e1598e7ca931628c9a163a2614a4e24bbb165f22b50ec043d43486d415123517c7148 @@ -4,28 +4,30 @@ _base=numdifftools pkgname=python-${_base} pkgver=0.9.41 -pkgrel=1 +pkgrel=2 pkgdesc="Solve automatic numerical differentiation problems in one or more variables" url="https://github.com/pbrod/${_base}" license=('custom:BSD-3-clause') arch=(x86_64) depends=(python-scipy) -makedepends=(python-build python-installer python-pytest-runner) -checkdepends=(python-algopy python-hypothesis python-statsmodels python-matplotlib) +makedepends=(python-build python-installer python-pytest-runner python-wheel) +checkdepends=(python-hypothesis python-matplotlib python-algopy python-lineprofiler) source=(${_base}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz) sha512sums=('7eb26ca23238b1592a6d230d9b59d49e2574b97151de66fda158bc37e49e1598e7ca931628c9a163a2614a4e24bbb165f22b50ec043d43486d415123517c7148') build() { cd ${_base}-${pkgver} - python setup.py build + python -m build --wheel --skip-dependency-check --no-isolation } check() { cd ${_base}-${pkgver} - python -m pytest "src/${_base}/tests" + python -m venv --system-site-packages test-env + test-env/bin/python -m installer dist/*.whl + test-env/bin/python -m pytest src/${_base}/tests -k 'not nd_scipy and not scripts and not first_order_derivative and not scalar_to_vector and not on_matrix_valued_function and not issue_25 and not run_gradient_and_hessian_benchmarks and not on_function_and_follow_function and not on_class_method_and_follow_function and not on_all_class_methods_without_decorator' } package() { cd ${_base}-${pkgver} - PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build + PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl } |