pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/www/py-test-httpx
Module Name: pkgsrc
Committed By: adam
Date: Fri Aug 4 05:10:22 UTC 2023
Modified Files:
pkgsrc/www/py-test-httpx: Makefile distinfo
Log Message:
py-test-httpx: updated to 0.23.1
0.23.1
Fixed
- Version `0.23.0` introduced a regression removing the support for mutating json content provided in `httpx_mock.add_response`.
- This is fixed, you can now expect the JSON return being as it was when provided to `httpx_mock.add_response`:
```python
mutating_json = {"content": "request 1"}
# This will return {"content": "request 1"}
httpx_mock.add_response(json=mutating_json)
mutating_json["content"] = "request 2"
# This will return {"content": "request 2"}
httpx_mock.add_response(json=mutating_json)
```
0.23.0
Removed
- Python `3.7` and `3.8` are no longer supported.
Fixed
- `httpx_mock.add_response` is now returning a new `httpx.Response` instance upon each matching request. Preventing unnecessary recursion in streams.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/www/py-test-httpx/Makefile \
pkgsrc/www/py-test-httpx/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/www/py-test-httpx/Makefile
diff -u pkgsrc/www/py-test-httpx/Makefile:1.3 pkgsrc/www/py-test-httpx/Makefile:1.4
--- pkgsrc/www/py-test-httpx/Makefile:1.3 Mon Apr 17 09:59:50 2023
+++ pkgsrc/www/py-test-httpx/Makefile Fri Aug 4 05:10:22 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2023/04/17 09:59:50 adam Exp $
+# $NetBSD: Makefile,v 1.4 2023/08/04 05:10:22 adam Exp $
-DISTNAME= pytest_httpx-0.22.0
+DISTNAME= pytest_httpx-0.23.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/pytest_/test-/}
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest-httpx/}
@@ -12,10 +12,15 @@ LICENSE= mit
DEPENDS+= ${PYPKGPREFIX}-httpx>=0.24:../../www/py-httpx
DEPENDS+= ${PYPKGPREFIX}-test>=6.0:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-asyncio>=0.21:../../devel/py-test-asyncio
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov>=4:../../devel/py-test-cov
USE_LANGUAGES= # none
-PYTHON_VERSIONS_INCOMPATIBLE= 27
+PYTHON_VERSIONS_INCOMPATIBLE= 27 38
+
+do-test:
+ cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/www/py-test-httpx/distinfo
diff -u pkgsrc/www/py-test-httpx/distinfo:1.3 pkgsrc/www/py-test-httpx/distinfo:1.4
--- pkgsrc/www/py-test-httpx/distinfo:1.3 Mon Apr 17 09:59:50 2023
+++ pkgsrc/www/py-test-httpx/distinfo Fri Aug 4 05:10:22 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.3 2023/04/17 09:59:50 adam Exp $
+$NetBSD: distinfo,v 1.4 2023/08/04 05:10:22 adam Exp $
-BLAKE2s (pytest_httpx-0.22.0.tar.gz) = c77c5de13790199379df23d2558ab165730414e7b3a84a0eafc739f6dca6df27
-SHA512 (pytest_httpx-0.22.0.tar.gz) = 01348d60acdb78ff581a9f76beb8e75399f8f3f8017431761e60df221a60b92c62d0f855dab14401a3071409e6d9d87d1c15f719e6f51f9d7b32c01413df278e
-Size (pytest_httpx-0.22.0.tar.gz) = 16713 bytes
+BLAKE2s (pytest_httpx-0.23.1.tar.gz) = bb64fc132a9cd9242d58b9e4d8c55eef5068e4bd459ac91e827b30e50720886c
+SHA512 (pytest_httpx-0.23.1.tar.gz) = 4490c716c341d782ebf02c29475b7618c0717bbaa736b0a0eefee8a7c8498d3474dd28d487469fe5806ba0018a07b538d2f583406f561c451de6f8a688d57901
+Size (pytest_httpx-0.23.1.tar.gz) = 29462 bytes
Home |
Main Index |
Thread Index |
Old Index