git » python-jaraco.functools.git » commit 9c80d96

python-jaraco.functools: add check(); style changes

author Chih-Hsuan Yen
2022-10-29 07:01:44 UTC
committer Chih-Hsuan Yen
2022-10-29 07:01:44 UTC
parent e717b9d53d50e85451f398d45f9c1a0883175a5c

python-jaraco.functools: add check(); style changes

PKGBUILD +8 -4

diff --git a/PKGBUILD b/PKGBUILD
index 16f81b1..616e8f3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,20 +10,24 @@ url='https://github.com/jaraco/jaraco.functools'
 license=('MIT')
 depends=('python-more-itertools')
 makedepends=('python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel')
+checkdepends=('python-pytest' 'python-jaraco.classes')
 conflicts=('python-jaraco')
 replaces=('python-jaraco')
 source=("https://files.pythonhosted.org/packages/source/j/jaraco.functools/jaraco.functools-$pkgver.tar.gz")
 sha512sums=('3f67d151f4f6553b3e560b0e6ab71cf726d6c8f36ef5e9f69b6325605547797e19a3f9eb1331cf332db498538953ccaeb75820528e6599fd7cf125abdc073e69')
 
 build() {
-  cd "$srcdir/jaraco.functools-$pkgver"
+  cd jaraco.functools-$pkgver
   python -m build --wheel --no-isolation
 }
 
+check() {
+  cd jaraco.functools-$pkgver
+  pytest
+}
+
 package() {
-  cd "$srcdir/jaraco.functools-$pkgver"
+  cd jaraco.functools-$pkgver
   python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
-
-# vim:set ts=2 sw=2 et: