FreeBSD Bugzilla – Attachment 221001 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]
py-httpbin_0.7.0
httpbin_0.7.0.diff (text/plain), 5.28 KB, created by
Evilham
on 2020-12-27 14:31:20 UTC
(
hide
)
Description:
py-httpbin_0.7.0
Filename:
MIME Type:
Creator:
Evilham
Created:
2020-12-27 14:31:20 UTC
Size:
5.28 KB
patch
obsolete
>Index: www/py-httpbin/Makefile >=================================================================== >--- www/py-httpbin/Makefile (nonexistent) >+++ www/py-httpbin/Makefile (working copy) >@@ -0,0 +1,31 @@ >+# $FreeBSD$ >+ >+PORTNAME= httpbin >+PORTVERSION= 0.7.0 >+CATEGORIES= www python >+MASTER_SITES= CHEESESHOP >+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >+ >+MAINTAINER= contact@evilham.com >+COMMENT= HTTP Request & Response Service >+ >+LICENSE= ISCL >+LICENSE_FILE= ${WRKSRC}/LICENSE >+ >+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}blinker>=1.1:devel/py-blinker@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}brotlipy>=0:archivers/py-brotlipy@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}decorator>=0:devel/py-decorator@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}markupsafe>=0:textproc/py-markupsafe@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}Flask>=0:www/py-flask@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}itsdangerous>=0:security/py-itsdangerous@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}raven>=0:devel/py-raven@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}werkzeug>=0.14.1:devel/py-werkzeug@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR} >+ >+USES= python >+USE_PYTHON= autoplist concurrent distutils >+ >+do-test: >+ @cd ${WRKSRC} && ${PYTHON_CMD} test_httpbin.py >+ >+.include <bsd.port.mk> > >Property changes on: www/py-httpbin/Makefile >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+FreeBSD=%H >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: www/py-httpbin/distinfo >=================================================================== >--- www/py-httpbin/distinfo (nonexistent) >+++ www/py-httpbin/distinfo (working copy) >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1607953372 >+SHA256 (httpbin-0.7.0.tar.gz) = cbb37790c91575f4f15757f42ad41d9f729eb227d5edbe89e4ec175486db8dfa >+SIZE (httpbin-0.7.0.tar.gz) = 92613 > >Property changes on: www/py-httpbin/distinfo >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: www/py-httpbin/files/patch-test__httpbin.py >=================================================================== >--- www/py-httpbin/files/patch-test__httpbin.py (nonexistent) >+++ www/py-httpbin/files/patch-test__httpbin.py (working copy) >@@ -0,0 +1,24 @@ >+--- test_httpbin.py.orig 2018-05-08 11:41:03 UTC >++++ test_httpbin.py >+@@ -144,7 +144,9 @@ 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') >++ # Newest Werkzeug versions omit Content-Length if '0'; see >++ # https://github.com/postmanlabs/httpbin/pull/555/files >++ self.assertEqual(data['headers'].get('Content-Length', '0'), '0') >+ self.assertEqual(data['headers']['User-Agent'], 'test') >+ # self.assertEqual(data['origin'], None) >+ self.assertEqual(data['url'], 'http://localhost/get') >+@@ -158,7 +160,9 @@ 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') >++ # Newest Werkzeug versions omit Content-Length if '0'; see >++ # https://github.com/postmanlabs/httpbin/pull/555/files >++ self.assertEqual(data['headers'].get('Content-Length', '0'), '0') >+ self.assertEqual(data['url'], 'http://localhost/anything/foo/bar') >+ self.assertEqual(data['method'], 'GET') >+ self.assertTrue(response.data.endswith(b'\n')) > >Property changes on: www/py-httpbin/files/patch-test__httpbin.py >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: www/py-httpbin/pkg-descr >=================================================================== >--- www/py-httpbin/pkg-descr (nonexistent) >+++ www/py-httpbin/pkg-descr (working copy) >@@ -0,0 +1,3 @@ >+A simple HTTP Request & Response Service. >+ >+WWW: https://github.com/postmanlabs/httpbin > >Property changes on: www/py-httpbin/pkg-descr >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: www/Makefile >=================================================================== >--- www/Makefile (revision 559309) >+++ www/Makefile (working copy) >@@ -1651,6 +1651,7 @@ > SUBDIR += py-html5-parser > SUBDIR += py-html5lib > SUBDIR += py-httmock >+ SUBDIR += py-httpbin > SUBDIR += py-httpcore > SUBDIR += py-httpie > SUBDIR += py-httplib2
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
Flags:
contact
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 251847
:
220556
|
220978
|
221001
|
221002