aboutsummaryrefslogtreecommitdiffstats
path: root/community/pyproject2setuppy/APKBUILD
blob: 6c293ade27f5b142d99bce7a6243e82c2f228cee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=pyproject2setuppy
pkgver=17
pkgrel=0
pkgdesc="Cheap builder for pyproject-based build systems"
url="https://github.com/mgorny/pyproject2setuppy"
arch="noarch"
license="BSD-2-Clause"
depends="py3-toml py3-setuptools"
options="!check" # test depends from flit that is not avail atm
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/mgorny/pyproject2setuppy/archive/v$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
0291f9ad1c3059a4ccd366d8f1078ffd57de89cc128e996126f62a92ac4dded9c7da25be1325ca9f660062ba3a65fd01d62d4ffb22084cec7f4aba79e552ae2f  pyproject2setuppy-17.tar.gz
"