pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-respx py-respx: updated to 0.20.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3c430484d3ec
branches:  trunk
changeset: 387077:3c430484d3ec
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri Oct 21 12:29:32 2022 +0000

description:
py-respx: updated to 0.20.0

0.20.0

Changed
- Type Router.__getitem__ to not return optional routes
- Change `Call.response` to raise instead of returning optional response
- Change `CallList.last` to raise instead of return optional call
- Type `M()` to not return optional pattern, by introducing a `Noop` pattern
- Type `Route.pattern` to not be optional

Fixed
- Correct type hints for side effects

Added
- Runs `mypy` on both tests and respx
- Added nox test session for python 3.11
- Added `Call.has_response` helper, now that `.response` raises

diffstat:

 www/py-respx/Makefile |  4 ++--
 www/py-respx/distinfo |  8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (25 lines):

diff -r 1b5d4493a9da -r 3c430484d3ec www/py-respx/Makefile
--- a/www/py-respx/Makefile     Fri Oct 21 12:28:07 2022 +0000
+++ b/www/py-respx/Makefile     Fri Oct 21 12:29:32 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.11 2022/02/06 07:53:10 adam Exp $
+# $NetBSD: Makefile,v 1.12 2022/10/21 12:29:32 adam Exp $
 
-DISTNAME=      respx-0.19.2
+DISTNAME=      respx-0.20.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=r/respx/}
diff -r 1b5d4493a9da -r 3c430484d3ec www/py-respx/distinfo
--- a/www/py-respx/distinfo     Fri Oct 21 12:28:07 2022 +0000
+++ b/www/py-respx/distinfo     Fri Oct 21 12:29:32 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.11 2022/02/06 07:53:10 adam Exp $
+$NetBSD: distinfo,v 1.12 2022/10/21 12:29:32 adam Exp $
 
-BLAKE2s (respx-0.19.2.tar.gz) = d62b36d6d8a7302195da604ed3de8b9cd51015dae7c6037ca7f1d0d42bd6a3bd
-SHA512 (respx-0.19.2.tar.gz) = 82d4c93f7af1d9563e1b313dbe04cb9a83b6882cf28b01bc224176f06b8cc74775f9fd52bcc7ca4db3ee925e71bac9c5b744fde7bbbcce97e8d13d9695ab9e06
-Size (respx-0.19.2.tar.gz) = 24437 bytes
+BLAKE2s (respx-0.20.0.tar.gz) = 6e91b82f4a05fabae0688e895c9851c8165fb6cd780ee370bd80404e97cce9cb
+SHA512 (respx-0.20.0.tar.gz) = c7af0d1d82dc420ddfa777de00d62a87c5c8a1921d198f41b380a4bf6d0e854102b077ff0c6139c277b1700550ca97f4e088610361d0bd65308db43c725df7a5
+Size (respx-0.20.0.tar.gz) = 25087 bytes



Home | Main Index | Thread Index | Old Index