summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authoradrien10182024-02-03 04:35:11 +0800
committeradrien10182024-02-03 04:35:11 +0800
commit5f606246ac581ed0195cb2d15d554349a9292b2c (patch)
tree68bbf466ca753ee35824a83e5184d4013edbe8de /PKGBUILD
parentdafcc7cc5a532eae96b59a69fa930b704078dcd5 (diff)
downloadaur-python2-setuptools-scm.tar.gz
Add testing
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 8 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index c9fe0bb61659..834ac01243b4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,11 +3,13 @@
_name=setuptools_scm
pkgname=python2-setuptools-scm
pkgver=5.0.2
-pkgrel=1
+pkgrel=2
pkgdesc="The blessed package to manage your versions by scm tags"
arch=('any')
+license=('MIT')
url="https://github.com/pypa/setuptools_scm"
depends=('python2-setuptools')
+checkdepends=('python2-pytest' 'python2-packaging' 'python2-pip')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('83a0cedd3449e3946307811a4c7b9d89c4b5fd464a2fb5eeccd0a5bb158ae5c8')
@@ -21,3 +23,8 @@ package() {
python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
}
+
+check() {
+ cd $_name-$pkgver
+ PYTHONPATH="$(pwd)/build/lib" python2 -m pytest
+}