backports/py3-codespell: upgrade to 2.2.6
This commit is contained in:
parent
18e4c9bf17
commit
b084150b9f
1 changed files with 14 additions and 7 deletions
|
@ -2,10 +2,9 @@
|
||||||
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
||||||
pkgname=py3-codespell
|
pkgname=py3-codespell
|
||||||
_pkgname=${pkgname#py3-}
|
_pkgname=${pkgname#py3-}
|
||||||
pkgver=2.2.4
|
pkgver=2.2.6
|
||||||
pkgrel=1
|
pkgrel=0
|
||||||
pkgdesc="Fix common misspellings in text files, primarily source code"
|
pkgdesc="Fix common misspellings in text files, primarily source code"
|
||||||
options="!check" # No testsuite
|
|
||||||
url="https://github.com/codespell-project/codespell/"
|
url="https://github.com/codespell-project/codespell/"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="GPL-2.0-only"
|
license="GPL-2.0-only"
|
||||||
|
@ -15,7 +14,7 @@ makedepends="
|
||||||
py3-setuptools_scm
|
py3-setuptools_scm
|
||||||
py3-wheel
|
py3-wheel
|
||||||
"
|
"
|
||||||
checkdepends="py3-pytest"
|
checkdepends="py3-pytest-cov"
|
||||||
depends="py3-chardet"
|
depends="py3-chardet"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="$pkgname-$pkgver.tar.gz::https://github.com/codespell-project/codespell/archive/refs/tags/v$pkgver.tar.gz"
|
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() {
|
build() {
|
||||||
SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver \
|
SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver \
|
||||||
gpep517 build-wheel \
|
gpep517 build-wheel \
|
||||||
--wheel-dir dist \
|
--wheel-dir .dist \
|
||||||
--output-fd 3 3>&1 >&2
|
--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() {
|
package() {
|
||||||
python3 -m installer -d "$pkgdir" \
|
python3 -m installer -d "$pkgdir" \
|
||||||
dist/*.whl
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
fcf303af14d7f6c081c07a37376ac2c7068b89890073f81414cf9e30638681138f78b5b04bfe5282193bbaa83162b7b73a4e25e71b73b7f9cc0a5f5c623b5786 py3-codespell-2.2.4.tar.gz
|
37a6fbcf196447e8204a973499c6b3f7efda67e3caaaa707897da438c602834f91ca49b95020d2c03dcb95528c03451a2d9cfe145b2a24e88615c4a5418a4d2b py3-codespell-2.2.6.tar.gz
|
||||||
"
|
"
|
||||||
|
|
Loading…
Reference in a new issue