python-responses: update to 0.23.0
This commit is contained in:
committed by
مهدي شينون (Mehdi Chinoune)
parent
a683d23ea7
commit
96df1367b6
@@ -3,7 +3,7 @@
|
||||
_realname=responses
|
||||
pkgbase=mingw-w64-python-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
||||
pkgver=0.22.0
|
||||
pkgver=0.23.0
|
||||
pkgrel=1
|
||||
pkgdesc='A utility library for mocking out the `requests` Python library. (mingw-w64)'
|
||||
arch=('any')
|
||||
@@ -13,16 +13,19 @@ license=('spdx:Apache-2.0')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-python"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-requests"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-urllib3"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-toml"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-types-toml")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools")
|
||||
"${MINGW_PACKAGE_PREFIX}-python-yaml"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-types-pyyaml")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-installer"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-setuptools"
|
||||
"${MINGW_PACKAGE_PREFIX}-python-wheel")
|
||||
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=('92c5e3ba25cebf1fd45f84c21fd4e863422eae44655714e7853ffe3664d1d2a9')
|
||||
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname/-/_}-${pkgver}.tar.gz")
|
||||
sha256sums=('c5d5ccbbdf8696e8b753b97a1db269051e26195de234a0783f01985e8f4fa193')
|
||||
|
||||
prepare() {
|
||||
rm -rf python-build-${MSYSTEM} | true
|
||||
@@ -30,20 +33,19 @@ prepare() {
|
||||
}
|
||||
|
||||
build() {
|
||||
msg "Python build for ${MSYSTEM}"
|
||||
cd "${srcdir}/python-build-${MSYSTEM}"
|
||||
${MINGW_PREFIX}/bin/python setup.py build
|
||||
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "${srcdir}/python-build-${MSYSTEM}"
|
||||
${MINGW_PREFIX}/bin/python setup.py pytest || warning "Tests failed"
|
||||
${MINGW_PREFIX}/bin/python -m pytest || warning "Tests failed"
|
||||
}
|
||||
|
||||
package() {
|
||||
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
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=" \
|
||||
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
|
||||
--destdir="${pkgdir}" dist/*.whl
|
||||
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user