<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/0e07492b31a70c3e161585bf4c12e45b438bcac7">https://github.com/macports/macports-ports/commit/0e07492b31a70c3e161585bf4c12e45b438bcac7</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 0e07492 py-txgithub: Fix python3 problems
</span>0e07492 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 0e07492b31a70c3e161585bf4c12e45b438bcac7
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Wed Jul 10 19:40:16 2019 -0500
<span style='display:block; white-space:pre;color:#404040;'> py-txgithub: Fix python3 problems
</span>---
python/py-txgithub/Portfile | 3 +++
python/py-txgithub/files/python3.patch | 36 ++++++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-txgithub/Portfile b/python/py-txgithub/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 2693660..0e78d63 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-txgithub/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-txgithub/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,6 +5,7 @@ PortGroup github 1.0
</span> PortGroup python 1.0
github.setup tomprince txgithub 15.0.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> name py-txgithub
license MIT
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -26,5 +27,7 @@ if {${name} ne ${subport}} {
</span> depends_lib-append \
port:py${python.version}-twisted
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles python3.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> livecheck.type none
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-txgithub/files/python3.patch b/python/py-txgithub/files/python3.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..cab1ed2
</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-txgithub/files/python3.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,36 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix python 3 problems.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/tomprince/txgithub/issues/13#issuecomment-333365646
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- txgithub/scripts/create_token.py.orig 2017-09-30 20:46:53.750550950 +0000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ txgithub/scripts/create_token.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -34,7 +34,7 @@ def run(reactor, *argv):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ config = Options()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ try:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ config.parseOptions(argv[1:]) # When given no argument, parses sys.argv[1:]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- except usage.UsageError, errortext:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ except usage.UsageError as errortext:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ print('%s: %s' % (argv[0], errortext))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ print('%s: Try --help for usage details.' % (argv[0]))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sys.exit(1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- txgithub/scripts/gist.py.orig 2017-09-30 20:47:17.806190554 +0000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ txgithub/scripts/gist.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -30,16 +30,16 @@ def postGist(reactor, token, files):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ gistFiles['gistfile1'] = {"content": sys.stdin.read()}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ response = yield api.gists.create(files=gistFiles)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- print response['html_url']
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ print(response['html_url'])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ def run(reactor, *argv):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ config = Options()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ try:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ config.parseOptions(argv[1:]) # When given no argument, parses sys.argv[1:]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- except usage.UsageError, errortext:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- print '%s: %s' % (argv[0], errortext)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- print '%s: Try --help for usage details.' % (argv[0])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ except usage.UsageError as errortext:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ print('%s: %s' % (argv[0], errortext))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ print('%s: Try --help for usage details.' % (argv[0]))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sys.exit(1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return postGist(reactor, **config)
</span></pre><pre style='margin:0'>
</pre>