FreeBSD Bugzilla – Attachment 220978 Details for
Bug 251847
[NEW PORT] www/py-httpbin: A simple HTTP Request & Response Service
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
v2
py-httpbin-0.7.0.patch (text/plain), 3.41 KB, created by
Charlie Li
on 2020-12-27 06:26:41 UTC
(
hide
)
Description:
v2
Filename:
MIME Type:
Creator:
Charlie Li
Created:
2020-12-27 06:26:41 UTC
Size:
3.41 KB
patch
obsolete
>diff -r 55332b321d5f www/py-httpbin/Makefile >--- /dev/null Thu Jan 01 00:00:00 1970 +0000 >+++ www/py-httpbin/Makefile Sun Dec 27 01:20:42 2020 -0500 >@@ -0,0 +1,34 @@ >+# $FreeBSD$ >+ >+PORTNAME= httpbin >+DISTVERSION= 0.7.0 >+CATEGORIES= www python >+MASTER_SITES= CHEESESHOP >+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >+ >+MAINTAINER= python@FreeBSD.org >+COMMENT= HTTP request and response service >+ >+LICENSE= ISCL >+LICENSE_FILE= ${WRKSRC}/LICENSE >+ >+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Flask>0:www/py-flask@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}markupsafe>0:textproc/py-markupsafe@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}decorator>0:devel/py-decorator@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}itsdangerous>0:security/py-itsdangerous@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}brotlipy>0:archivers/py-brotlipy@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}raven>0:devel/py-raven@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}werkzeug>=0.15.1:www/py-werkzeug@${PY_FLAVOR} >+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}blinker>0:devel/py-blinker@${PY_FLAVOR} >+ >+USES= python shebangfix >+USE_PYTHON= autoplist distutils concurrent >+SHEBANG_FILES= test_httpbin.py >+ >+NO_ARCH= yes >+ >+do-test: >+ @cd ${WRKSRC} && ${PYTHON_CMD} test_httpbin.py >+ >+.include <bsd.port.mk> >diff -r 55332b321d5f www/py-httpbin/distinfo >--- /dev/null Thu Jan 01 00:00:00 1970 +0000 >+++ www/py-httpbin/distinfo Sun Dec 27 01:20:42 2020 -0500 >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1609037933 >+SHA256 (httpbin-0.7.0.tar.gz) = cbb37790c91575f4f15757f42ad41d9f729eb227d5edbe89e4ec175486db8dfa >+SIZE (httpbin-0.7.0.tar.gz) = 92613 >diff -r 55332b321d5f www/py-httpbin/files/patch-issue555 >--- /dev/null Thu Jan 01 00:00:00 1970 +0000 >+++ www/py-httpbin/files/patch-issue555 Sun Dec 27 01:20:42 2020 -0500 >@@ -0,0 +1,28 @@ >+--- setup.py.orig 2018-05-08 11:58:37 UTC >++++ setup.py >+@@ -35,6 +35,6 @@ setup( >+ include_package_data = True, # include files listed in MANIFEST.in >+ install_requires=[ >+ 'Flask', 'MarkupSafe', 'decorator', 'itsdangerous', 'six', 'brotlipy', >+- 'raven[flask]', 'werkzeug>=0.14.1' >++ 'raven[flask]', 'werkzeug>=0.15.1' >+ ], >+ ) >+--- test_httpbin.py.orig 2018-05-08 11:41:03 UTC >++++ test_httpbin.py >+@@ -144,7 +144,6 @@ class HttpbinTestCase(unittest.TestCase): >+ data = json.loads(response.data.decode('utf-8')) >+ self.assertEqual(data['args'], {}) >+ self.assertEqual(data['headers']['Host'], 'localhost') >+- self.assertEqual(data['headers']['Content-Length'], '0') >+ self.assertEqual(data['headers']['User-Agent'], 'test') >+ # self.assertEqual(data['origin'], None) >+ self.assertEqual(data['url'], 'http://localhost/get') >+@@ -158,7 +157,6 @@ class HttpbinTestCase(unittest.TestCase): >+ data = json.loads(response.data.decode('utf-8')) >+ self.assertEqual(data['args'], {}) >+ self.assertEqual(data['headers']['Host'], 'localhost') >+- self.assertEqual(data['headers']['Content-Length'], '0') >+ self.assertEqual(data['url'], 'http://localhost/anything/foo/bar') >+ self.assertEqual(data['method'], 'GET') >+ self.assertTrue(response.data.endswith(b'\n')) >diff -r 55332b321d5f www/py-httpbin/pkg-descr >--- /dev/null Thu Jan 01 00:00:00 1970 +0000 >+++ www/py-httpbin/pkg-descr Sun Dec 27 01:20:42 2020 -0500 >@@ -0,0 +1,3 @@ >+A HTTP Request & Response Service, written in Python + Flask. >+ >+WWW: https://github.com/postmanlabs/httpbin
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 251847
:
220556
| 220978 |
221001
|
221002