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

Collapse All | Expand All

(-)www/py-httpbin/Makefile (+34 lines)
Added Link Here
1
# $FreeBSD$
2
3
PORTNAME=	httpbin
4
DISTVERSION=	0.7.0
5
CATEGORIES=	www python
6
MASTER_SITES=	CHEESESHOP
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
9
MAINTAINER=	python@FreeBSD.org
10
COMMENT=	HTTP request and response service
11
12
LICENSE=	ISCL
13
LICENSE_FILE=	${WRKSRC}/LICENSE
14
15
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}Flask>0:www/py-flask@${PY_FLAVOR} \
16
		${PYTHON_PKGNAMEPREFIX}markupsafe>0:textproc/py-markupsafe@${PY_FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}decorator>0:devel/py-decorator@${PY_FLAVOR} \
18
		${PYTHON_PKGNAMEPREFIX}itsdangerous>0:security/py-itsdangerous@${PY_FLAVOR} \
19
		${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \
20
		${PYTHON_PKGNAMEPREFIX}brotlipy>0:archivers/py-brotlipy@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}raven>0:devel/py-raven@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}werkzeug>=0.15.1:www/py-werkzeug@${PY_FLAVOR}
23
TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}blinker>0:devel/py-blinker@${PY_FLAVOR}
24
25
USES=	python shebangfix
26
USE_PYTHON=	autoplist distutils concurrent
27
SHEBANG_FILES=	test_httpbin.py
28
29
NO_ARCH=	yes
30
31
do-test:
32
	@cd ${WRKSRC} && ${PYTHON_CMD} test_httpbin.py
33
34
.include <bsd.port.mk>
(-)www/py-httpbin/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1609037933
2
SHA256 (httpbin-0.7.0.tar.gz) = cbb37790c91575f4f15757f42ad41d9f729eb227d5edbe89e4ec175486db8dfa
3
SIZE (httpbin-0.7.0.tar.gz) = 92613
(-)www/py-httpbin/files/patch-issue555 (+28 lines)
Added Link Here
1
--- setup.py.orig	2018-05-08 11:58:37 UTC
2
+++ setup.py
3
@@ -35,6 +35,6 @@ setup(
4
     include_package_data = True, # include files listed in MANIFEST.in
5
     install_requires=[
6
         'Flask', 'MarkupSafe', 'decorator', 'itsdangerous', 'six', 'brotlipy',
7
-        'raven[flask]', 'werkzeug>=0.14.1'
8
+        'raven[flask]', 'werkzeug>=0.15.1'
9
     ],
10
 )
11
--- test_httpbin.py.orig	2018-05-08 11:41:03 UTC
12
+++ test_httpbin.py
13
@@ -144,7 +144,6 @@ class HttpbinTestCase(unittest.TestCase):
14
         data = json.loads(response.data.decode('utf-8'))
15
         self.assertEqual(data['args'], {})
16
         self.assertEqual(data['headers']['Host'], 'localhost')
17
-        self.assertEqual(data['headers']['Content-Length'], '0')
18
         self.assertEqual(data['headers']['User-Agent'], 'test')
19
         # self.assertEqual(data['origin'], None)
20
         self.assertEqual(data['url'], 'http://localhost/get')
21
@@ -158,7 +157,6 @@ class HttpbinTestCase(unittest.TestCase):
22
         data = json.loads(response.data.decode('utf-8'))
23
         self.assertEqual(data['args'], {})
24
         self.assertEqual(data['headers']['Host'], 'localhost')
25
-        self.assertEqual(data['headers']['Content-Length'], '0')
26
         self.assertEqual(data['url'], 'http://localhost/anything/foo/bar')
27
         self.assertEqual(data['method'], 'GET')
28
         self.assertTrue(response.data.endswith(b'\n'))
(-)www/py-httpbin/pkg-descr (+3 lines)
Added Link Here
1
A HTTP Request & Response Service, written in Python + Flask.
2
3
WWW: https://github.com/postmanlabs/httpbin

Return to bug 251847