Update www/py-webtest to most recent version and drop python 2 flavor. Changelog (from https://github.com/Pylons/webtest/blob/master/CHANGELOG.rst)
2.0.35 (2020-04-27) python3.8 compat Remove use of deprecated splittype and splithost 2.0.34 (2020-01-29) Fix the test length == 0 in check_content_type. Treat <input type="search"> like <input type="text">. Handle query parameters for the head method. 2.0.33 (2019-02-09) Fixed #210. Allow to reset select multiple with field.value = [] Support for PYTHONOPTIMIZE=2, fix tests on PYTHONOPTIMIZE=1, 2 Fixed #196. Fix deprecation warnings for collections to use collections.abc for Iterable on Python 3. 2.0.32 (2018-10-05) remove invalid email from setup.py 2.0.31 (2018-10-05) py33 is no longer supported. It may works but has been removed from tox config Fixed #205: Use empty string as default value for submit and button tests use pytest Tests are still missing some unported TEST_DEPENDS, but the tests pass identically to how they did before on amd64. py-webob (one of the two consumers) tests all pass after this update. ok? --Kurt Index: Makefile =================================================================== RCS file: /cvs/ports/www/py-webtest/Makefile,v retrieving revision 1.20 diff -u -p -r1.20 Makefile --- Makefile 3 Jul 2020 21:13:21 -0000 1.20 +++ Makefile 14 Mar 2021 01:34:39 -0000 @@ -2,10 +2,9 @@ COMMENT = helper to test wsgi applications -MODPY_EGG_VERSION = 2.0.30 +MODPY_EGG_VERSION = 2.0.35 DISTNAME = WebTest-${MODPY_EGG_VERSION} PKGNAME = py-${DISTNAME:L} -REVISION = 1 CATEGORIES = www devel @@ -19,17 +18,19 @@ MODULES = lang/python MODPY_PI = Yes MODPY_SETUPTOOLS = Yes MODPY_PYTEST = Yes +MODPY_PYTEST_ARGS = tests FLAVORS = python3 -FLAVOR ?= +FLAVOR = python3 RUN_DEPENDS = devel/py-six${MODPY_FLAVOR} \ www/py-waitress${MODPY_FLAVOR} \ www/py-beautifulsoup4${MODPY_FLAVOR} \ www/py-webob${MODPY_FLAVOR}>=1.2 -# also needs WSGIProxy2, PasteDeploy and pyquery +# also needs WSGIProxy2 and PasteDeploy TEST_DEPENDS = devel/py-coverage${MODPY_FLAVOR} \ - devel/py-mock${MODPY_FLAVOR} + devel/py-mock${MODPY_FLAVOR} \ + www/py-query${MODPY_FLAVOR} .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/www/py-webtest/distinfo,v retrieving revision 1.8 diff -u -p -r1.8 distinfo --- distinfo 18 Oct 2018 23:19:56 -0000 1.8 +++ distinfo 14 Mar 2021 01:34:39 -0000 @@ -1,2 +1,2 @@ -SHA256 (WebTest-2.0.30.tar.gz) = XGn3PMWL7zVekZ/5YFS2jLrsx9lwtgtgJWjT2SypZ9U= -SIZE (WebTest-2.0.30.tar.gz) = 74922 +SHA256 (WebTest-2.0.35.tar.gz) = qsFotbK08gCvTjWGfPMWcSIQ49XbgcHL3/OHImR7sIc= +SIZE (WebTest-2.0.35.tar.gz) = 76227 Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/www/py-webtest/pkg/PLIST,v retrieving revision 1.6 diff -u -p -r1.6 PLIST --- pkg/PLIST 18 Oct 2018 23:19:56 -0000 1.6 +++ pkg/PLIST 14 Mar 2021 01:34:39 -0000 @@ -1,4 +1,6 @@ @comment $OpenBSD: PLIST,v 1.6 2018/10/18 23:19:56 danj Exp $ +@pkgpath www/py-webtest +@conflict py-webtest-* lib/python${MODPY_VERSION}/site-packages/WebTest-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/ lib/python${MODPY_VERSION}/site-packages/WebTest-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO lib/python${MODPY_VERSION}/site-packages/WebTest-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt @@ -9,7 +11,7 @@ lib/python${MODPY_VERSION}/site-packages lib/python${MODPY_VERSION}/site-packages/WebTest-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt lib/python${MODPY_VERSION}/site-packages/webtest/ lib/python${MODPY_VERSION}/site-packages/webtest/__init__.py -${MODPY_COMMENT}${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/webtest/${MODPY_PYCACHE}/ +${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/webtest/${MODPY_PYCACHE}/ lib/python${MODPY_VERSION}/site-packages/webtest/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc lib/python${MODPY_VERSION}/site-packages/webtest/${MODPY_PYCACHE}app.${MODPY_PYC_MAGIC_TAG}pyc lib/python${MODPY_VERSION}/site-packages/webtest/${MODPY_PYCACHE}compat.${MODPY_PYC_MAGIC_TAG}pyc