Hello, Here's an update for www/py-httpbin. This has been make test-ed with its two deps: devel/py-test-httpbin and devel/py-treq.
Switching to a new upstream which has adopted it after no contact from the prior upstream. changelog since fork: https://github.com/psf/httpbin/releases Comments? Thanks, Lucas
diff refs/heads/master refs/heads/httpbin commit - a12677c96068efb4853bf1d30ce2533ae9bd2098 commit + 6f6d072fbb3518d06299f58447a56e32f7e3ffba blob - f746e5c3dab07922dbc03b49b9b59807bd4c4383 blob + 5e6e6d3c26d27edc0d9cff1ada52083b10722b98 --- www/py-httpbin/Makefile +++ www/py-httpbin/Makefile @@ -1,15 +1,14 @@ COMMENT = HTTP request and response service -MODPY_EGG_VERSION = 0.7.0 +MODPY_EGG_VERSION = 0.10.0 DISTNAME = httpbin-${MODPY_EGG_VERSION} PKGNAME = py-${DISTNAME} -REVISION = 0 CATEGORIES = www -HOMEPAGE = https://github.com/postmanlabs/httpbin +HOMEPAGE = https://github.com/psf/httpbin -# MIT +# MIT, ISC PERMIT_PACKAGE = Yes MODULES = lang/python @@ -18,12 +17,15 @@ MODPY_PI = Yes MODPY_PYBUILD = setuptools #MODPY_PYTEST_ARGS = test_httpbin.py -RUN_DEPENDS = www/py-flask${MODPY_FLAVOR} \ - textproc/py-MarkupSafe${MODPY_FLAVOR} \ +RUN_DEPENDS = archivers/py-brotli${MODPY_FLAVOR} \ devel/py-decorator${MODPY_FLAVOR} \ - www/py-itsdangerous${MODPY_FLAVOR} \ + devel/py-gevent${MODPY_FLAVOR} \ devel/py-six${MODPY_FLAVOR} \ - archivers/py-brotli${MODPY_FLAVOR} \ + textproc/py-MarkupSafe${MODPY_FLAVOR} \ + www/py-flasgger${MODPY_FLAVOR} \ + www/py-flask${MODPY_FLAVOR} \ + www/py-itsdangerous${MODPY_FLAVOR} \ + www/py-jinja2${MODPY_FLAVOR} \ www/py-werkzeug${MODPY_FLAVOR} # also wanted "raven" but it's only used for sending app errors to a # web service, and does nothing unless SENTRY_DSN is set in the environment, blob - b3aebdbcdcb0190b140ceba731d0ae979683411c blob + e4b17ea77ec8fb5beecc61413ba83be67be16781 --- www/py-httpbin/distinfo +++ www/py-httpbin/distinfo @@ -1,2 +1,2 @@ -SHA256 (httpbin-0.7.0.tar.gz) = y7N3kMkVdfTxV1f0KtQdn3KesifV7b6J5OwXVIbbjfo= -SIZE (httpbin-0.7.0.tar.gz) = 92613 +SHA256 (httpbin-0.10.0.tar.gz) = 2iapImNrzdGgezDHJll8xL6F0WDuOH4Ph7tRnP/smhw= +SIZE (httpbin-0.10.0.tar.gz) = 103729 blob - eecb292ca7420ae605e08d08756a9bf882757587 (mode 644) blob + /dev/null --- www/py-httpbin/patches/patch-httpbin_core_py +++ /dev/null @@ -1,37 +0,0 @@ -BaseResponse -> Response as of werkzeug 2.0 - -see: https://github.com/postmanlabs/httpbin/pull/674 - -Index: httpbin/core.py ---- httpbin/core.py.orig -+++ httpbin/core.py -@@ -19,9 +19,8 @@ from flask import Flask, Response, request, render_tem - from six.moves import range as xrange - from werkzeug.datastructures import WWWAuthenticate, MultiDict - from werkzeug.http import http_date --from werkzeug.wrappers import BaseResponse -+from werkzeug.wrappers import Response as WzResponse - from werkzeug.http import parse_authorization_header --from raven.contrib.flask import Sentry - - from . import filters - from .helpers import get_headers, status_code, get_dict, get_request_range, check_basic_auth, check_digest_auth, \ -@@ -48,17 +47,13 @@ def jsonify(*args, **kwargs): - return response - - # Prevent WSGI from correcting the casing of the Location header --BaseResponse.autocorrect_location_header = False -+WzResponse.autocorrect_location_header = False - - # Find the correct template folder when running from a different location - tmpl_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'templates') - - app = Flask(__name__, template_folder=tmpl_dir) - app.debug = bool(os.environ.get('DEBUG')) -- --# Send app errors to Sentry. --if 'SENTRY_DSN' in os.environ: -- sentry = Sentry(app, dsn=os.environ['SENTRY_DSN']) - - # Set up Bugsnag exception tracking, if desired. To use Bugsnag, install the - # Bugsnag Python client with the command "pip install bugsnag", and set the blob - /dev/null blob + 2029504b0471f8311a49e7ccbb3095055a69db9c (mode 644) --- /dev/null +++ www/py-httpbin/patches/patch-httpbin_filters_py @@ -0,0 +1,15 @@ +Index: httpbin/filters.py +--- httpbin/filters.py.orig ++++ httpbin/filters.py +@@ -10,7 +10,10 @@ This module provides response filter decorators. + import gzip as gzip2 + import zlib + +-import brotlicffi as _brotli ++try: ++ import brotlicffi as _brotli ++except ImportError: ++ import brotli as _brotli + + from six import BytesIO + from decimal import Decimal blob - 78aa0169423053694a2d608623fac990cb694218 blob + fa78a699456f7bfea0d932fd5268b2cfdf48c484 --- www/py-httpbin/pkg/PLIST +++ www/py-httpbin/pkg/PLIST @@ -7,6 +7,7 @@ lib/python${MODPY_VERSION}/site-packages/httpbin-${MOD lib/python${MODPY_VERSION}/site-packages/httpbin-${MODPY_EGG_VERSION}.dist-info/RECORD lib/python${MODPY_VERSION}/site-packages/httpbin-${MODPY_EGG_VERSION}.dist-info/WHEEL lib/python${MODPY_VERSION}/site-packages/httpbin-${MODPY_EGG_VERSION}.dist-info/top_level.txt +lib/python${MODPY_VERSION}/site-packages/httpbin/VERSION lib/python${MODPY_VERSION}/site-packages/httpbin/__init__.py ${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/httpbin/${MODPY_PYCACHE}/ lib/python${MODPY_VERSION}/site-packages/httpbin/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION} @@ -24,9 +25,14 @@ lib/python${MODPY_VERSION}/site-packages/httpbin/${MOD lib/python${MODPY_VERSION}/site-packages/httpbin/core.py lib/python${MODPY_VERSION}/site-packages/httpbin/filters.py lib/python${MODPY_VERSION}/site-packages/httpbin/helpers.py +lib/python${MODPY_VERSION}/site-packages/httpbin/static/ +lib/python${MODPY_VERSION}/site-packages/httpbin/static/favicon.ico lib/python${MODPY_VERSION}/site-packages/httpbin/structures.py lib/python${MODPY_VERSION}/site-packages/httpbin/templates/ lib/python${MODPY_VERSION}/site-packages/httpbin/templates/UTF-8-demo.txt +lib/python${MODPY_VERSION}/site-packages/httpbin/templates/flasgger/ +lib/python${MODPY_VERSION}/site-packages/httpbin/templates/flasgger/index.html +lib/python${MODPY_VERSION}/site-packages/httpbin/templates/footer.html lib/python${MODPY_VERSION}/site-packages/httpbin/templates/forms-post.html lib/python${MODPY_VERSION}/site-packages/httpbin/templates/httpbin.1.html lib/python${MODPY_VERSION}/site-packages/httpbin/templates/images/ @@ -39,3 +45,11 @@ lib/python${MODPY_VERSION}/site-packages/httpbin/templ lib/python${MODPY_VERSION}/site-packages/httpbin/templates/sample.xml lib/python${MODPY_VERSION}/site-packages/httpbin/templates/trackingscripts.html lib/python${MODPY_VERSION}/site-packages/httpbin/utils.py +lib/python${MODPY_VERSION}/site-packages/tests/ +lib/python${MODPY_VERSION}/site-packages/tests/__init__.py +${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/tests/${MODPY_PYCACHE}/ +lib/python${MODPY_VERSION}/site-packages/tests/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION} +lib/python${MODPY_VERSION}/site-packages/tests/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/tests/${MODPY_PYCACHE}test_httpbin.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION} +lib/python${MODPY_VERSION}/site-packages/tests/${MODPY_PYCACHE}test_httpbin.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/tests/test_httpbin.py