diff options
author | adrien1018 | 2024-02-03 04:35:11 +0800 |
---|---|---|
committer | adrien1018 | 2024-02-03 04:35:11 +0800 |
commit | 5f606246ac581ed0195cb2d15d554349a9292b2c (patch) | |
tree | 68bbf466ca753ee35824a83e5184d4013edbe8de /PKGBUILD | |
parent | dafcc7cc5a532eae96b59a69fa930b704078dcd5 (diff) | |
download | aur-python2-setuptools-scm.tar.gz |
Add testing
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 +} |