~dricottone/huttese-apk

ref: 13006260611688e444ddfa42918304282148238b huttese-apk/pkgsrc/py3-atpublic/APKBUILD -rw-r--r-- 1.2 KiB
13006260Dominic Ricottone Major updates 1 year, 8 months ago
                                                                                
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Contributor: Drew DeVault <sir@cmpwn.com>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-atpublic
_pyname=atpublic
pkgver=3.1.1
pkgrel=0
pkgdesc="@public for populating __all__"
url="https://gitlab.com/warsaw/public"
arch="noarch"
license="Apache-2.0"
makedepends="python3-dev py3-setuptools py3-build py3-installer py3-wheel py3-toml"
checkdepends="py3-sybil py3-pytest py3-pytest-cov"
_pypiprefix="${_pyname%${_pyname#?}}"
source="
	https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz
	pyproject.toml
"
replaces="py-atpublic"
builddir="$srcdir"/$_pyname-$pkgver

prepare() {
	default_prepare
	# Remove pdm garbage
	cp "$srcdir"/pyproject.toml "$builddir"
}

build() {
	python3 -m build --no-isolation --wheel
}

check() {
	export PYTHONPATH="$builddir"/src
	python3 -m pytest
}

package() {
	python3 -m installer -d"$pkgdir" dist/$_pyname-$pkgver-py3-none-any.whl
}

sha512sums="
b34dbb236717b2017de95aa79226f0138e77814a4041e26e98f50db8f8521d81b60f9998aed719e1e1f2ee29a7c590170725e12a54260900ce9819ea3a623dac  atpublic-3.1.1.tar.gz
a3ef1b33c4872937a659a76450e63f707b10a9193a0246e339d939aff4b643f4db01eb0a962050e7c8267f847c3eacf5b4b15b3ec775840b36ce7977784c33de  pyproject.toml
"