From b084150b9fcdec4520963661dd1d58ff0da12576 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 24 Nov 2023 13:18:25 -0500 Subject: [PATCH] backports/py3-codespell: upgrade to 2.2.6 --- backports/py3-codespell/APKBUILD | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/backports/py3-codespell/APKBUILD b/backports/py3-codespell/APKBUILD index 16f8d7e..3eba852 100644 --- a/backports/py3-codespell/APKBUILD +++ b/backports/py3-codespell/APKBUILD @@ -2,10 +2,9 @@ # Maintainer: Marian Buschsieweke pkgname=py3-codespell _pkgname=${pkgname#py3-} -pkgver=2.2.4 -pkgrel=1 +pkgver=2.2.6 +pkgrel=0 pkgdesc="Fix common misspellings in text files, primarily source code" -options="!check" # No testsuite url="https://github.com/codespell-project/codespell/" arch="noarch" license="GPL-2.0-only" @@ -15,7 +14,7 @@ makedepends=" py3-setuptools_scm py3-wheel " -checkdepends="py3-pytest" +checkdepends="py3-pytest-cov" depends="py3-chardet" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/codespell-project/codespell/archive/refs/tags/v$pkgver.tar.gz" @@ -24,15 +23,23 @@ builddir="$srcdir"/$_pkgname-$pkgver build() { SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver \ gpep517 build-wheel \ - --wheel-dir dist \ + --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 + + # tests want to run bin/codespell + PATH="$builddir/.testenv/bin:$PATH" .testenv/bin/python3 -m pytest +} + package() { python3 -m installer -d "$pkgdir" \ - dist/*.whl + .dist/*.whl } sha512sums=" -fcf303af14d7f6c081c07a37376ac2c7068b89890073f81414cf9e30638681138f78b5b04bfe5282193bbaa83162b7b73a4e25e71b73b7f9cc0a5f5c623b5786 py3-codespell-2.2.4.tar.gz +37a6fbcf196447e8204a973499c6b3f7efda67e3caaaa707897da438c602834f91ca49b95020d2c03dcb95528c03451a2d9cfe145b2a24e88615c4a5418a4d2b py3-codespell-2.2.6.tar.gz "