pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-requests-mock



Module Name:    pkgsrc
Committed By:   adam
Date:           Sat Jul  8 07:33:35 UTC 2023

Modified Files:
        pkgsrc/devel/py-requests-mock: Makefile PLIST distinfo

Log Message:
py-requests-mock: updated to 1.11.0

1.11.0
======

New Features
------------
- Exposes some public type aliases (for type hinting only, they can't be instanciated)
  for the types intended to be used by `requests_mock` users.
  The following types are now exposed:
  - `requests_mock.Context` used in callbacks
  - `requests_mock.Request` used in callbacks, which is a `requests.PreparedRequest` proxy.
  - `requests_mock.Callback[T]` which is the callbacks type.

Bug Fixes
---------
- Some typing inconsistencies have been fixed.
  Especially for `request` object in signatures which is in fact a `requests_mock.Request` object.

- Fix incompatibility with urllib3 >2.0.0. In 2.0.0 they default to enforcing
  content length checking on returned bodies in responses from the previous
  default of false. However the flag is still available so for compatibility
  we can just default the other way.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 pkgsrc/devel/py-requests-mock/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/py-requests-mock/PLIST
cvs rdiff -u -r1.14 -r1.15 pkgsrc/devel/py-requests-mock/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-requests-mock/Makefile
diff -u pkgsrc/devel/py-requests-mock/Makefile:1.19 pkgsrc/devel/py-requests-mock/Makefile:1.20
--- pkgsrc/devel/py-requests-mock/Makefile:1.19 Tue Jun  6 12:41:14 2023
+++ pkgsrc/devel/py-requests-mock/Makefile      Sat Jul  8 07:33:35 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.19 2023/06/06 12:41:14 riastradh Exp $
+# $NetBSD: Makefile,v 1.20 2023/07/08 07:33:35 adam Exp $
 
-DISTNAME=      requests-mock-1.10.0
+DISTNAME=      requests-mock-1.11.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=r/requests-mock/}
@@ -14,17 +14,17 @@ DEPENDS+=   ${PYPKGPREFIX}-requests>=2.3:.
 DEPENDS+=      ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
 TOOL_DEPENDS+= ${PYPKGPREFIX}-pbr-[0-9]*:../../devel/py-pbr
 TEST_DEPENDS+= ${PYPKGPREFIX}-fixtures-[0-9]*:../../devel/py-fixtures
-TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
 TEST_DEPENDS+= ${PYPKGPREFIX}-purl-[0-9]*:../../www/py-purl
+TEST_DEPENDS+= ${PYPKGPREFIX}-requests-futures-[0-9]*:../../devel/py-requests-futures
 TEST_DEPENDS+= ${PYPKGPREFIX}-sphinx-[0-9]*:../../textproc/py-sphinx
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 TEST_DEPENDS+= ${PYPKGPREFIX}-testtools-[0-9]*:../../devel/py-testtools
 TEST_DEPENDS+= ${PYPKGPREFIX}-testrepository>=0.0.18:../../devel/py-testrepository
 
-PYTHON_VERSIONS_INCOMPATIBLE=  27
-
 USE_LANGUAGES= # none
 
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
 do-test:
        cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
 

Index: pkgsrc/devel/py-requests-mock/PLIST
diff -u pkgsrc/devel/py-requests-mock/PLIST:1.4 pkgsrc/devel/py-requests-mock/PLIST:1.5
--- pkgsrc/devel/py-requests-mock/PLIST:1.4     Thu Apr 29 07:44:58 2021
+++ pkgsrc/devel/py-requests-mock/PLIST Sat Jul  8 07:33:35 2023
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2021/04/29 07:44:58 adam Exp $
+@comment $NetBSD: PLIST,v 1.5 2023/07/08 07:33:35 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -23,6 +23,7 @@ ${PYSITELIB}/requests_mock/contrib/__ini
 ${PYSITELIB}/requests_mock/contrib/__init__.pyo
 ${PYSITELIB}/requests_mock/contrib/_pytest_plugin.py
 ${PYSITELIB}/requests_mock/contrib/_pytest_plugin.pyc
+${PYSITELIB}/requests_mock/contrib/_pytest_plugin.pyi
 ${PYSITELIB}/requests_mock/contrib/_pytest_plugin.pyo
 ${PYSITELIB}/requests_mock/contrib/fixture.py
 ${PYSITELIB}/requests_mock/contrib/fixture.pyc

Index: pkgsrc/devel/py-requests-mock/distinfo
diff -u pkgsrc/devel/py-requests-mock/distinfo:1.14 pkgsrc/devel/py-requests-mock/distinfo:1.15
--- pkgsrc/devel/py-requests-mock/distinfo:1.14 Thu Oct 13 16:13:43 2022
+++ pkgsrc/devel/py-requests-mock/distinfo      Sat Jul  8 07:33:35 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.14 2022/10/13 16:13:43 adam Exp $
+$NetBSD: distinfo,v 1.15 2023/07/08 07:33:35 adam Exp $
 
-BLAKE2s (requests-mock-1.10.0.tar.gz) = f2a8e11c21576d89c4da9b91f6a6ccef51df81152e16d1c59d9eebb6ce790bf2
-SHA512 (requests-mock-1.10.0.tar.gz) = 873c9b219e2a2360872fac22c83371ce40f4dee45e6a0d40365f4f551271c2168a662dced6e8baad890b1dadfc03d21d4ce013f149d25a42d998af4f4fca2a79
-Size (requests-mock-1.10.0.tar.gz) = 72627 bytes
+BLAKE2s (requests-mock-1.11.0.tar.gz) = 071f077178cfafdb62ce6b7d0a7c9632ad3c8bf4b460ae47122b92d6b48e5b1b
+SHA512 (requests-mock-1.11.0.tar.gz) = 8d161cb0f6183994053d4dd06b801c2614b7ac937798addcdc52ee8e3973a7ef874ca615ca1946ea4bc0e05ce36c5c813460f7a41b3254671095059536fd2961
+Size (requests-mock-1.11.0.tar.gz) = 74377 bytes



Home | Main Index | Thread Index | Old Index