APKBUILD 1.11 KB
Newer Older
1
2
# Contributor: Dmitry Romanenko <dmitry@romanenko.in>
# Maintainer: Dmitry Romanenko <dmitry@romanenko.in>
Leo's avatar
Leo committed
3
pkgname=py3-setuptools_scm
4
_pkgname=setuptools_scm
5
pkgver=4.1.2
6
pkgrel=0
7
pkgdesc="The blessed package to manage your versions by scm tags"
8
options="!check" # Tests need to be adapted to newer pytest
9
10
11
url="https://github.com/pypa/setuptools_scm"
arch="noarch"
license="MIT"
Leo's avatar
Leo committed
12
depends="python3"
13
makedepends="py3-setuptools py3-pip"
14
checkdepends="py3-pytest git mercurial py3-toml"
15
16
17
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

Leo's avatar
Leo committed
18
19
20
replaces="py-setuptools_scm" # Backwards compatibility
provides="py-setuptools_scm=$pkgver-r$pkgrel" # Backwards compatibility

21
22
23
24
case "$CARCH" in
mips*)	options="!check" ;;
esac

25
26
27
28
build() {
	python3 setup.py build
}

29
check() {
Leo's avatar
Leo committed
30
	PYTHONPATH=$PWD/src python3 -m pytest
31
32
}

33
package() {
Leo's avatar
Leo committed
34
	python3 setup.py install --prefix=/usr --root="$pkgdir"
35
36
}

37
sha512sums="3d9d1e0479f00f6159b57f9e5b24e34df035d2009ec50d3779c77b1246aabc6d816f2a2d3e6651791316009e39dfcc8a1b84b779077c39501b9de5740abe6af6  setuptools_scm-4.1.2.tar.gz"