<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/aaa80161d8d1368c8faf451db85c198afb6939f4">https://github.com/macports/macports-ports/commit/aaa80161d8d1368c8faf451db85c198afb6939f4</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 aaa8016 py-netaddr: add missing dependency
</span>aaa8016 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit aaa80161d8d1368c8faf451db85c198afb6939f4
</span>Author: reneeotten <reneeotten@users.noreply.github.com>
AuthorDate: Tue Jul 24 09:34:35 2018 -0400
<span style='display:block; white-space:pre;color:#404040;'> py-netaddr: add missing dependency
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - enable tests
</span><span style='display:block; white-space:pre;color:#404040;'> - add size to checksums
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/56849
</span>---
python/py-netaddr/Portfile | 16 +++++++--
.../files/patch-test_ieee_parsers.py.diff | 38 ++++++++++++++++++++++
2 files changed, 52 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-netaddr/Portfile b/python/py-netaddr/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 11e5856..a687a25 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-netaddr/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-netaddr/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,7 +5,6 @@ PortGroup python 1.0
</span>
name py-netaddr
version 0.7.19
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span> categories-append devel
platforms darwin
license BSD MIT
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -24,8 +23,21 @@ master_sites pypi:[string index ${python.rootname} 0]/${python.rootname}
</span> distname ${python.rootname}-${version}
checksums rmd160 726d351f5c2a2e13446322c9ffd169215deb2601 \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 38aeec7cdd035081d3a4c306394b19d677623bf76fa0913f6695127c7753aefd
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 38aeec7cdd035081d3a4c306394b19d677623bf76fa0913f6695127c7753aefd \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1622835
</span>
if {${name} ne ${subport}} {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-setuptools
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_test-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-pytest
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # patch for tests from commit 2ab73f1; remove at next update
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles patch-test_ieee_parsers.py.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.cmd py.test-${python.branch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.target
</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-netaddr/files/patch-test_ieee_parsers.py.diff b/python/py-netaddr/files/patch-test_ieee_parsers.py.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..5ed7673
</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-netaddr/files/patch-test_ieee_parsers.py.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,38 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- netaddr/tests/eui/test_ieee_parsers.py.orig 2018-07-24 09:41:13.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ netaddr/tests/eui/test_ieee_parsers.py 2018-07-24 09:42:08.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -12,7 +12,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ def test_oui_parser_py2():
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from cStringIO import StringIO
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ outfile = StringIO()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- with open(os.path.join(SAMPLE_DIR, 'sample_oui.txt')) as infile:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ with open(os.path.join(SAMPLE_DIR, 'sample_oui.txt'), 'rb') as infile:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ iab_parser = OUIIndexParser(infile)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ iab_parser.attach(FileIndexer(outfile))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ iab_parser.parse()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -23,7 +23,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ def test_iab_parser_py2():
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from cStringIO import StringIO
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ outfile = StringIO()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- with open(os.path.join(SAMPLE_DIR, 'sample_iab.txt')) as infile:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ with open(os.path.join(SAMPLE_DIR, 'sample_iab.txt'), 'rb') as infile:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ iab_parser = IABIndexParser(infile)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ iab_parser.attach(FileIndexer(outfile))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ iab_parser.parse()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -34,7 +34,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ def test_oui_parser_py3():
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from io import StringIO
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ outfile = StringIO()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- with open(os.path.join(SAMPLE_DIR, 'sample_oui.txt')) as infile:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ with open(os.path.join(SAMPLE_DIR, 'sample_oui.txt'), 'rb') as infile:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ iab_parser = OUIIndexParser(infile)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ iab_parser.attach(FileIndexer(outfile))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ iab_parser.parse()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -45,7 +45,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ def test_iab_parser_py3():
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from io import StringIO
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ outfile = StringIO()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- with open(os.path.join(SAMPLE_DIR, 'sample_iab.txt')) as infile:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ with open(os.path.join(SAMPLE_DIR, 'sample_iab.txt'), 'rb') as infile:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ iab_parser = IABIndexParser(infile)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ iab_parser.attach(FileIndexer(outfile))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ iab_parser.parse()
</span></pre><pre style='margin:0'>
</pre>