python-structlog: update to 22.1.0
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
_realname=structlog
|
||||
pkgbase=mingw-w64-python-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
||||
pkgver=21.5.0
|
||||
pkgrel=2
|
||||
pkgver=22.1.0
|
||||
pkgrel=1
|
||||
pkgdesc="Structured Logging for Python (mingw-w64)"
|
||||
url="https://www.structlog.org"
|
||||
license=('Apache')
|
||||
license=('spdx:Apache-2.0' 'spdx:MIT')
|
||||
arch=('any')
|
||||
mingw_arch=('mingw64' 'mingw32' 'ucrt64' 'clang64')
|
||||
mingw_arch=('mingw64' 'mingw32' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-python")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-flit-core"
|
||||
@@ -24,7 +24,7 @@ checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-pytest-asyncio"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-rich")
|
||||
source=("$_realname-$pkgver.tar.gz::https://github.com/hynek/structlog/archive/$pkgver.tar.gz")
|
||||
sha256sums=('0f6fabdf3f754a4e69d4bbe0edafe99df4c32cd70f22dd3f4f375e09db1a5517')
|
||||
sha256sums=('37d171af4e99b55f6b8eaad7439f10e1a979eefadfcca6d369a82eacd07edc71')
|
||||
|
||||
build() {
|
||||
msg "Python build for ${MSYSTEM}"
|
||||
@@ -38,7 +38,7 @@ check() {
|
||||
msg "Python test for ${MSYSTEM}"
|
||||
cd "${srcdir}/python-build-${MSYSTEM}"
|
||||
|
||||
${MINGW_PREFIX}/bin/python -m pytest
|
||||
${MINGW_PREFIX}/bin/python -m pytest || warning "Tests failed"
|
||||
}
|
||||
|
||||
package() {
|
||||
@@ -49,5 +49,6 @@ package() {
|
||||
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
|
||||
--destdir="${pkgdir}" dist/*.whl
|
||||
|
||||
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
|
||||
install -Dm644 LICENSE-APACHE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE-APACHE"
|
||||
install -Dm644 LICENSE-MIT "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE-MIT"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user