<pre style='margin:0'>
Vadim-Valdis Yudaev (judaew) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/65e00d19f126765110cf3faaca0520c2702b3e9f">https://github.com/macports/macports-ports/commit/65e00d19f126765110cf3faaca0520c2702b3e9f</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 65e00d19f126765110cf3faaca0520c2702b3e9f
</span>Author: Vadim-Valdis Yudaev <judaew@macports.org>
AuthorDate: Sun Jan 16 04:02:16 2022 +0200
<span style='display:block; white-space:pre;color:#404040;'> py-sure: Update to 2.0.0, add py37-310 subports
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> CHANGES:
</span><span style='display:block; white-space:pre;color:#404040;'> * Update to 2.0.0
</span><span style='display:block; white-space:pre;color:#404040;'> * Add Python 3.7-3.10 subports
</span><span style='display:block; white-space:pre;color:#404040;'> * Add patch for Python 3.10
</span><span style='display:block; white-space:pre;color:#404040;'> * Add test phase
</span>---
python/py-sure/Portfile | 21 +++++++++------------
python/py-sure/files/patch-fix-python310.diff | 11 +++++++++++
2 files changed, 20 insertions(+), 12 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-sure/Portfile b/python/py-sure/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b9319539f05..db2e1b749ef 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-sure/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-sure/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,10 +4,9 @@ PortSystem 1.0
</span> PortGroup python 1.0
name py-sure
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 1.4.11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 2.0.0
</span> revision 0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> supported_archs noarch
license GPL-3+
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -16,31 +15,29 @@ description Utility belt for automated testing in python for python
</span> long_description ${description}
homepage http://github.com/gabrielfalcao/sure
<span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites pypi:[string index ${python.rootname} 0]/${python.rootname}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-distname ${python.rootname}-${version}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums sha256 3c8d5271fb18e2c69e2613af1ad400d8df090f1456081635bd3171847303cdaa \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- rmd160 fb6c37da7c2d005c6874d266fbc8d2edcb21d833 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 45933
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums sha256 34ae88c846046742ef074036bf311dc90ab152b7bc09c342b281cebf676727a2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 5a20615bf48f287c322c9b17f651ffd8ac680a1b \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 46747
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-python.versions 37
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+python.versions 37 38 39 310
</span>
if {${name} ne ${subport}} {
depends_build-append \
port:py${python.version}-setuptools
<span style='display:block; white-space:pre;background:#ffe0e0;'>- post-extract {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "find ${worksrcpath} -type d -print0 | xargs -0 chmod a+rx"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "find ${worksrcpath} -type f -print0 | xargs -0 chmod a+r"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # See https://github.com/gabrielfalcao/sure/issues/169
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles patch-fix-python310.diff
</span>
depends_run-append \
port:py${python.version}-mock \
port:py${python.version}-six
depends_test-append \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-coverage \
</span> port:py${python.version}-mock \
port:py${python.version}-nose \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-rednose \
</span> port:py${python.version}-six
test.run yes
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-sure/files/patch-fix-python310.diff b/python/py-sure/files/patch-fix-python310.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..8a38a31e1ef
</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-sure/files/patch-fix-python310.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- sure/__init__.py.Orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ sure/__init__.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -126,7 +126,7 @@ class CallBack(object):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ err = traceback.format_exc().splitlines()[-1]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ err = err.replace("{0}:".format(exc_klass.__name__), "").strip()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if err.startswith(self.callback_name) and (
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if self.callback_name in err and (
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "takes no arguments (1 given)" in err
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ or "takes 0 positional arguments but 1 was given" in err
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ):
</span></pre><pre style='margin:0'>
</pre>