Sun Jan 14 15:34:05 2024 UTC (133d)
py-pook: updated to 1.4.0

v1.4.0 / 2023-12-29

Add support for httpx
Enable mocket integration tests for Python >= 3.11

v1.3.0 / 2023-12-25

This release modernizes Pook build and development environments.

Drop support for EOL'd Python versions (in other words, 3.6 and 3.7)
Use pyproject.toml
Use ruff to lint files
Use pre-commit to add pre-commit hooks
Use hatch to manage test, development, and build environments
Fix the test configuration to actually run the example tests
Fix the documentation build
Fix support for asynchronous functions in the activate decorator (this was a direct result of re-enabling the example tests and finding lots of little issues)
Remove all mention of the unsupported pycurl library
Clean up tests that can use pytest parametrize to do so (and get better debugging information during tests runs as a result)
Use pytest-pook to clean up a bunch of unnecessary test fixtures
Fix deprecation warning for invalid string escape sequences caused by untagged regex strings

v1.2.1 / 2023-12-23

Fix usage of regex values in header matchers
Fix urllib SSL handling

v1.2.0 / 2023-12-17

feat(api): add support for binary bodies
fix(urllib3): don't put non-strings into HTTP header dict
refactor: drop Python 3.5 support

v1.1.0 / 2023-01-01

chore(version): bump minor v1.1.0
Switch to Python >= 3.5 and fix latest aiohttp compatability
fix: remove print cal


(adam)
diff -r1.2 -r1.3 pkgsrc/www/py-pook/Makefile
diff -r1.1 -r1.2 pkgsrc/www/py-pook/PLIST
diff -r1.1 -r1.2 pkgsrc/www/py-pook/distinfo

cvs diff -r1.2 -r1.3 pkgsrc/www/py-pook/Makefile (expand / switch to unified diff)

--- pkgsrc/www/py-pook/Makefile 2022/08/24 12:50:12 1.2
+++ pkgsrc/www/py-pook/Makefile 2024/01/14 15:34:05 1.3
@@ -1,30 +1,33 @@ @@ -1,30 +1,33 @@
1# $NetBSD: Makefile,v 1.2 2022/08/24 12:50:12 wiz Exp $ 1# $NetBSD: Makefile,v 1.3 2024/01/14 15:34:05 adam Exp $
2 2
3DISTNAME= pook-1.0.2 3DISTNAME= pook-1.4.0
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= www 5CATEGORIES= www python
6MASTER_SITES= ${MASTER_SITE_PYPI:=p/pook/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=p/pook/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://github.com/h2non/pook 9HOMEPAGE= https://github.com/h2non/pook
10COMMENT= HTTP traffic mocking and expectations made easy 10COMMENT= HTTP traffic mocking and expectations made easy
11LICENSE= mit 11LICENSE= mit
12 12
 13TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
13DEPENDS+= ${PYPKGPREFIX}-furl>=0.5.6:../../www/py-furl 14DEPENDS+= ${PYPKGPREFIX}-furl>=0.5.6:../../www/py-furl
14DEPENDS+= ${PYPKGPREFIX}-xmltodict>=0.11.0:../../textproc/py-xmltodict 
15DEPENDS+= ${PYPKGPREFIX}-jsonschema>=2.5.1:../../textproc/py-jsonschema 15DEPENDS+= ${PYPKGPREFIX}-jsonschema>=2.5.1:../../textproc/py-jsonschema
16DEPENDS+= ${PYPKGPREFIX}-aiohttp>=3.6.2:../../www/py-aiohttp 16DEPENDS+= ${PYPKGPREFIX}-xmltodict>=0.11.0:../../textproc/py-xmltodict
17DEPENDS+= ${PYPKGPREFIX}-requests>=2.20.0:../../devel/py-requests 17TEST_DEPENDS+= ${PYPKGPREFIX}-test-asyncio>=0.20.3:../../devel/py-test-asyncio
18DEPENDS+= ${PYPKGPREFIX}-urllib3>=1.24.2:../../www/py-urllib3 18#TEST_DEPENDS+= ${PYPKGPREFIX}-test-pook>=0.1.0b0:../../devel/py-test-pook
19TEST_DEPENDS+= ${PYPKGPREFIX}-test>=3.0.3:../../devel/py-test 19
 20USE_LANGUAGES= # none
20 21
21PYTHON_VERSIONS_INCOMPATIBLE= 27 22PYTHON_VERSIONS_INCOMPATIBLE= 27
22 23
23# as of 1.0.2 24# as of 1.0.2
24# 2 failed, 31 passed, 14 warnings 25# 2 failed, 31 passed, 14 warnings
25TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib 26TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib
26do-test: 
27 cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} 
28 27
29.include "../../lang/python/egg.mk" 28post-extract:
 29 ${MKDIR} ${WRKSRC}/src
 30 ${MV} ${WRKSRC}/pook ${WRKSRC}/src/pook
 31
 32.include "../../lang/python/wheel.mk"
30.include "../../mk/bsd.pkg.mk" 33.include "../../mk/bsd.pkg.mk"

cvs diff -r1.1 -r1.2 pkgsrc/www/py-pook/PLIST (expand / switch to unified diff)

--- pkgsrc/www/py-pook/PLIST 2022/08/24 12:48:05 1.1
+++ pkgsrc/www/py-pook/PLIST 2024/01/14 15:34:05 1.2
@@ -1,20 +1,18 @@ @@ -1,20 +1,18 @@
1@comment $NetBSD: PLIST,v 1.1 2022/08/24 12:48:05 wiz Exp $ 1@comment $NetBSD: PLIST,v 1.2 2024/01/14 15:34:05 adam Exp $
2${PYSITELIB}/${EGG_INFODIR}/PKG-INFO 2${PYSITELIB}/${WHEEL_INFODIR}/METADATA
3${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt 3${PYSITELIB}/${WHEEL_INFODIR}/RECORD
4${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt 4${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
5${PYSITELIB}/${EGG_INFODIR}/not-zip-safe 5${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
6${PYSITELIB}/${EGG_INFODIR}/requires.txt 
7${PYSITELIB}/${EGG_INFODIR}/top_level.txt 
8${PYSITELIB}/pook/__init__.py 6${PYSITELIB}/pook/__init__.py
9${PYSITELIB}/pook/__init__.pyc 7${PYSITELIB}/pook/__init__.pyc
10${PYSITELIB}/pook/__init__.pyo 8${PYSITELIB}/pook/__init__.pyo
11${PYSITELIB}/pook/activate_async.py 9${PYSITELIB}/pook/activate_async.py
12${PYSITELIB}/pook/activate_async.pyc 10${PYSITELIB}/pook/activate_async.pyc
13${PYSITELIB}/pook/activate_async.pyo 11${PYSITELIB}/pook/activate_async.pyo
14${PYSITELIB}/pook/api.py 12${PYSITELIB}/pook/api.py
15${PYSITELIB}/pook/api.pyc 13${PYSITELIB}/pook/api.pyc
16${PYSITELIB}/pook/api.pyo 14${PYSITELIB}/pook/api.pyo
17${PYSITELIB}/pook/assertion.py 15${PYSITELIB}/pook/assertion.py
18${PYSITELIB}/pook/assertion.pyc 16${PYSITELIB}/pook/assertion.pyc
19${PYSITELIB}/pook/assertion.pyo 17${PYSITELIB}/pook/assertion.pyo
20${PYSITELIB}/pook/compare.py 18${PYSITELIB}/pook/compare.py
@@ -28,38 +26,38 @@ ${PYSITELIB}/pook/engine.pyc @@ -28,38 +26,38 @@ ${PYSITELIB}/pook/engine.pyc
28${PYSITELIB}/pook/engine.pyo 26${PYSITELIB}/pook/engine.pyo
29${PYSITELIB}/pook/exceptions.py 27${PYSITELIB}/pook/exceptions.py
30${PYSITELIB}/pook/exceptions.pyc 28${PYSITELIB}/pook/exceptions.pyc
31${PYSITELIB}/pook/exceptions.pyo 29${PYSITELIB}/pook/exceptions.pyo
32${PYSITELIB}/pook/headers.py 30${PYSITELIB}/pook/headers.py
33${PYSITELIB}/pook/headers.pyc 31${PYSITELIB}/pook/headers.pyc
34${PYSITELIB}/pook/headers.pyo 32${PYSITELIB}/pook/headers.pyo
35${PYSITELIB}/pook/helpers.py 33${PYSITELIB}/pook/helpers.py
36${PYSITELIB}/pook/helpers.pyc 34${PYSITELIB}/pook/helpers.pyc
37${PYSITELIB}/pook/helpers.pyo 35${PYSITELIB}/pook/helpers.pyo
38${PYSITELIB}/pook/interceptors/__init__.py 36${PYSITELIB}/pook/interceptors/__init__.py
39${PYSITELIB}/pook/interceptors/__init__.pyc 37${PYSITELIB}/pook/interceptors/__init__.pyc
40${PYSITELIB}/pook/interceptors/__init__.pyo 38${PYSITELIB}/pook/interceptors/__init__.pyo
 39${PYSITELIB}/pook/interceptors/_httpx.py
 40${PYSITELIB}/pook/interceptors/_httpx.pyc
 41${PYSITELIB}/pook/interceptors/_httpx.pyo
41${PYSITELIB}/pook/interceptors/aiohttp.py 42${PYSITELIB}/pook/interceptors/aiohttp.py
42${PYSITELIB}/pook/interceptors/aiohttp.pyc 43${PYSITELIB}/pook/interceptors/aiohttp.pyc
43${PYSITELIB}/pook/interceptors/aiohttp.pyo 44${PYSITELIB}/pook/interceptors/aiohttp.pyo
44${PYSITELIB}/pook/interceptors/base.py 45${PYSITELIB}/pook/interceptors/base.py
45${PYSITELIB}/pook/interceptors/base.pyc 46${PYSITELIB}/pook/interceptors/base.pyc
46${PYSITELIB}/pook/interceptors/base.pyo 47${PYSITELIB}/pook/interceptors/base.pyo
47${PYSITELIB}/pook/interceptors/http.py 48${PYSITELIB}/pook/interceptors/http.py
48${PYSITELIB}/pook/interceptors/http.pyc 49${PYSITELIB}/pook/interceptors/http.pyc
49${PYSITELIB}/pook/interceptors/http.pyo 50${PYSITELIB}/pook/interceptors/http.pyo
50${PYSITELIB}/pook/interceptors/pycurl.py 
51${PYSITELIB}/pook/interceptors/pycurl.pyc 
52${PYSITELIB}/pook/interceptors/pycurl.pyo 
53${PYSITELIB}/pook/interceptors/urllib3.py 51${PYSITELIB}/pook/interceptors/urllib3.py
54${PYSITELIB}/pook/interceptors/urllib3.pyc 52${PYSITELIB}/pook/interceptors/urllib3.pyc
55${PYSITELIB}/pook/interceptors/urllib3.pyo 53${PYSITELIB}/pook/interceptors/urllib3.pyo
56${PYSITELIB}/pook/matcher.py 54${PYSITELIB}/pook/matcher.py
57${PYSITELIB}/pook/matcher.pyc 55${PYSITELIB}/pook/matcher.pyc
58${PYSITELIB}/pook/matcher.pyo 56${PYSITELIB}/pook/matcher.pyo
59${PYSITELIB}/pook/matchers/__init__.py 57${PYSITELIB}/pook/matchers/__init__.py
60${PYSITELIB}/pook/matchers/__init__.pyc 58${PYSITELIB}/pook/matchers/__init__.pyc
61${PYSITELIB}/pook/matchers/__init__.pyo 59${PYSITELIB}/pook/matchers/__init__.pyo
62${PYSITELIB}/pook/matchers/api.py 60${PYSITELIB}/pook/matchers/api.py
63${PYSITELIB}/pook/matchers/api.pyc 61${PYSITELIB}/pook/matchers/api.pyc
64${PYSITELIB}/pook/matchers/api.pyo 62${PYSITELIB}/pook/matchers/api.pyo
65${PYSITELIB}/pook/matchers/base.py 63${PYSITELIB}/pook/matchers/base.py

cvs diff -r1.1 -r1.2 pkgsrc/www/py-pook/distinfo (expand / switch to unified diff)

--- pkgsrc/www/py-pook/distinfo 2022/08/24 12:48:05 1.1
+++ pkgsrc/www/py-pook/distinfo 2024/01/14 15:34:05 1.2
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.1 2022/08/24 12:48:05 wiz Exp $ 1$NetBSD: distinfo,v 1.2 2024/01/14 15:34:05 adam Exp $
2 2
3BLAKE2s (pook-1.0.2.tar.gz) = 9db8fa69a00501a43ae1b181675527841d6c3ff3762fbb35d6d43e930e5f117b 3BLAKE2s (pook-1.4.0.tar.gz) = 4cb1bd4e9177489dc83337514cc4cfcef2cb373c4089205a8f7847f07a0c563a
4SHA512 (pook-1.0.2.tar.gz) = 9d5d87e27e292acf93df7d90942d4b7f5b0fa56fe8355c3f3b3595bf4e1f8f167785e018046c856d21546eefe79d6713962a17275091fecc302032366a298f07 4SHA512 (pook-1.4.0.tar.gz) = b8c9b6b239333be3d81728199febe882f61cccd94b1af22195ff7d6f5cee93ddbd41661ea0263e12726f2fe73da5840c4846376042c58536dae6ca245972cc23
5Size (pook-1.0.2.tar.gz) = 42069 bytes 5Size (pook-1.4.0.tar.gz) = 30736 bytes