# Contributor: Dmitry Romanenko # Maintainer: Dmitry Romanenko pkgname=py3-setuptools_scm _pkgname=setuptools_scm pkgver=3.3.3 pkgrel=1 pkgdesc="the blessed package to manage your versions by scm tags" url="https://github.com/pypa/setuptools_scm" arch="noarch" license="MIT" depends="python3" makedepends="py3-setuptools" checkdepends="py3-pytest py3-pip git mercurial" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver replaces="py-setuptools_scm" # Backwards compatibility provides="py-setuptools_scm=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build } check() { PYTHONPATH=$PWD/src python3 -m pytest } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="196d4785a1802875d89b9e54ae788e791a9c5cb685109784059955b691242984e42b96d77075116790935f56be82259bc2588d95d65ecbb101261d76daddb83c setuptools_scm-3.3.3.tar.gz"