mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
testing/py3-python-archive: build with gpep517
This commit is contained in:
parent
00e8b04cbb
commit
03b8f0d300
@ -3,25 +3,30 @@
|
||||
pkgname=py3-python-archive
|
||||
_pkgname=python-archive
|
||||
pkgver=0.2
|
||||
pkgrel=6
|
||||
pkgrel=7
|
||||
pkgdesc="Library for extracting zip and tar archives"
|
||||
url="https://github.com/gdub/python-archive"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
replaces="py-archive" # for backwards compatibility
|
||||
provides="py-archive=$pkgver-r$pkgrel" # for backwards compatibility
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||
builddir="$srcdir"/$_pkgname-$pkgver
|
||||
options="!check" # no tests
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="5f02fe522f44989c1b61db48239cdbda5536ff685174ba93af028591eba276dcefd7655aad3a458d92140f163724d87bbe25711c78a82e06dfb382b6ae9f5683 python-archive-0.2.tar.gz"
|
||||
sha512sums="
|
||||
5f02fe522f44989c1b61db48239cdbda5536ff685174ba93af028591eba276dcefd7655aad3a458d92140f163724d87bbe25711c78a82e06dfb382b6ae9f5683 python-archive-0.2.tar.gz
|
||||
"
|
||||
|
Loading…
Reference in New Issue
Block a user