mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 12:01:41 +02:00
main/py3-imagesize: switch to gpep517
This commit is contained in:
parent
898bb641c5
commit
1949cb2007
@ -2,13 +2,13 @@
|
||||
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
||||
pkgname=py3-imagesize
|
||||
pkgver=1.4.1
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="Getting image size from png/jpeg/jpeg2000/gif file"
|
||||
url="https://github.com/shibukawa/imagesize_py"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="python3"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
||||
checkdepends="py3-pytest"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://files.pythonhosted.org/packages/source/i/imagesize/imagesize-$pkgver.tar.gz"
|
||||
@ -18,15 +18,18 @@ replaces="py-imagesize" # Backwards compatibility
|
||||
provides="py-imagesize=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
py.test-3 test/test_get.py -v
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
.testenv/bin/python3 -m installer .dist/*.whl
|
||||
.testenv/bin/python3 -m pytest -v \
|
||||
--deselect=test/test_get_filelike.py
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
python3 -m installer -d "$pkgdir" .dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user