py-mocket: update to 3.12.0. 3.12.0 Support for Python 3.12 (#204) * Fix for Python 3.12 * Getting rid of Python 3.7, since it's not supported anymore. * Precommit hooks' autoupdate. * Disabling `aiohttp` for testing Python 3.12. 3.11.1 Replace aiohttp with httpx for a few tests by @mindflayer in #197 Fix for urllib2>=2 by @mindflayer in #201 3.11.0 Migrating the HTTP[S] mock from relying on http-parser to httptools. Never discovered the root cause for the failing tests with aiohttp/Python 3.11 (first time ever I added @pytest.mark.xfail to a few tests). Same test works with httpx, so I suspect it's related to a client issue. I'll probably migrate to httpx as the reference client for testing async/await code.diff -r1.1 -r1.2 pkgsrc/devel/py-mocket/Makefile
(wiz)
@@ -1,31 +1,32 @@ | @@ -1,31 +1,32 @@ | |||
1 | # $NetBSD: Makefile,v 1.1 2022/08/24 12:52:40 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.2 2023/11/06 10:42:23 wiz Exp $ | |
2 | 2 | |||
3 | DISTNAME= mocket-3.10.8 | 3 | DISTNAME= mocket-3.12.0 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
5 | CATEGORIES= devel python | 5 | CATEGORIES= devel python | |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=m/mocket/} | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=m/mocket/} | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://github.com/mindflayer/python-mocket | 9 | HOMEPAGE= https://github.com/mindflayer/python-mocket | |
10 | COMMENT= Socket Mock Framework | 10 | COMMENT= Socket Mock Framework | |
11 | LICENSE= modified-bsd | 11 | LICENSE= modified-bsd | |
12 | 12 | |||
13 | TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling>=0:../../devel/py-hatchling | |||
13 | DEPENDS+= ${PYPKGPREFIX}-magic>=0.4.5:../../sysutils/py-magic | 14 | DEPENDS+= ${PYPKGPREFIX}-magic>=0.4.5:../../sysutils/py-magic | |
14 | DEPENDS+= ${PYPKGPREFIX}-decorator>=4.0.0:../../devel/py-decorator | 15 | DEPENDS+= ${PYPKGPREFIX}-decorator>=4.0.0:../../devel/py-decorator | |
15 | DEPENDS+= ${PYPKGPREFIX}-urllib3>=1.25.3:../../www/py-urllib3 | 16 | DEPENDS+= ${PYPKGPREFIX}-urllib3>=1.25.3:../../www/py-urllib3 | |
16 | DEPENDS+= ${PYPKGPREFIX}-http-parser>=0.9.0:../../www/py-http-parser | 17 | DEPENDS+= ${PYPKGPREFIX}-httptools>=0:../../www/py-httptools | |
17 | TEST_DEPENDS+= ${PYPKGPREFIX}-aiohttp>=0:../../www/py-aiohttp | |||
18 | TEST_DEPENDS+= ${PYPKGPREFIX}-test>=0:../../devel/py-test | |||
19 | TEST_DEPENDS+= ${PYPKGPREFIX}-requests>=0:../../devel/py-requests | |||
20 | # needs redis server as well | 18 | # needs redis server as well | |
21 | #TEST_DEPENDS+= ${PYPKGPREFIX}-redis>=0:../../databases/py-redis | 19 | #TEST_DEPENDS+= ${PYPKGPREFIX}-redis>=0:../../databases/py-redis | |
20 | TEST_DEPENDS+= ${PYPKGPREFIX}-asgiref>=0:../../www/py-asgiref | |||
22 | TEST_DEPENDS+= ${PYPKGPREFIX}-gevent>=0:../../net/py-gevent | 21 | TEST_DEPENDS+= ${PYPKGPREFIX}-gevent>=0:../../net/py-gevent | |
23 | TEST_DEPENDS+= ${PYPKGPREFIX}-sure>=0:../../devel/py-sure | 22 | TEST_DEPENDS+= ${PYPKGPREFIX}-httpx>=0:../../www/py-httpx | |
24 | TEST_DEPENDS+= ${PYPKGPREFIX}-pook>=0:../../www/py-pook | 23 | TEST_DEPENDS+= ${PYPKGPREFIX}-pook>=0:../../www/py-pook | |
24 | TEST_DEPENDS+= ${PYPKGPREFIX}-requests>=0:../../devel/py-requests | |||
25 | TEST_DEPENDS+= ${PYPKGPREFIX}-sure>=0:../../devel/py-sure | |||
25 | 26 | |||
26 | USE_LANGUAGES= # none | 27 | USE_LANGUAGES= # none | |
27 | 28 | |||
28 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | 29 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | |
29 | 30 | |||
30 | .include "../../lang/python/egg.mk" | 31 | .include "../../lang/python/wheel.mk" | |
31 | .include "../../mk/bsd.pkg.mk" | 32 | .include "../../mk/bsd.pkg.mk" |
@@ -1,19 +1,18 @@ | @@ -1,19 +1,18 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.1 2022/08/24 12:52:40 wiz Exp $ | 1 | @comment $NetBSD: PLIST,v 1.2 2023/11/06 10:42:23 wiz 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}/requires.txt | 5 | ${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE | |
6 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt | |||
7 | ${PYSITELIB}/mocket/__init__.py | 6 | ${PYSITELIB}/mocket/__init__.py | |
8 | ${PYSITELIB}/mocket/__init__.pyc | 7 | ${PYSITELIB}/mocket/__init__.pyc | |
9 | ${PYSITELIB}/mocket/__init__.pyo | 8 | ${PYSITELIB}/mocket/__init__.pyo | |
10 | ${PYSITELIB}/mocket/async_mocket.py | 9 | ${PYSITELIB}/mocket/async_mocket.py | |
11 | ${PYSITELIB}/mocket/async_mocket.pyc | 10 | ${PYSITELIB}/mocket/async_mocket.pyc | |
12 | ${PYSITELIB}/mocket/async_mocket.pyo | 11 | ${PYSITELIB}/mocket/async_mocket.pyo | |
13 | ${PYSITELIB}/mocket/compat.py | 12 | ${PYSITELIB}/mocket/compat.py | |
14 | ${PYSITELIB}/mocket/compat.pyc | 13 | ${PYSITELIB}/mocket/compat.pyc | |
15 | ${PYSITELIB}/mocket/compat.pyo | 14 | ${PYSITELIB}/mocket/compat.pyo | |
16 | ${PYSITELIB}/mocket/exceptions.py | 15 | ${PYSITELIB}/mocket/exceptions.py | |
17 | ${PYSITELIB}/mocket/exceptions.pyc | 16 | ${PYSITELIB}/mocket/exceptions.pyc | |
18 | ${PYSITELIB}/mocket/exceptions.pyo | 17 | ${PYSITELIB}/mocket/exceptions.pyo | |
19 | ${PYSITELIB}/mocket/mocket.py | 18 | ${PYSITELIB}/mocket/mocket.py |
@@ -1,5 +1,5 @@ | @@ -1,5 +1,5 @@ | |||
1 | $NetBSD: distinfo,v 1.1 2022/08/24 12:52:40 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.2 2023/11/06 10:42:23 wiz Exp $ | |
2 | 2 | |||
3 | BLAKE2s (mocket-3.10.8.tar.gz) = a787a78d519b8d2c4a55191e2e41a09a5f2f092769666e42383facdcbfaa20d1 | 3 | BLAKE2s (mocket-3.12.0.tar.gz) = 32e968e4dce7befa793e1653a9541e1a916d645a6c1f78fec58ec94f9f847179 | |
4 | SHA512 (mocket-3.10.8.tar.gz) = b9f59a016ba65a30ced4195d620531e6b0e3dabe72a019183f68343cb5f62be038bb6fddbf327ed56f4576d41e19c6fb7c6a31733fc2d1f2dd1203dce72809c2 | 4 | SHA512 (mocket-3.12.0.tar.gz) = 3f9b636cc375033673ba55f0e372a48b5ee6f6e6fc39026a5624f2bf094431a405ec8e7c284c2d69c34d44d89d09a2821591e5b2dc6b34b408898940ac4e47d0 | |
5 | Size (mocket-3.10.8.tar.gz) = 77138 bytes | 5 | Size (mocket-3.12.0.tar.gz) = 591080 bytes |