community/py3-responses: upgrade to 0.25.0

also, fix and run all tests:
  - py3-pytest-cov is no longer needed

  - py3-tomli-w is imported by test_recorder.py

  - py3-pytest-tornasync fixes test_registries.py::test_registry_async
    that is now an error in pytest8

  - using py3-pytest-httpserver instead of localserver fixes
    'ContentServer' object has no attribute 'expect_request' errors
This commit is contained in:
Celeste 2024-03-22 08:01:44 +00:00 committed by Natanael Copa
parent 07fa996d00
commit c55fee6cc8

View File

@ -1,6 +1,6 @@
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=py3-responses
pkgver=0.24.1
pkgver=0.25.0
pkgrel=0
pkgdesc="Utility library for mocking out the requests Python library"
url="https://pypi.org/project/responses/"
@ -20,8 +20,9 @@ makedepends="
checkdepends="
py3-flake8
py3-pytest
py3-pytest-cov
py3-pytest-localserver
py3-pytest-httpserver
py3-pytest-tornasync
py3-tomli-w
py3-werkzeug
"
subpackages="$pkgname-pyc"
@ -40,9 +41,7 @@ build() {
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest \
--ignore responses/tests/test_responses.py \
--ignore responses/tests/test_recorder.py
.testenv/bin/python3 -m pytest
}
package() {
@ -51,5 +50,5 @@ package() {
}
sha512sums="
55d69430ab4ce5faa126e55a120630b5587f088571e6fadca8ff2cfe654dfbcfd06d038ae044e4c346e4258f23e0b1f0fb2915870a2d152afefe1c5c50d4e63e responses-0.24.1.tar.gz
a947641f8693a5687feeec8ded5b8d7791c18910f96d6c967e1d4576d1ded7d56933971690a3f3f6b3394b3d5abc6f3f78462545fcd572e7dd674d06340c7566 responses-0.25.0.tar.gz
"