<pre style='margin:0'>
Chih-Hsuan Yen (yan12125) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/60f5203e8d516b558c23fd277f29ab222172c5c9">https://github.com/macports/macports-ports/commit/60f5203e8d516b558c23fd277f29ab222172c5c9</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 60f5203e8d516b558c23fd277f29ab222172c5c9
</span>Author: Chih-Hsuan Yen <yan12125@macports.org>
AuthorDate: Sat Aug 11 19:20:52 2018 +0800
<span style='display:block; white-space:pre;color:#404040;'> py-wsproto: add a patch for compatibility with h11 0.8.x
</span>---
python/py-wsproto/Portfile | 3 +++
python/py-wsproto/files/pr54.patch | 32 ++++++++++++++++++++++++++++++++
2 files changed, 35 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-wsproto/Portfile b/python/py-wsproto/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index d1135e1..3aae2fe 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-wsproto/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-wsproto/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,6 +5,7 @@ PortGroup python 1.0
</span>
name py-wsproto
version 0.11.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
categories-append net www
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -28,6 +29,8 @@ checksums md5 d75d9fe117cad031f3429a4f916d065c \
</span> python.versions 27 36 37
if {${name} ne ${subport}} {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles pr54.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_build-append port:py${python.version}-setuptools
depends_lib-append port:py${python.version}-h11
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-wsproto/files/pr54.patch b/python/py-wsproto/files/pr54.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..b3496fe
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-wsproto/files/pr54.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,32 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/setup.py b/setup.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index e35127a..da288fd 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- setup.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ setup.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -47,7 +47,7 @@ setup(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 'Programming Language :: Python :: Implementation :: PyPy',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install_requires=[
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- 'h11 ~= 0.7.0', # means: 0.7.x where x >= 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ 'h11 ~= 0.8.1', # means: 0.8.x where x >= 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extras_require={
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ':python_version == "2.7" or python_version == "3.3"':
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/wsproto/connection.py b/wsproto/connection.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 44949cb..777f9c8 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- wsproto/connection.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ wsproto/connection.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -417,8 +417,12 @@ class WSConnection(object):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # py34 annoyance: doesn't support bytestring formatting
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ params = params.decode("ascii")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- extensions.append(('%s; %s' % (name, params))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- .encode("ascii"))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if params == '':
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ extensions.append(('%s' % (name))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ .encode("ascii"))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ else:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ extensions.append(('%s; %s' % (name, params))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ .encode("ascii"))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return b', '.join(extensions)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return None
</span></pre><pre style='margin:0'>
</pre>