<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository upt-macports.
</pre>
<p><a href="https://github.com/macports/upt-macports/commit/5c6b0087c1255239cc63b8b820d72281809d60f1">https://github.com/macports/upt-macports/commit/5c6b0087c1255239cc63b8b820d72281809d60f1</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 5c6b0087c1255239cc63b8b820d72281809d60f1
</span>Author: Renee Otten <reneeotten@macports.org>
AuthorDate: Sat Feb 3 14:00:14 2024 -0500
<span style='display:block; white-space:pre;color:#404040;'> python.Portfile: update for 'python.test_framework'
</span>---
upt_macports/templates/python.Portfile | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/upt_macports/templates/python.Portfile b/upt_macports/templates/python.Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 5098bfe..69346b7 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/upt_macports/templates/python.Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/upt_macports/templates/python.Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -44,17 +44,10 @@ if {${name} ne ${subport}} {
</span> {{ depends('test', pkg.upt_pkg.requirements.test) }}
test.run yes
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # most test=suites are run using "pytest", if not then the lineb elow should
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # be modified (e.g., "nosetests-${python.branch}" or "${python.bin} -m unittest"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- test.cmd py.test-${python.branch}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- test.target
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- test.env PYTHONPATH=${worksrcpath}/build/lib
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # if the Python package is not "noarch" (i.e., something gets compiled),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # then line above should be replaced with the following block:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # pre-test {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # test.env PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # most test-suites are run using "pytest" and "python.test_framework" is set by
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # the python PortGroup to that value. If the package uses another framework, then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # the line below should be modified accordingly (e.g., "nosetest" or "unittest")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ python.test_framework
</span> {% else %}
{% endif %}
</pre><pre style='margin:0'>
</pre>