[arch-commits] Commit in python-statsmodels/trunk (PKGBUILD)
Bruno Pagani
archange at gemini.archlinux.org
Fri Mar 18 22:59:02 UTC 2022
Date: Friday, March 18, 2022 @ 22:59:02
Author: archange
Revision: 1159295
Revamp PKGBUILD, enable tests
Modified:
python-statsmodels/trunk/PKGBUILD
----------+
PKGBUILD | 42 +++++++++++++++++++++++-------------------
1 file changed, 23 insertions(+), 19 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-18 22:52:25 UTC (rev 1159294)
+++ PKGBUILD 2022-03-18 22:59:02 UTC (rev 1159295)
@@ -1,33 +1,37 @@
# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
# Contributor: Oliver Sherouse <oliver DOT sherouse AT gmail DOT com>
-# TODO: create X-12-ARIMA or X-13ARIMA-SEATS (can be used for time-series analysis)
-
pkgname=python-statsmodels
pkgver=0.13.2
-pkgrel=1
+pkgrel=2
pkgdesc="Statistical computations and models for use with SciPy"
-arch=('x86_64')
-url="http://statsmodels.sourceforge.net/"
-license=('BSD')
-depends=('python-scipy' 'python-pandas' 'python-patsy')
-makedepends=('python-setuptools' 'cython')
-optdepends=('python-nose: needed for integrated test suite'
- 'python-matplotlib: needed for plotting functions'
- 'python-joblib: accelerate distributed estimation for certain models'
- 'jupyter: needed to run the notebooks')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/statsmodels/statsmodels/archive/v${pkgver}.tar.gz")
+arch=(x86_64)
+url="https://www.statsmodels.org/"
+license=(BSD)
+depends=(python-numpy python-scipy python-pandas python-patsy)
+makedepends=(python-setuptools cython)
+optdepends=('jupyter: needed to run the notebooks'
+ 'python-cvxopt: regularized fitting of some models'
+ 'python-joblib: accelerate distributed estimation for certain models'
+ 'python-matplotlib: plotting functions')
+checkdepends=(python-pytest python-pytest-xdist python-joblib python-matplotlib)
+source=(https://github.com/statsmodels/statsmodels/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=('2c37244a87d9116f9e7de134219fcecee947ffe43cb66b949ee6d0422edfb4cc')
build() {
- cd "$srcdir"/statsmodels-${pkgver}
+ cd statsmodels-${pkgver}
python setup.py build
}
+check() {
+ local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+ cd statsmodels-${pkgver}/build/lib.linux-${CARCH}-${python_version}
+ PYTHONPATH="${PWD}" pytest -vv --color=yes statsmodels || echo "Tests failed"
+}
+
package() {
- cd "$srcdir"/statsmodels-${pkgver}
-
- python setup.py install --skip-build --root="$pkgdir" --optimize=1
-
- install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ cd statsmodels-${pkgver}
+ python setup.py install --skip-build --root="${pkgdir}" --optimize=1
+ install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}
}
More information about the arch-commits
mailing list