diff options
author | psykose <alice@ayaya.dev> | 2022-11-09 19:09:55 +0000 |
---|---|---|
committer | psykose <alice@ayaya.dev> | 2022-11-22 20:33:36 +0100 |
commit | 6f7793b35f75c6638c6f8763f1907a5d57545cad (patch) | |
tree | efce8265dbcde9c185a9626eb1dc137d4712fe94 | |
parent | 049632bf02758e896d0c6c74a47cab161c2a04e1 (diff) |
community/*: use gpep517 over py3-build
51 files changed, 252 insertions, 163 deletions
diff --git a/community/py3-autocommand/APKBUILD b/community/py3-autocommand/APKBUILD index b9eed3e9c8c..1a80b86e231 100644 --- a/community/py3-autocommand/APKBUILD +++ b/community/py3-autocommand/APKBUILD @@ -1,7 +1,6 @@ # Contributor: Duncan Bellamy <dunk@denkimushi.com> # Maintainer: Duncan Bellamy <dunk@denkimushi.com> pkgname=py3-autocommand -_pkgreal=${pkgname#"py3-"} pkgver=2.2.2 pkgrel=1 pkgdesc="turns a python function into a CLI program" @@ -10,27 +9,28 @@ arch="noarch" license="LGPL-3.0-only" depends="python3" makedepends=" - py3-build - py3-installer + py3-gpep517 py3-setuptools py3-wheel " checkdepends="py3-pytest" source="https://files.pythonhosted.org/packages/source/a/autocommand/autocommand-$pkgver.tar.gz" -builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/autocommand-$pkgver" build() { - GIT_DIR=. python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { - python3 -m installer -d testenv dist/$_pkgreal-$pkgver-py3-none-any.whl + python3 -m installer -d testenv dist/autocommand-$pkgver-py3-none-any.whl local sitedir="$(python3 -c 'import site;print(site.getsitepackages()[0])')" PYTHONPATH="$PWD/testenv/$sitedir" python3 -m pytest --ignore testenv } package() { - python3 -m installer -d "$pkgdir" dist/$_pkgreal-$pkgver-py3-none-any.whl + python3 -m installer -d "$pkgdir" dist/autocommand-$pkgver-py3-none-any.whl } sha512sums=" diff --git a/community/py3-cleo/APKBUILD b/community/py3-cleo/APKBUILD index 5c977e092b9..fa88dee5655 100644 --- a/community/py3-cleo/APKBUILD +++ b/community/py3-cleo/APKBUILD @@ -9,14 +9,15 @@ url="https://github.com/python-poetry/cleo" arch="noarch" license="MIT" depends="python3 py3-crashtest py3-pylev" -makedepends="py3-build py3-installer py3-poetry-core" +makedepends="py3-gpep517 py3-poetry-core" checkdepends="py3-pytest py3-pytest-mock" source="$pkgname-$pkgver.tar.gz::https://github.com/python-poetry/cleo/archive/refs/tags/$pkgver.tar.gz" builddir="$srcdir/cleo-$pkgver" build() { - # XXX: hack for poetry to not ignore files - GIT_DIR=. python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-dns-lexicon/APKBUILD b/community/py3-dns-lexicon/APKBUILD index 71318104bf5..1d81fee7bcf 100644 --- a/community/py3-dns-lexicon/APKBUILD +++ b/community/py3-dns-lexicon/APKBUILD @@ -15,7 +15,7 @@ depends=" py3-tldextract py3-yaml " -makedepends="py3-build py3-installer py3-setuptools py3-poetry-core" +makedepends="py3-gpep517 py3-poetry-core" _providerdepends=" py3-boto3 py3-localzone @@ -28,6 +28,7 @@ checkdepends=" py3-filelock py3-pytest py3-pytest-mock + py3-pytest-xdist py3-requests-file py3-vcrpy $_providerdepends @@ -36,15 +37,16 @@ source="$pkgname-github-$pkgver.zip::https://github.com/AnalogJ/lexicon/archive/ builddir="$srcdir/lexicon-$pkgver" build() { - # XXX: hack for poetry to not ignore files - GIT_DIR=. python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { python3 -m installer -d testenv \ dist/dns_lexicon-$pkgver-py3-none-any.whl local sitedir="$(python3 -c 'import site;print(site.getsitepackages()[0])')" - PYTHONPATH="$PWD/testenv/$sitedir" python3 -m pytest --ignore lexicon/tests/providers/test_localzone.py lexicon + PYTHONPATH="$PWD/testenv/$sitedir" python3 -m pytest -n $JOBS --ignore lexicon/tests/providers/test_localzone.py lexicon } package() { diff --git a/community/py3-dnsrobocert/APKBUILD b/community/py3-dnsrobocert/APKBUILD index ee5c4304df4..bf2d423020f 100644 --- a/community/py3-dnsrobocert/APKBUILD +++ b/community/py3-dnsrobocert/APKBUILD @@ -30,8 +30,7 @@ depends=" py3-yaml " makedepends=" - py3-build - py3-installer + py3-gpep517 py3-poetry-core " checkdepends="pebble py3-pytest" @@ -41,8 +40,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/adferrand/dnsrobocert/archiv builddir="$srcdir/dnsrobocert-$pkgver" build() { - # XXX: hack for poetry to not ignore files - GIT_DIR=. python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-executing/APKBUILD b/community/py3-executing/APKBUILD index d6357250b83..a45e1b6d5c9 100644 --- a/community/py3-executing/APKBUILD +++ b/community/py3-executing/APKBUILD @@ -8,7 +8,7 @@ url="https://github.com/alexmojaki/executing" arch="noarch" license="MIT" depends="python3" -makedepends="py3-installer py3-setuptools_scm py3-wheel py3-build" +makedepends="py3-gpep517 py3-setuptools_scm py3-wheel" checkdepends="py3-pytest" source="$pkgname-$pkgver.tar.gz::https://github.com/alexmojaki/executing/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/executing-$pkgver" @@ -16,10 +16,9 @@ options="!check" # tests are failing for some reason build() { export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver - python3 -m build \ - --no-isolation \ - --wheel \ - . + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-fireflyalgorithm/APKBUILD b/community/py3-fireflyalgorithm/APKBUILD index bece1277d9a..58b5fcb05d0 100644 --- a/community/py3-fireflyalgorithm/APKBUILD +++ b/community/py3-fireflyalgorithm/APKBUILD @@ -9,13 +9,15 @@ url="https://github.com/firefly-cpp/FireflyAlgorithm" arch="noarch" license="MIT" depends="python3 py3-numpy" -makedepends="py3-build py3-poetry-core py3-wheel py3-installer" +makedepends="py3-gpep517 py3-poetry-core" checkdepends="py3-pytest" source="https://github.com/firefly-cpp/FireflyAlgorithm/archive/$pkgver/$_pkgorig-$pkgver.tar.gz" builddir="$srcdir/FireflyAlgorithm-$pkgver" build() { - GIT_DIR="$builddir" python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-fitfile/APKBUILD b/community/py3-fitfile/APKBUILD index 6b014a4a4a7..6aba01e9163 100644 --- a/community/py3-fitfile/APKBUILD +++ b/community/py3-fitfile/APKBUILD @@ -14,16 +14,17 @@ checkdepends=" py3-pytest " makedepends=" - py3-build - py3-installer - py3-wheel + py3-gpep517 py3-setuptools + py3-wheel " source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/f/fitfile/fitfile-$pkgver.tar.gz" builddir="$srcdir/$_pkgorig-$pkgver" build() { - python3 -m build --wheel --no-isolation + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-geotiler/APKBUILD b/community/py3-geotiler/APKBUILD index caa422764cb..1e6a2e12d51 100644 --- a/community/py3-geotiler/APKBUILD +++ b/community/py3-geotiler/APKBUILD @@ -22,8 +22,8 @@ checkdepends=" py3-pytest-cov " makedepends=" - py3-build - py3-installer + py3-gpep517 + py3-setuptools py3-wheel " source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/g/geotiler/geotiler-$pkgver.tar.gz @@ -31,7 +31,9 @@ source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/ builddir="$srcdir/$_pkgorig-$pkgver" build() { - python3 -m build --wheel --no-isolation + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-hatch-nodejs-version/APKBUILD b/community/py3-hatch-nodejs-version/APKBUILD index 148f24eebb9..8c0fc7e1ba0 100644 --- a/community/py3-hatch-nodejs-version/APKBUILD +++ b/community/py3-hatch-nodejs-version/APKBUILD @@ -8,13 +8,15 @@ url="https://github.com/agoose77/hatch-nodejs-version" arch="noarch" license="MIT" depends="py3-hatchling" -makedepends="py3-build py3-installer" +makedepends="py3-gpep517 py3-installer" checkdepends="py3-pytest" source="https://github.com/agoose77/hatch-nodejs-version/archive/v$pkgver/python-hatch-nodejs-version-$pkgver.tar.gz" builddir="$srcdir/hatch-nodejs-version-$pkgver" build() { - python3 -m build --wheel --no-isolation --skip-dependency-check + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-hatch-vcs/APKBUILD b/community/py3-hatch-vcs/APKBUILD index e92e897eae2..8b6d2ba0690 100644 --- a/community/py3-hatch-vcs/APKBUILD +++ b/community/py3-hatch-vcs/APKBUILD @@ -8,7 +8,7 @@ url="https://github.com/ofek/hatch-vcs" arch="noarch" license="MIT" depends="python3 py3-hatchling py3-setuptools_scm" -makedepends="py3-build py3-installer py3-wheel" +makedepends="py3-gpep517 py3-installer py3-wheel" checkdepends="py3-pytest" source="https://files.pythonhosted.org/packages/source/h/hatch-vcs/hatch_vcs-$pkgver.tar.gz $pkgname-fix-test.patch::https://github.com/ofek/hatch-vcs/commit/17011d84bb574cc41761bdf460a6f3e443cb97e8.patch @@ -16,7 +16,9 @@ source="https://files.pythonhosted.org/packages/source/h/hatch-vcs/hatch_vcs-$pk builddir="$srcdir/hatch_vcs-$pkgver" build() { - python3 -m build --skip-dependency-check --no-isolation --wheel . + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-importlib-metadata/APKBUILD b/community/py3-importlib-metadata/APKBUILD index eff37844245..f514ed73710 100644 --- a/community/py3-importlib-metadata/APKBUILD +++ b/community/py3-importlib-metadata/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Bart Ribbers <bribbers@disroot.org> pkgname=py3-importlib-metadata pkgver=5.0.0 -pkgrel=1 +pkgrel=2 pkgdesc="Read metadata from Python packages" url="https://github.com/python/importlib_metadata" arch="noarch" @@ -11,8 +11,7 @@ depends=" py3-zipp " makedepends=" - py3-build - py3-installer + py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel @@ -29,7 +28,9 @@ builddir="$srcdir/importlib_metadata-$pkgver" export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" build() { - python3 -m build --no-isolation --skip-dependency-check --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-inflect/APKBUILD b/community/py3-inflect/APKBUILD index 33dfd72bcc4..08b651d9606 100644 --- a/community/py3-inflect/APKBUILD +++ b/community/py3-inflect/APKBUILD @@ -12,8 +12,7 @@ depends=" python3 " makedepends=" - py3-build - py3-installer + py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel @@ -28,7 +27,9 @@ source="https://pypi.python.org/packages/source/i/inflect/inflect-$pkgver.tar.gz builddir="$srcdir/inflect-$pkgver" build() { - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-inform/APKBUILD b/community/py3-inform/APKBUILD index 4bed4915cb1..c9218dd547b 100644 --- a/community/py3-inform/APKBUILD +++ b/community/py3-inform/APKBUILD @@ -13,9 +13,8 @@ depends=" py3-six " makedepends=" - py3-build py3-flit-core - py3-installer + py3-gpep517 " checkdepends=" py3-pytest @@ -34,7 +33,9 @@ prepare() { } build() { - python3 -m build --no-isolation --wheel . + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-jaraco.classes/APKBUILD b/community/py3-jaraco.classes/APKBUILD index 23ae2f10b7f..10b60169902 100644 --- a/community/py3-jaraco.classes/APKBUILD +++ b/community/py3-jaraco.classes/APKBUILD @@ -9,8 +9,7 @@ arch="noarch" license="MIT" depends="python3 py3-more-itertools" makedepends=" - py3-build - py3-installer + py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel @@ -24,7 +23,9 @@ replaces="py3-jaraco-classes" provides="py3-jaraco-classes=$pkgver-r$pkgrel" build() { - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-jaraco.collections/APKBUILD b/community/py3-jaraco.collections/APKBUILD index 309ad8d1aea..9113dd2a4a5 100644 --- a/community/py3-jaraco.collections/APKBUILD +++ b/community/py3-jaraco.collections/APKBUILD @@ -10,13 +10,15 @@ arch="noarch" license="MIT" depends="py3-jaraco.classes py3-jaraco.text" # py3-setuptools_scm is needed to set python module version -makedepends="py3-build py3-installer py3-setuptools py3-setuptools_scm py3-wheel" +makedepends="py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel" checkdepends="py3-pytest" source="https://files.pythonhosted.org/packages/source/j/jaraco.collections/jaraco.collections-$pkgver.tar.gz" builddir="$srcdir/jaraco.collections-$pkgver" build() { - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-jaraco.context/APKBUILD b/community/py3-jaraco.context/APKBUILD index e9a02c0d604..97f75575d19 100644 --- a/community/py3-jaraco.context/APKBUILD +++ b/community/py3-jaraco.context/APKBUILD @@ -10,8 +10,7 @@ license="MIT" depends="python3" # py3-setuptools_scm is required to set version of python module makedepends=" - py3-build - py3-installer + py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel @@ -25,7 +24,9 @@ replaces="py3-jaraco-context" provides="py3-jaraco-context=$pkgver-r$pkgrel" build() { - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-jaraco.envs/APKBUILD b/community/py3-jaraco.envs/APKBUILD index cc01a2e4373..5eccc8a1168 100644 --- a/community/py3-jaraco.envs/APKBUILD +++ b/community/py3-jaraco.envs/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Bart Ribbers <bribbers@disroot.org> pkgname=py3-jaraco.envs pkgver=2.4.0 -pkgrel=1 +pkgrel=2 pkgdesc="Classes for orchestrating Python (virtual) environments" url="https://github.com/jaraco/jaraco.envs" arch="noarch" @@ -12,8 +12,7 @@ depends=" python3 " makedepends=" - py3-build - py3-installer + py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel @@ -28,7 +27,9 @@ options="!check" # Tests not usable in env builddir="$srcdir/jaraco.envs-$pkgver" build() { - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-jaraco.functools/APKBUILD b/community/py3-jaraco.functools/APKBUILD index 68d0b51c012..190a746759c 100644 --- a/community/py3-jaraco.functools/APKBUILD +++ b/community/py3-jaraco.functools/APKBUILD @@ -14,8 +14,7 @@ depends=" python3 " makedepends=" - py3-build - py3-installer + py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel @@ -29,7 +28,9 @@ replaces="py3-jaraco-functools" provides="py3-jaraco-functools=$pkgver-r$pkgrel" build() { - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-jaraco.itertools/APKBUILD b/community/py3-jaraco.itertools/APKBUILD index c5e52c00944..f532a813c9d 100644 --- a/community/py3-jaraco.itertools/APKBUILD +++ b/community/py3-jaraco.itertools/APKBUILD @@ -14,8 +14,7 @@ depends=" " # py3-setuptools_scm is required to set version of python module makedepends=" - py3-build - py3-installer + py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel @@ -35,7 +34,9 @@ replaces="py3-jaraco-itertools" provides="py3-jaraco-itertools=$pkgver-r$pkgrel" build() { - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-jaraco.text/APKBUILD b/community/py3-jaraco.text/APKBUILD index 7c596dff271..8549abe538f 100644 --- a/community/py3-jaraco.text/APKBUILD +++ b/community/py3-jaraco.text/APKBUILD @@ -1,7 +1,6 @@ # Contributor: Duncan Bellamy <dunk@denkimushi.com> # Maintainer: Duncan Bellamy <dunk@denkimushi.com> pkgname=py3-jaraco.text -_pkgreal=${pkgname#"py3-"} pkgver=3.11.0 pkgrel=1 pkgdesc="Module for text manipulation" @@ -10,28 +9,29 @@ arch="noarch" license="MIT" depends="py3-jaraco.context py3-jaraco.functools" makedepends=" - py3-build - py3-installer + py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel " checkdepends="py3-autocommand py3-inflect py3-pytest" source="https://files.pythonhosted.org/packages/source/j/jaraco.text/jaraco.text-$pkgver.tar.gz" -builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/jaraco.text-$pkgver" build() { - GIT_DIR=. python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { - python3 -m installer -d testenv dist/$_pkgreal-$pkgver-py3-none-any.whl + python3 -m installer -d testenv dist/jaraco.text-$pkgver-py3-none-any.whl local sitedir="$(python3 -c 'import site;print(site.getsitepackages()[0])')" PYTHONPATH="$PWD/testenv/$sitedir" python3 -m pytest --ignore testenv } package() { - python3 -m installer -d "$pkgdir" dist/$_pkgreal-$pkgver-py3-none-any.whl + python3 -m installer -d "$pkgdir" dist/jaraco.text-$pkgver-py3-none-any.whl } sha512sums=" diff --git a/community/py3-jeepney/APKBUILD b/community/py3-jeepney/APKBUILD index 9cadedb4dfe..7aec159a8c3 100644 --- a/community/py3-jeepney/APKBUILD +++ b/community/py3-jeepney/APKBUILD @@ -9,12 +9,14 @@ url="https://gitlab.com/takluyver/jeepney" arch="noarch" license="MIT" depends="python3" -makedepends="py3-flit-core py3-build py3-installer" +makedepends="py3-flit-core py3-gpep517" source="https://pypi.io/packages/source/j/jeepney/jeepney-$pkgver.tar.gz" builddir="$srcdir"/jeepney-$pkgver build() { - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } package() { diff --git a/community/py3-kubernetes/APKBUILD b/community/py3-kubernetes/APKBUILD index dcd2ce627a5..c1032ba1382 100644 --- a/community/py3-kubernetes/APKBUILD +++ b/community/py3-kubernetes/APKBUILD @@ -8,17 +8,26 @@ pkgdesc="Official Python client library for kubernetes" url="https://github.com/kubernetes-client/python" arch="noarch" license="Apache-2.0" -depends="py3-certifi py3-dateutil py3-google-auth py3-requests - py3-requests-oauthlib py3-six py3-urllib3 - py3-websocket-client py3-yaml" -makedepends="py3-build py3-installer py3-wheel" +depends=" + py3-certifi + py3-dateutil + py3-google-auth + py3-requests + py3-requests-oauthlib + py3-six + py3-urllib3 + py3-websocket-client + py3-yaml + " +makedepends="py3-gpep517 py3-setuptools py3-wheel" checkdepends="pytest py3-mock" source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/k/kubernetes/kubernetes-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { - # XXX: hack for poetry to not ignore files - GIT_DIR=. python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-markdown-it-py/APKBUILD b/community/py3-markdown-it-py/APKBUILD index ae60ffdf30a..135cd195555 100644 --- a/community/py3-markdown-it-py/APKBUILD +++ b/community/py3-markdown-it-py/APKBUILD @@ -8,13 +8,15 @@ url="https://markdown-it-py.readthedocs.io/" arch="noarch" license="MIT" depends="python3 py3-attrs py3-mdurl" -makedepends="py3-build py3-flit-core py3-installer" +makedepends="py3-gpep517 py3-flit-core" checkdepends="py3-pytest py3-pytest-benchmark" source="https://github.com/executablebooks/markdown-it-py/archive/v$pkgver/py3-markdown-it-py-$pkgver.tar.gz" builddir="$srcdir/markdown-it-py-$pkgver" build() { - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-matrix-common/APKBUILD b/community/py3-matrix-common/APKBUILD index b6b81c9a4ed..7a1d65a613b 100644 --- a/community/py3-matrix-common/APKBUILD +++ b/community/py3-matrix-common/APKBUILD @@ -10,8 +10,7 @@ license="Apache-2.0" depends="python3" depends="python3 py3-attrs" makedepends=" - py3-build - py3-installer + py3-gpep517 py3-setuptools py3-wheel " @@ -22,7 +21,9 @@ source=" builddir="$srcdir/matrix-python-common-$pkgver" build() { - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-mdurl/APKBUILD b/community/py3-mdurl/APKBUILD index ca44d03b947..c25c3ac8da6 100644 --- a/community/py3-mdurl/APKBUILD +++ b/community/py3-mdurl/APKBUILD @@ -8,13 +8,15 @@ url="https://github.com/executablebooks/mdurl" arch="noarch" license="MIT" depends="python3" -makedepends="py3-build py3-flit py3-installer" +makedepends="py3-gpep517 py3-flit-core" checkdepends="py3-pytest" source="https://github.com/executablebooks/mdurl/archive/$pkgver/py3-mdurl-$pkgver.tar.gz" builddir="$srcdir/mdurl-$pkgver" build() { - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-munch/APKBUILD b/community/py3-munch/APKBUILD index 33bc822c178..89588cc7e78 100644 --- a/community/py3-munch/APKBUILD +++ b/community/py3-munch/APKBUILD @@ -29,4 +29,6 @@ package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } -sha512sums="7eca31111f40782a19b49535322bc56d723022d52b0842c4beff512f32fa415a6c75851eb84950358cb6a11693095cafe56364028e48385b11135de414edca21 munch-2.5.0.tar.gz" +sha512sums=" +7eca31111f40782a19b49535322bc56d723022d52b0842c4beff512f32fa415a6c75851eb84950358cb6a11693095cafe56364028e48385b11135de414edca21 munch-2.5.0.tar.gz +" diff --git a/community/py3-nashpy/APKBUILD b/community/py3-nashpy/APKBUILD index 9a0c788566c..6431c4b25c5 100644 --- a/community/py3-nashpy/APKBUILD +++ b/community/py3-nashpy/APKBUILD @@ -10,12 +10,14 @@ arch="noarch" license="MIT" depends="python3 py3-scipy py3-numpy" checkdepends="python3-dev py3-pytest py3-hypothesis" -makedepends="py3-build py3-flit-core py3-installer py3-wheel" +makedepends="py3-gpep517 py3-flit-core" source="https://github.com/drvinceknight/Nashpy/archive/v$pkgver/$_pkgorig-$pkgver.tar.gz" builddir="$srcdir/Nashpy-$pkgver" build() { - python3 -m build --wheel --no-isolation + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { @@ -27,6 +29,7 @@ package() { python3 -m installer -d "$pkgdir" \ dist/nashpy-$pkgver-py3-none-any.whl } + sha512sums=" 1681509c9a2e18d3a706862825006e4fed0fcc6f1096c01d539dc58c70246021265df035f5e98d36a44a82b43fe8804511dd5c391a87b7c66fecf14af1c66671 nashpy-0.0.35.tar.gz " diff --git a/community/py3-pep440/APKBUILD b/community/py3-pep440/APKBUILD index 555b6b7f01a..1b07966f05c 100644 --- a/community/py3-pep440/APKBUILD +++ b/community/py3-pep440/APKBUILD @@ -8,14 +8,16 @@ url="https://github.com/Carreau/pep440" arch="noarch" license="MIT" depends="python3" -makedepends="py3-build py3-installer py3-flit-core" +makedepends="py3-gpep517 py3-flit-core" checkdepends="py3-pytest" source="$pkgname-$pkgver.tar.gz::https://github.com/Carreau/pep440/archive/refs/tags/$pkgver.tar.gz" builddir="$srcdir/pep440-$pkgver" options="!check" # no checks build() { - python3 -m build --wheel --no-isolation --skip-dependency-check + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } package() { diff --git a/community/py3-platformdirs/APKBUILD b/community/py3-platformdirs/APKBUILD index bc50adc7bac..b244f0784b4 100644 --- a/community/py3-platformdirs/APKBUILD +++ b/community/py3-platformdirs/APKBUILD @@ -8,13 +8,15 @@ url="https://github.com/platformdirs/platformdirs" arch="noarch" license="MIT" depends="python3" -makedepends="py3-build py3-hatchling py3-hatch-vcs py3-installer" +makedepends="py3-gpep517 py3-hatchling py3-hatch-vcs" checkdepends="py3-appdirs py3-pytest py3-pytest-mock" source="https://files.pythonhosted.org/packages/source/p/platformdirs/platformdirs-$pkgver.tar.gz" builddir="$srcdir/platformdirs-$pkgver" build() { - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-pure_eval/APKBUILD b/community/py3-pure_eval/APKBUILD index 9b672371245..e82163f3b10 100644 --- a/community/py3-pure_eval/APKBUILD +++ b/community/py3-pure_eval/APKBUILD @@ -8,17 +8,16 @@ url="https://github.com/alexmojaki/pure_eval" arch="noarch" license="MIT" depends="python3" -makedepends="py3-setuptools py3-installer py3-build py3-wheel py3-setuptools_scm" +makedepends="py3-gpep517 py3-setuptools py3-wheel py3-setuptools_scm" checkdepends="py3-pytest py3-typeguard" source="$pkgname-$pkgver.tar.gz::https://github.com/alexmojaki/pure_eval/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/pure_eval-$pkgver" build() { export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver - python3 -m build \ - --no-isolation \ - --wheel \ - . + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-pydyf/APKBUILD b/community/py3-pydyf/APKBUILD index b222f37f075..19ac4631f9c 100644 --- a/community/py3-pydyf/APKBUILD +++ b/community/py3-pydyf/APKBUILD @@ -8,7 +8,7 @@ url="https://pypi.org/project/pydyf/" arch="noarch" license="BSD-3-Clause" depends="python3" -makedepends="py3-flit-core py3-build py3-installer" +makedepends="py3-flit-core py3-gpep517" checkdepends=" ghostscript py3-coverage @@ -32,7 +32,9 @@ prepare() { } build() { - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-pyphen/APKBUILD b/community/py3-pyphen/APKBUILD index 80b4245cf11..ae4f0257a3e 100644 --- a/community/py3-pyphen/APKBUILD +++ b/community/py3-pyphen/APKBUILD @@ -9,7 +9,7 @@ url="https://www.pyphen.org" arch="noarch" license="GPL-2.0-or-later AND LGPL-2.1-or-later AND MPL-1.1" depends="python3" -makedepends="py3-build py3-flit py3-installer py3-wheel" +makedepends="py3-gpep517 py3-flit-core" checkdepends="py3-pytest py3-pytest-cov py3-pytest-isort py3-pytest-xdist" source="$_pkgname-$pkgver.tar.gz::https://github.com/Kozea/Pyphen/archive/$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" @@ -25,7 +25,9 @@ prepare() { } build() { - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-pytest-httpx/APKBUILD b/community/py3-pytest-httpx/APKBUILD index 875b55a80d9..ec39aab3cd8 100644 --- a/community/py3-pytest-httpx/APKBUILD +++ b/community/py3-pytest-httpx/APKBUILD @@ -8,13 +8,15 @@ url="https://colin-b.github.io/pytest_httpx/" arch="all !armhf !ppc64le" #limited by py3-httpx license="MIT" depends="py3-httpx py3-pytest" -makedepends="py3-build py3-installer py3-setuptools py3-wheel" +makedepends="py3-gpep517 py3-setuptools py3-wheel" checkdepends="py3-pytest-asyncio" source="$pkgname-$pkgver.tar.gz::https://github.com/Colin-b/pytest_httpx/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/pytest_httpx-$pkgver" build() { - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-quantiphy-eval/APKBUILD b/community/py3-quantiphy-eval/APKBUILD index c6a95011c1e..2bac22c50b2 100644 --- a/community/py3-quantiphy-eval/APKBUILD +++ b/community/py3-quantiphy-eval/APKBUILD @@ -14,9 +14,8 @@ depends=" py3-sly " makedepends=" - py3-build py3-flit-core - py3-installer + py3-gpep517 " checkdepends=" py3-pytest @@ -25,7 +24,9 @@ source="https://github.com/KenKundert/quantiphy_eval/archive/v$pkgver/quantiphy_ builddir="$srcdir/quantiphy_eval-$pkgver" build() { - python3 -m build --no-isolation --wheel . + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-seaborn/APKBUILD b/community/py3-seaborn/APKBUILD index 1e89398228a..66d1013fca6 100644 --- a/community/py3-seaborn/APKBUILD +++ b/community/py3-seaborn/APKBUILD @@ -9,17 +9,20 @@ url="https://github.com/mwaskom/seaborn" arch="noarch !riscv64" # py3-matplotlib license="BSD-3-Clause" depends="python3 py3-numpy py3-pandas py3-matplotlib py3-scipy" # statsmodels is also in extras -makedepends="py3-build py3-flit-core py3-installer py3-wheel" -checkdepends="py3-pytest" +makedepends="py3-gpep517 py3-flit-core" +checkdepends="py3-pytest py3-pytest-xdist" source="$pkgname-$pkgver.tar.gz::https://github.com/mwaskom/seaborn/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/$_pkgorig-$pkgver" build() { - python3 -m build --wheel --no-isolation + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { - pytest -k 'not test_categorical and not test_distributions and not test_axisgrid' # a minor portion of tests is failing (e.g. assertionErrors) + pytest -n $JOBS \ + -k 'not test_categorical and not test_distributions and not test_axisgrid' # a minor portion of tests is failing (e.g. assertionErrors) } package() { diff --git a/community/py3-sport-activities-features/APKBUILD b/community/py3-sport-activities-features/APKBUILD index cebc83782ed..1569dbbc4ad 100644 --- a/community/py3-sport-activities-features/APKBUILD +++ b/community/py3-sport-activities-features/APKBUILD @@ -20,13 +20,15 @@ depends=" py3-tcxreader " checkdepends="python3-dev py3-pytest" -makedepends="py3-build py3-poetry-core py3-wheel py3-installer" +makedepends="py3-gpep517 py3-poetry-core" subpackages="$pkgname-doc" source="https://github.com/firefly-cpp/sport-activities-features/archive/$pkgver/sport-activities-features-$pkgver.tar.gz" builddir="$srcdir/sport-activities-features-$pkgver" build() { - GIT_DIR="$builddir" python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-stack_data/APKBUILD b/community/py3-stack_data/APKBUILD index 1b5a11da6d0..0689ea8240b 100644 --- a/community/py3-stack_data/APKBUILD +++ b/community/py3-stack_data/APKBUILD @@ -8,7 +8,7 @@ url="https://github.com/alexmojaki/stack_data" arch="noarch" license="MIT" depends="python3 py3-executing py3-asttokens py3-pure_eval" -makedepends="py3-build py3-installer py3-wheel py3-setuptools_scm" +makedepends="py3-gpep517 py3-setuptools_scm py3-wheel" checkdepends="py3-pytest py3-typeguard" options="!check" # requires unpackaged littleutils source="$pkgname-$pkgver.tar.gz::https://github.com/alexmojaki/stack_data/archive/refs/tags/v$pkgver.tar.gz" @@ -16,10 +16,9 @@ builddir="$srcdir/stack_data-$pkgver" build() { export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver - python3 -m build \ - --no-isolation \ - --wheel \ - . + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-tabulate/APKBUILD b/community/py3-tabulate/APKBUILD index 8808ead7b6d..61062ae7146 100644 --- a/community/py3-tabulate/APKBUILD +++ b/community/py3-tabulate/APKBUILD @@ -8,7 +8,7 @@ url="https://github.com/astanin/python-tabulate" arch="noarch" license="MIT" depends="python3 py3-wcwidth" -makedepends="py3-setuptools_scm py3-build py3-wheel py3-installer" +makedepends="py3-setuptools_scm py3-gpep517 py3-wheel" checkdepends="py3-nose py3-pytest" source="https://files.pythonhosted.org/packages/source/t/tabulate/tabulate-$pkgver.tar.gz" builddir="$srcdir/tabulate-$pkgver" @@ -17,7 +17,9 @@ replaces=py-tabulate # Backwards compatibility provides=py-tabulate=$pkgver-r$pkgrel # Backwards compatibility build() { - python3 -m build --wheel --no-isolation + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-tempora/APKBUILD b/community/py3-tempora/APKBUILD index efbd0427969..42ed3029bc6 100644 --- a/community/py3-tempora/APKBUILD +++ b/community/py3-tempora/APKBUILD @@ -12,14 +12,16 @@ depends=" py3-tz python3 " -makedepends="py3-build py3-installer py3-setuptools_scm py3-wheel" +makedepends="py3-gpep517 py3-setuptools_scm py3-wheel" checkdepends="py3-pytest py3-freezegun py3-pytest-freezegun" source="https://pypi.python.org/packages/source/t/tempora/tempora-$pkgver.tar.gz" builddir="$srcdir/tempora-$pkgver" build() { export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-terminado/APKBUILD b/community/py3-terminado/APKBUILD index 5ac9f3798a1..ab6f9040649 100644 --- a/community/py3-terminado/APKBUILD +++ b/community/py3-terminado/APKBUILD @@ -9,7 +9,7 @@ arch="noarch" license="BSD-2-Clause" depends="py3-ptyprocess py3-tornado" checkdepends="py3-pytest" -makedepends="py3-build py3-hatchling py3-installer" +makedepends="py3-gpep517 py3-hatchling" source="$pkgname-$pkgver.tar.gz::https://github.com/jupyter/terminado/archive/refs/tags/v$pkgver.tar.gz bash.patch test_get_pid.patch @@ -17,7 +17,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/jupyter/terminado/archive/re builddir="$srcdir/terminado-$pkgver/" build() { - python3 -m build --wheel --no-isolation --skip-dependency-check + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { @@ -27,6 +29,7 @@ check() { package() { python3 -m installer --destdir="$pkgdir" dist/*.whl + rm -r "$pkgdir"/usr/lib/python3*/site-packages/terminado/tests* } sha512sums=" diff --git a/community/py3-testpath/APKBUILD b/community/py3-testpath/APKBUILD index 68f2b1297c6..a51c4346cee 100644 --- a/community/py3-testpath/APKBUILD +++ b/community/py3-testpath/APKBUILD @@ -8,13 +8,15 @@ url="https://testpath.readthedocs.io/en/latest/" arch="noarch" license="BSD-3-Clause" depends="python3" -makedepends="py3-build py3-flit-core py3-installer py3-wheel" +makedepends="py3-gpep517 py3-flit-core" checkdepends="py3-pytest" source="https://files.pythonhosted.org/packages/source/t/testpath/testpath-$pkgver.tar.gz" builddir="$srcdir/testpath-$pkgver" build() { - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-tidyexc/APKBUILD b/community/py3-tidyexc/APKBUILD index 1350fae53f3..952b2fdce27 100644 --- a/community/py3-tidyexc/APKBUILD +++ b/community/py3-tidyexc/APKBUILD @@ -8,19 +8,21 @@ url="https://pypi.org/project/tidyexc/" arch="noarch" license="MIT" makedepends=" - py3-build - py3-flit - py3-installer - py3-wheel + py3-gpep517 + py3-flit-core " checkdepends=" py3-pytest " -source="https://files.pythonhosted.org/packages/source/t/tidyexc/tidyexc-$pkgver.tar.gz" +source="https://files.pythonhosted.org/packages/source/t/tidyexc/tidyexc-$pkgver.tar.gz + flit-core.patch + " builddir="$srcdir/tidyexc-$pkgver" build() { - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { @@ -29,9 +31,10 @@ check() { package() { python3 -m installer -d "$pkgdir" \ - dist/tidyexc-$pkgver-py2.py3-none-any.whl + dist/tidyexc*.whl } sha512sums=" 6b4787ef7dd36a2de0aea719f899a9376505334998f0a245d1dd6196ffc276bf92cf081ce9298c47ed9f67cb65fe1f46228c85db90cfe9ceb59e6e6a696c7397 tidyexc-0.9.0.tar.gz +797302081b65bc1dad525503e1bb81ae4885c20cb0ed0275cb15dc4ea50276cea219ef58fc7846add1343bfa2fa5e9bfb091d64e7c60ebb6ab0056d9893f0188 flit-core.patch " diff --git a/community/py3-tidyexc/flit-core.patch b/community/py3-tidyexc/flit-core.patch new file mode 100644 index 00000000000..2c0f8c69c7b --- /dev/null +++ b/community/py3-tidyexc/flit-core.patch @@ -0,0 +1,13 @@ +diff --git a/pyproject.toml b/pyproject.toml +index 252c459..4a577c4 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,6 +1,6 @@ + [build-system] +-requires = ["flit"] +-build-backend = "flit.buildapi" ++requires = ["flit_core"] ++build-backend = "flit_core.buildapi" + + [tool.flit.metadata] + module = "tidyexc" diff --git a/community/py3-tinycss2/APKBUILD b/community/py3-tinycss2/APKBUILD index f4621857880..768d57732e1 100644 --- a/community/py3-tinycss2/APKBUILD +++ b/community/py3-tinycss2/APKBUILD @@ -10,7 +10,7 @@ arch="noarch" license="BSD-3-Clause" depends="py3-webencodings" checkdepends="py3-pytest py3-pytest-flake8 py3-pytest-isort py3-pytest-cov" -makedepends="py3-build py3-flit py3-installer py3-wheel" +makedepends="py3-gpep517 py3-flit-core" _pypiprefix="${_pyname%${_pyname#?}}" source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz" builddir="$srcdir"/$_pyname-$pkgver @@ -22,7 +22,9 @@ prepare() { } build() { - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-traitlets/APKBUILD b/community/py3-traitlets/APKBUILD index 8a35403799b..4f27abe6f6c 100644 --- a/community/py3-traitlets/APKBUILD +++ b/community/py3-traitlets/APKBUILD @@ -7,8 +7,8 @@ pkgdesc="lightweight Traits like module" url="https://traitlets.readthedocs.io/" arch="noarch" license="BSD-3-Clause" -depends="python3 py3-hatchling" -makedepends="py3-build py3-installer py3-wheel" +depends="python3" +makedepends="py3-gpep517 py3-hatchling" options="!check" # No test suite present source="traitlets-$pkgver.tar.gz::https://github.com/ipython/traitlets/archive/$pkgver.tar.gz" builddir="$srcdir/${pkgname#py3-}-$pkgver" @@ -17,10 +17,9 @@ replaces="py-traitlets" # Backwards compatibility provides="py-traitlets=$pkgver-r$pkgrel" # Backwards compatibility build() { - python3 -m build \ - --no-isolation \ - --wheel \ - . + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } package() { diff --git a/community/py3-typing-extensions/APKBUILD b/community/py3-typing-extensions/APKBUILD index 9819f08c43e..fa5d9e5b927 100644 --- a/community/py3-typing-extensions/APKBUILD +++ b/community/py3-typing-extensions/APKBUILD @@ -8,18 +8,19 @@ url="https://github.com/python/typing_extensions" arch="noarch" license="Python-2.0" depends="python3" -makedepends="py3-build py3-flit-core py3-installer py3-wheel" -checkdepends="py3-tox python3-tests" +makedepends="py3-gpep517 py3-flit-core" +checkdepends="python3-tests" source="https://github.com/python/typing_extensions/archive/$pkgver/typing_extensions-$pkgver.tar.gz" builddir="$srcdir/typing_extensions-$pkgver" -options="!check" # circular with py3-tox (tox needs things that depend on this) build() { - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { - tox --sitepackages -e py310 + python3 src/test_typing_extensions.py } package() { diff --git a/community/py3-tzdata/APKBUILD b/community/py3-tzdata/APKBUILD index a1c6a34576a..20739e332ba 100644 --- a/community/py3-tzdata/APKBUILD +++ b/community/py3-tzdata/APKBUILD @@ -9,14 +9,16 @@ url="https://github.com/sdispater/pytzdata" arch="noarch" license="MIT" depends="python3 tzdata" -makedepends="py3-build py3-installer py3-poetry-core" +makedepends="py3-gpep517 py3-poetry-core" checkdepends="py3-pytest" source="$pkgname-$pkgver.tar.gz::https://github.com/sdispater/$_pkgname/archive/$pkgver.tar.gz masonry.patch" builddir="$srcdir/$_pkgname-$pkgver" build() { - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-unpaddedbase64/APKBUILD b/community/py3-unpaddedbase64/APKBUILD index 99d11f58f48..9cb231e205f 100644 --- a/community/py3-unpaddedbase64/APKBUILD +++ b/community/py3-unpaddedbase64/APKBUILD @@ -9,8 +9,7 @@ arch="noarch" license="Apache-2.0" depends="python3" makedepends=" - py3-build - py3-installer + py3-gpep517 py3-poetry-core " checkdepends="py3-pytest" @@ -18,8 +17,9 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/matrix-org/python-unpaddedba builddir="$srcdir/python-unpaddedbase64-$pkgver" build() { - # XXX: hack for poetry to not ignore files - GIT_DIR=. python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/py3-waitress/APKBUILD b/community/py3-waitress/APKBUILD index 40f1cd9fbd6..9449a528a9b 100644 --- a/community/py3-waitress/APKBUILD +++ b/community/py3-waitress/APKBUILD @@ -15,8 +15,7 @@ checkdepends=" py3-pytest-cov " makedepends=" - py3-build - py3-installer + py3-gpep517 py3-setuptools py3-wheel " @@ -38,12 +37,14 @@ builddir="$srcdir/waitress-$pkgver" # - CVE-2019-16786 build() { - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { - cd "$builddir"/src/ - python3 -m pytest ../tests/ + PYTHONPATH=src \ + python3 -m pytest tests } package() { diff --git a/community/twine/APKBUILD b/community/twine/APKBUILD index ffdc405be4c..dbe25759071 100644 --- a/community/twine/APKBUILD +++ b/community/twine/APKBUILD @@ -21,12 +21,12 @@ depends=" python3 " makedepends=" - py3-build - py3-installer + py3-gpep517 py3-setuptools_scm py3-wheel " checkdepends=" + py3-build py3-jaraco.envs py3-munch py3-portend @@ -44,7 +44,9 @@ provides="py3-$pkgname=$pkgver-r$pkgrel" replaces="py3-$pkgname" build() { - python3 -m build --no-isolation --skip-dependency-check --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { diff --git a/community/weasyprint/APKBUILD b/community/weasyprint/APKBUILD index 15bd6b2f756..6d0a3839cf0 100644 --- a/community/weasyprint/APKBUILD +++ b/community/weasyprint/APKBUILD @@ -20,9 +20,8 @@ depends=" py3-zopfli " makedepends=" - py3-build py3-flit-core - py3-installer + py3-gpep517 " checkdepends=" font-dejavu @@ -38,7 +37,9 @@ provides="py-weasyprint=$pkgver-r$pkgrel py3-weasyprint=$pkgver-r$pkgrel" # for source="https://files.pythonhosted.org/packages/source/w/weasyprint/weasyprint-$pkgver.tar.gz" build() { - python3 -m build --no-isolation --wheel + gpep517 build-wheel \ + --wheel-dir dist \ + --output-fd 1 } check() { |