python-responses: update to 0.21.0

This commit is contained in:
Biswapriyo Nath
2022-06-04 12:15:57 +05:30
committed by GitHub
parent 63f54138c6
commit 1366e7b934

View File

@@ -3,38 +3,43 @@
_realname=responses
pkgbase=mingw-w64-python-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
pkgver=0.20.0
pkgver=0.21.0
pkgrel=1
pkgdesc='A utility library for mocking out the `requests` Python library. (mingw-w64)'
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
url="https://github.com/getsentry/responses"
license=('Apache')
depends=("${MINGW_PACKAGE_PREFIX}-python-biscuits" "${MINGW_PACKAGE_PREFIX}-python-requests" "${MINGW_PACKAGE_PREFIX}-python-six")
license=('spdx:Apache-2.0')
depends=("${MINGW_PACKAGE_PREFIX}-python-biscuits"
"${MINGW_PACKAGE_PREFIX}-python-requests"
"${MINGW_PACKAGE_PREFIX}-python-six")
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools")
checkdepends=("${MINGW_PACKAGE_PREFIX}-mypy" "${MINGW_PACKAGE_PREFIX}-python-flake8" "${MINGW_PACKAGE_PREFIX}-python-pytest-cov" "${MINGW_PACKAGE_PREFIX}-python-pytest-localserver" "${MINGW_PACKAGE_PREFIX}-python-pytest-runner")
checkdepends=("${MINGW_PACKAGE_PREFIX}-mypy"
"${MINGW_PACKAGE_PREFIX}-python-flake8"
"${MINGW_PACKAGE_PREFIX}-python-pytest-cov"
"${MINGW_PACKAGE_PREFIX}-python-pytest-localserver"
"${MINGW_PACKAGE_PREFIX}-python-pytest-runner")
source=("${_realname}-$pkgver.tar.gz::https://github.com/getsentry/responses/archive/$pkgver.tar.gz")
sha256sums=('82c047a8f6d84612501db291c7285b9b0b4f04a76274e86ba0c4a6a216b20bd4')
sha256sums=('92bfa0645687a000a8fb5afa0d6c28c5fa3e95e4dfc0cd9ce98c7b907eaf3530')
prepare() {
cd "$srcdir"
rm -rf python-build-${CARCH} | true
cp -r "${_realname}-$pkgver" "python-build-${CARCH}"
prepare() {
rm -rf python-build-${MSYSTEM} | true
cp -r "${_realname}-$pkgver" "python-build-${MSYSTEM}"
}
build() {
msg "Python build for ${CARCH}"
cd "${srcdir}/python-build-${CARCH}"
msg "Python build for ${MSYSTEM}"
cd "${srcdir}/python-build-${MSYSTEM}"
${MINGW_PREFIX}/bin/python setup.py build
}
check() {
cd "${srcdir}/python-build-${CARCH}"
cd "${srcdir}/python-build-${MSYSTEM}"
${MINGW_PREFIX}/bin/python setup.py pytest || warning "Tests failed"
}
package() {
cd "${srcdir}/python-build-${CARCH}"
cd "${srcdir}/python-build-${MSYSTEM}"
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \
--root="${pkgdir}" --optimize=1 --skip-build