Package Details: python-mizani 0.10.0-2

Git Clone URL: https://aur.archlinux.org/python-mizani.git (read-only, click to copy)
Package Base: python-mizani
Description: Scales for python
Upstream URL: https://github.com/has2k1/mizani
Licenses: BSD
Submitter: flying-sheep
Maintainer: flying-sheep
Last Packager: flying-sheep
Votes: 0
Popularity: 0.000000
First Submitted: 2018-02-15 10:10 (UTC)
Last Updated: 2023-11-02 14:35 (UTC)

Latest Comments

tskaar commented on 2023-10-29 18:54 (UTC) (edited on 2023-10-29 18:55 (UTC) by tskaar)

Here's the git-diff for upgrading the package to v0.10.0 (newest as per 2023-10-29):

diff --git a/PKGBUILD b/PKGBUILD
index eb9d4f7..b75b328 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,53 @@
-_name=mizani
-pkgname=python-$_name
-pkgver=0.7.4
-pkgrel=2
+_name='mizani'
+pkgname="python-$_name"
+pkgver=0.10.0
+pkgrel=1
 pkgdesc='Scales for python'
 arch=(any)
 url="https://github.com/has2k1/$_name"
 license=(BSD)
 depends=(
-   python
-   python-numpy
-   python-pandas
-   python-matplotlib
-   python-palettable
+   'python'
+   'python-numpy'
+   'python-pandas'
+   'python-scipy'
+)
+makedepends=(
+   'python-setuptools'
+   'python-setuptools-scm'
+   'python-build'
+   'python-installer'
+   'python-wheel'
+)
+
+checkdepends=(
+   'python-pytest'
 )
-makedepends=(python-setuptools python-build python-installer python-wheel)
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
-sha256sums=('b84b923cd3b8b4c0421a750672e5a85ed2aa05e632bd37af8419d5bbf65c397c')
+sha256sums=('4063e16cb7ce932e88d7bb9ac6552d3a0bf86eda2f92d3aee13777448cd580b7')
+_archive="${_name}-${pkgver}"
+
+prepare() {
+   cd "${_archive}"
+   # Disable coverage during check()
+   sed -i -e 's/--cov=mizani --cov-report=xml//' pyproject.toml
+}

 build() {
-   cd "$_name-$pkgver"
+   cd "${_archive}"
    python -m build --wheel --no-isolation
 }

+check() {
+   cd "${_archive}"
+   PYTHONPATH="." pytest
+}
+
 package() {
-   cd "$_name-$pkgver"
+   cd "${_archive}"
    python -m installer --destdir="$pkgdir" dist/*.whl
+
+   install -Dm0644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE
 }