python-sqlparse: update to 0.4.2

Fix test command, use pytest.
This commit is contained in:
Biswapriyo Nath
2022-03-18 10:23:15 +05:30
committed by GitHub
parent d951ce29e9
commit d41cb79aff

View File

@@ -6,18 +6,19 @@ pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
pkgver=0.3.1
pkgrel=3
pkgver=0.4.2
pkgrel=1
pkgdesc="Non-validating SQL parser for Python (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
url='https://github.com/andialbrecht/sqlparse'
license=('BSD')
depends=("${MINGW_PACKAGE_PREFIX}-python")
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools")
checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest")
options=('staticlibs' 'strip' '!debug')
source=("${_realname}-$pkgver.tar.gz::https://github.com/andialbrecht/sqlparse/archive/${pkgver}.tar.gz")
sha256sums=('344b539482b75c244ac69fbb160d0f4d63a288a392475c8418ca692c594561f9')
sha256sums=('8108dd2a7b038cc947320ae5d947e8e3d99bb520d81749d3bd419dabcbdf5ed3')
prepare() {
cd "${srcdir}"
@@ -35,7 +36,7 @@ build() {
check() {
cd "${srcdir}/python-build-${CARCH}"
${MINGW_PREFIX}/bin/python setup.py test
${MINGW_PREFIX}/bin/python -m pytest || warning "Tests failed"
}
package() {