diff options
author | Philipp A. | 2023-11-02 15:35:38 +0100 |
---|---|---|
committer | Philipp A. | 2023-11-02 15:35:38 +0100 |
commit | 5e0f6a5b80f59ef4d645bda08eb78251b8d90e4a (patch) | |
tree | 6e671c78f11062f9648d4998cd22d46e721211dd | |
parent | 425dde6e136e0b2e6825a8296cb499d37acd909f (diff) | |
download | aur-python-mizani.tar.gz |
run checks, add license
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 20 |
3 files changed, 22 insertions, 3 deletions
@@ -1,10 +1,12 @@ pkgbase = python-mizani pkgdesc = Scales for python pkgver = 0.10.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/has2k1/mizani arch = any license = BSD + checkdepends = python-pytest + checkdepends = python-pytest-cov makedepends = python-setuptools makedepends = python-setuptools-scm makedepends = python-build diff --git a/.gitignore b/.gitignore index 1d2dabc4faac..a327084529c0 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /pkg/ /*.tar.gz /*.pkg.* +/*.log @@ -1,7 +1,7 @@ _name=mizani pkgname=python-$_name pkgver=0.10.0 -pkgrel=1 +pkgrel=2 pkgdesc='Scales for python' arch=(any) url="https://github.com/has2k1/$_name" @@ -12,7 +12,17 @@ depends=( python-scipy python-pandas ) -makedepends=(python-setuptools python-setuptools-scm python-build python-installer python-wheel) +makedepends=( + python-setuptools + python-setuptools-scm + python-build + python-installer + python-wheel +) +checkdepends=( + python-pytest + python-pytest-cov +) source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") sha256sums=('4063e16cb7ce932e88d7bb9ac6552d3a0bf86eda2f92d3aee13777448cd580b7') @@ -21,8 +31,14 @@ build() { python -m build --wheel --no-isolation } +check() { + cd "$_name-$pkgver" + PYTHONPATH=. pytest --color=yes +} + package() { cd "$_name-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |