aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCeleste <20312-Celeste@users.gitlab.alpinelinux.org>2023-09-07 14:42:18 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2023-09-08 05:25:08 +0000
commit83106d3969fd839565721a4ba9d750fef0304fae (patch)
tree66f7c32d63053439935fde742fdde049367b4f02
parent91bfa2aba78eae9020f75f851344a5021dc5039b (diff)
community/py3-build: upgrade to 1.0.3
also, change source upstream to Github, and run tests
-rw-r--r--community/py3-build/APKBUILD28
1 files changed, 17 insertions, 11 deletions
diff --git a/community/py3-build/APKBUILD b/community/py3-build/APKBUILD
index 6100dd91a69..5cb0b798344 100644
--- a/community/py3-build/APKBUILD
+++ b/community/py3-build/APKBUILD
@@ -1,18 +1,25 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-build
-_pkgname=build
-pkgver=0.10.0
-pkgrel=1
+pkgver=1.0.3
+pkgrel=0
pkgdesc="Correct PEP517 package builder"
url="https://github.com/pypa/build"
arch="noarch"
license="MIT"
depends="python3 py3-packaging py3-pyproject-hooks"
-makedepends="py3-wheel py3-flit-core py3-gpep517 py3-installer py3-pyproject-hooks"
+makedepends="py3-wheel py3-flit-core py3-gpep517 py3-installer"
+checkdepends="
+ py3-filelock
+ py3-pytest-forked
+ py3-pytest-mock
+ py3-pytest-rerunfailures
+ py3-pytest-xdist
+ py3-setuptools
+ "
subpackages="$pkgname-pyc"
-source="https://files.pythonhosted.org/packages/source/b/$_pkgname/$_pkgname-$pkgver.tar.gz"
-builddir="$srcdir"/$_pkgname-$pkgver
+source="https://github.com/pypa/build/archive/refs/tags/$pkgver/py3-build-$pkgver.tar.gz"
+builddir="$srcdir/build-$pkgver"
replaces=py-build # Backwards compatibility
provides=py-build=$pkgver-r$pkgrel # Backwards compatibility
@@ -23,11 +30,10 @@ build() {
--output-fd 3 3>&1 >&2
}
-# Test suite is not shipped at the moment
check() {
- python3 -m venv --clear --without-pip --system-site-packages test-env
- test-env/bin/python3 -m installer .dist/build*.whl
- test-env/bin/python3 -m build --version
+ python3 -m venv --clear --without-pip --system-site-packages .testenv
+ .testenv/bin/python3 -m installer .dist/build*.whl
+ .testenv/bin/python3 -m pytest -n auto --forked
}
package() {
@@ -36,5 +42,5 @@ package() {
}
sha512sums="
-7278b570fa1e1eb6e6d4c04298eee2917311a29f0d6e1497945f00b7d1028c4d932b3d74a533ef6aaa46d7d3f140dd7e5b3781c5fd62f5f828ed227d5ff77565 build-0.10.0.tar.gz
+c2c67ccf407bb1780c90e02bbc2692b8b10cfe441f445c05d38a675f3498d1d6f94306dcbe270c181e14471f1dd3712e2cba33a4792f6140e2e9f0aa3c8e7b81 py3-build-1.0.3.tar.gz
"