mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-16 04:35:13 +03:00
Switch to gpep517 and fix check failure due to removed `setup.py test` command, which was deprecated in setuptools 72.0.0. ``` usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: invalid command 'test' ``` Ref: https://gitlab.alpinelinux.org/alpine/aports/-/issues/17110
40 lines
1.3 KiB
Text
40 lines
1.3 KiB
Text
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=py3-cffsubr
|
|
pkgver=0.2.9
|
|
pkgrel=6
|
|
pkgdesc="Standalone CFF subroutinizer based on AFDKO tx"
|
|
url="https://github.com/adobe-type-tools/cffsubr"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
depends="py3-fonttools"
|
|
makedepends="py3-gpep517 py3-setuptools py3-setuptools_scm"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/c/cffsubr/cffsubr-$pkgver.tar.gz
|
|
drop-setuptools-git-ls-files.patch
|
|
gcc14.patch
|
|
"
|
|
builddir="$srcdir/cffsubr-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
600b6b63ad70e5f00da0f64dd1410d49af622ac923aea3346c904e47e490410a6205fc5b2c2ddc6c684af04face3c217a2c722141f67d5f8ce5b87543eb363e4 cffsubr-0.2.9.tar.gz
|
|
557a816d3ac4591396e448b0138219cbe976bd7119a3cfefb6b803720918902b768280f3bcd844c62ed5ed1e1b59835ef4505d9ad81b6781adfe7d0b556e3b7e drop-setuptools-git-ls-files.patch
|
|
aa3e51c2cc8b6c437b9127f05448f7b15c9e4f47d97a84dba82581047613418d99a7c7a663408994472918d64d8d4da01a9f6a308519591964e5d5dffc440009 gcc14.patch
|
|
"
|