python3-tomli-w: always use python3-flit-core

This commit is contained in:
Tim Biermann 2023-04-02 17:29:17 +02:00
parent 3449d576c4
commit 0c167361d2
Signed by: tb
GPG Key ID: 42F8B4E30B673606
2 changed files with 5 additions and 14 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF37Ie+YJ42TYo7qrUAtN0ukPZcCob6G11gJsRVosE7AAGm5DyAek4VwH/6nWkuhuRqWlugrcNsz2iL0/z/o2wlQU=
SHA256 (Pkgfile) = 0fd2d02fb5494920bba127bbdc4ed342b5365b90ffcf0766f3e7058a84c40f86
RWSagIOpLGJF34Dp7Frkw9km/o0luA4cMwiW7EBWTnZA2n9ToOB4syB+W0OEhRpm+xm1MrPjcz6TDoMvGid2RhEd7ZiV+0BvFwc=
SHA256 (Pkgfile) = c0c3a170d30c3f1e03d1519dcfb009b1344f53cb60f9319aafa7a72f3db6405a
SHA256 (.footprint) = 524928af00519d48dadf7ac30d8373402942ef70da396d0dfa3593cac570ce3b
SHA256 (tomli-w-1.0.0.tar.gz) = 4fe1fb4696899c01356ef4e028c975103abf62e5fa9472f31f1714100f1b065d

View File

@ -1,8 +1,7 @@
# Description: A lil' TOML writer
# URL: https://github.com/hukkin/tomli-w
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-poetry
# Optional: python3-flit-core
# Depends on: python3-build python3-flit-core python3-installer
name=python3-tomli-w
version=1.0.0
@ -12,14 +11,6 @@ source=(https://github.com/hukkin/tomli-w/archive/$version/tomli-w-$version.tar.
build() {
cd tomli-w-$version
_pyver=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
if prt-get isinst python3-flit-core; then
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
/usr/bin/python3 -m installer --compile-bytecode 0 --destdir=$PKG dist/*.whl
else
/usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --compile --no-deps tomli-w==$version
fi
rm -rf $PKG/usr/lib/python$_pyver/site-packages/tomli_w-$version.dist-info/{INSTALLER,REQUESTED}
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
/usr/bin/python3 -m installer --compile-bytecode 0 --destdir=$PKG dist/*.whl
}