View | Details | Raw Unified | Return to bug 251847 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (+31 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	httpbin
4
PORTVERSION=	0.7.0
5
CATEGORIES=	devel python
6
MASTER_SITES=	CHEESESHOP
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
9
MAINTAINER=	contact@evilham.com
10
COMMENT=	HTTP Request & Response Service
11
12
LICENSE=	ISCL
13
LICENSE_FILE=	${WRKSRC}/LICENSE
14
15
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}blinker>=1.1:devel/py-blinker@${PY_FLAVOR} \
16
		${PYTHON_PKGNAMEPREFIX}brotlipy>=0:archivers/py-brotlipy@${PY_FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}decorator>=0:devel/py-decorator@${PY_FLAVOR} \
18
		${PYTHON_PKGNAMEPREFIX}markupsafe>=0:textproc/py-markupsafe@${PY_FLAVOR} \
19
		${PYTHON_PKGNAMEPREFIX}Flask>=0:www/py-flask@${PY_FLAVOR} \
20
		${PYTHON_PKGNAMEPREFIX}itsdangerous>=0:security/py-itsdangerous@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}raven>=0:devel/py-raven@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}werkzeug>=0.14.1:devel/py-werkzeug@${PY_FLAVOR} \
23
		${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR}
24
25
USES=		python
26
USE_PYTHON=	autoplist concurrent distutils
27
28
do-test:
29
	@cd ${WRKSRC} && ${PYTHON_CMD} test_httpbin.py
30
31
.include <bsd.port.mk>
(-)distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1607953372
2
SHA256 (httpbin-0.7.0.tar.gz) = cbb37790c91575f4f15757f42ad41d9f729eb227d5edbe89e4ec175486db8dfa
3
SIZE (httpbin-0.7.0.tar.gz) = 92613
(-)files/patch-test__httpbin.py (+24 lines)
Line 0 Link Here
1
--- test_httpbin.py.orig	2018-05-08 11:41:03 UTC
2
+++ test_httpbin.py
3
@@ -144,7 +144,9 @@ class HttpbinTestCase(unittest.TestCase):
4
         data = json.loads(response.data.decode('utf-8'))
5
         self.assertEqual(data['args'], {})
6
         self.assertEqual(data['headers']['Host'], 'localhost')
7
-        self.assertEqual(data['headers']['Content-Length'], '0')
8
+        # Newest Werkzeug versions omit Content-Length if '0'; see
9
+        # https://github.com/postmanlabs/httpbin/pull/555/files
10
+        self.assertEqual(data['headers'].get('Content-Length', '0'), '0')
11
         self.assertEqual(data['headers']['User-Agent'], 'test')
12
         # self.assertEqual(data['origin'], None)
13
         self.assertEqual(data['url'], 'http://localhost/get')
14
@@ -158,7 +160,9 @@ class HttpbinTestCase(unittest.TestCase):
15
         data = json.loads(response.data.decode('utf-8'))
16
         self.assertEqual(data['args'], {})
17
         self.assertEqual(data['headers']['Host'], 'localhost')
18
-        self.assertEqual(data['headers']['Content-Length'], '0')
19
+        # Newest Werkzeug versions omit Content-Length if '0'; see
20
+        # https://github.com/postmanlabs/httpbin/pull/555/files
21
+        self.assertEqual(data['headers'].get('Content-Length', '0'), '0')
22
         self.assertEqual(data['url'], 'http://localhost/anything/foo/bar')
23
         self.assertEqual(data['method'], 'GET')
24
         self.assertTrue(response.data.endswith(b'\n'))
(-)pkg-descr (+3 lines)
Line 0 Link Here
1
A simple HTTP Request & Response Service.
2
3
WWW: https://httpbin.org/

Return to bug 251847