<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/748b0588efea67502520e64d0d75528c05d04a5e">https://github.com/macports/macports-ports/commit/748b0588efea67502520e64d0d75528c05d04a5e</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 748b0588efea67502520e64d0d75528c05d04a5e
</span>Author: Renee Otten <reneeotten@macports.org>
AuthorDate: Sun Dec 26 15:53:34 2021 -0500
<span style='display:block; white-space:pre;color:#404040;'> py-nose: fix build with current setuptools
</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/63746
</span>---
python/py-nose/Portfile | 9 ++++++++-
python/py-nose/files/no_2to3.diff | 12 ++++++++++++
2 files changed, 20 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-nose/Portfile b/python/py-nose/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 773aba65041..af513d4cda2 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-nose/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-nose/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -20,7 +20,6 @@ long_description \
</span> behavior of py.test as much as is reasonably \
possible without resorting to magic.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> supported_archs noarch
homepage https://nose.readthedocs.io/
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -50,6 +49,14 @@ if {${name} ne ${subport}} {
</span> file mkdir ${worksrcpath}/functional_tests/support/empty
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${python.version} >= 36} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append no_2to3.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath} "${prefix}/bin/2to3-${python.branch} --write --nobackups nose"
</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;'>+
</span> post-destroot {
ln -s ${python.prefix}/bin/nosetests-${python.branch} ${destroot}${prefix}/bin/
ln -s ${python.prefix}/share/man/man1/nosetests.1 ${destroot}${prefix}/share/man/man1/nosetests${python.branch}.1
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-nose/files/no_2to3.diff b/python/py-nose/files/no_2to3.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..a9c31100506
</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-nose/files/no_2to3.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- setup.py.orig 2021-12-26 15:52:06.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ setup.py 2021-12-26 15:52:19.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -13,8 +13,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from distribute_setup import use_setuptools
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use_setuptools()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- extra = {'use_2to3': True,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- 'test_dirs': test_dirs,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ extra = {'test_dirs': test_dirs,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 'test_build_dir': 'build/tests',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 'pyversion_patching': True,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span></pre><pre style='margin:0'>
</pre>