update to py3-httpbin-0.7.0
This commit is contained in:
parent
27ea7ea9fd
commit
0b759d600f
|
@ -1,13 +1,12 @@
|
|||
COMMENT = HTTP request and response service
|
||||
|
||||
MODPY_EGG_VERSION = 0.5.0
|
||||
MODPY_EGG_VERSION = 0.7.0
|
||||
DISTNAME = httpbin-${MODPY_EGG_VERSION}
|
||||
PKGNAME = py-${DISTNAME}
|
||||
REVISION = 7
|
||||
|
||||
CATEGORIES = www
|
||||
|
||||
HOMEPAGE = https://github.com/Runscope/httpbin
|
||||
HOMEPAGE = https://github.com/postmanlabs/httpbin
|
||||
|
||||
# MIT
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
@ -16,16 +15,20 @@ MODULES = lang/python
|
|||
|
||||
MODPY_PI = Yes
|
||||
MODPY_PYBUILD = setuptools
|
||||
#MODPY_PYTEST_ARGS = test_httpbin.py
|
||||
|
||||
RUN_DEPENDS = devel/py-decorator${MODPY_FLAVOR} \
|
||||
devel/py-six${MODPY_FLAVOR} \
|
||||
RUN_DEPENDS = www/py-flask${MODPY_FLAVOR} \
|
||||
textproc/py-MarkupSafe${MODPY_FLAVOR} \
|
||||
www/py-flask${MODPY_FLAVOR} \
|
||||
www/py-itsdangerous${MODPY_FLAVOR}
|
||||
devel/py-decorator${MODPY_FLAVOR} \
|
||||
www/py-itsdangerous${MODPY_FLAVOR} \
|
||||
devel/py-six${MODPY_FLAVOR} \
|
||||
archivers/py-brotli${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,
|
||||
# so that is patched away for now
|
||||
|
||||
FLAVORS = python3
|
||||
FLAVOR = python3
|
||||
|
||||
NO_TEST = Yes
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
SHA256 (httpbin-0.5.0.tar.gz) = efvF0n5BlOqQiw+hjgmlnZXSh8kWZ6ppvNAQNC0VibU=
|
||||
SIZE (httpbin-0.5.0.tar.gz) = 88698
|
||||
SHA256 (httpbin-0.7.0.tar.gz) = y7N3kMkVdfTxV1f0KtQdn3KesifV7b6J5OwXVIbbjfo=
|
||||
SIZE (httpbin-0.7.0.tar.gz) = 92613
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
Index: httpbin/core.py
|
||||
--- httpbin/core.py.orig
|
||||
+++ httpbin/core.py
|
||||
@@ -21,7 +21,6 @@ from werkzeug.datastructures import WWWAuthenticate, M
|
||||
from werkzeug.http import http_date
|
||||
from werkzeug.wrappers import BaseResponse
|
||||
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, \
|
||||
@@ -55,10 +54,6 @@ tmpl_dir = os.path.join(os.path.dirname(os.path.abspat
|
||||
|
||||
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
|
|
@ -1,14 +0,0 @@
|
|||
--- setup.py.orig Thu Aug 11 05:49:19 2016
|
||||
+++ setup.py Thu Aug 18 10:14:50 2016
|
||||
@@ -1,8 +1,9 @@
|
||||
from setuptools import setup, find_packages
|
||||
import os
|
||||
+import codecs
|
||||
|
||||
-long_description = open(
|
||||
- os.path.join(os.path.dirname(__file__), 'README.rst')).read()
|
||||
+long_description = codecs.open(
|
||||
+ os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8').read()
|
||||
|
||||
setup(
|
||||
name="httpbin",
|
Loading…
Reference in New Issue