[arch-commits] Commit in python-statsmodels/repos/community-x86_64 (PKGBUILD PKGBUILD)
Bruno Pagani
archange at gemini.archlinux.org
Fri Mar 18 22:59:27 UTC 2022
Date: Friday, March 18, 2022 @ 22:59:27
Author: archange
Revision: 1159296
archrelease: copy trunk to community-x86_64
Added:
python-statsmodels/repos/community-x86_64/PKGBUILD
(from rev 1159295, python-statsmodels/trunk/PKGBUILD)
Deleted:
python-statsmodels/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 70 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 37 insertions(+), 33 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-18 22:59:02 UTC (rev 1159295)
+++ PKGBUILD 2022-03-18 22:59:27 UTC (rev 1159296)
@@ -1,33 +0,0 @@
-# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
-# 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
-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")
-sha256sums=('2c37244a87d9116f9e7de134219fcecee947ffe43cb66b949ee6d0422edfb4cc')
-
-build() {
- cd "$srcdir"/statsmodels-${pkgver}
- python setup.py build
-}
-
-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
-}
Copied: python-statsmodels/repos/community-x86_64/PKGBUILD (from rev 1159295, python-statsmodels/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-03-18 22:59:27 UTC (rev 1159296)
@@ -0,0 +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>
+
+pkgname=python-statsmodels
+pkgver=0.13.2
+pkgrel=2
+pkgdesc="Statistical computations and models for use with SciPy"
+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 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 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