<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/cc70907afe71808932ef3adb1c95d67bdeec4718">https://github.com/macports/macports-ports/commit/cc70907afe71808932ef3adb1c95d67bdeec4718</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit cc70907afe71808932ef3adb1c95d67bdeec4718
</span>Author: Renee Otten <reneeotten@macports.org>
AuthorDate: Fri Mar 11 09:52:32 2022 -0500
<span style='display:block; white-space:pre;color:#404040;'> py-isodate: update to 0.6.1, update Python subports
</span>---
python/py-isodate/Portfile | 33 ++++++------------
.../files/patch-avoid-unclosed-file-warning.diff | 23 -------------
.../files/patch-fix-py38-deprecationwarning.diff | 39 ----------------------
3 files changed, 10 insertions(+), 85 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-isodate/Portfile b/python/py-isodate/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 32b22e0e08f..eda2f6df7a0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-isodate/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-isodate/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,13 +3,12 @@
</span> PortSystem 1.0
PortGroup python 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set base_name isodate
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-name py-$base_name
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-version 0.6.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-python.versions 27 35 36 37 38 39 310
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name py-isodate
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 0.6.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span>
<span style='display:block; white-space:pre;background:#e0ffe0;'>+supported_archs noarch
</span> license BSD
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> maintainers {gmail.com:esafak @esafak}
description An ISO 8601 date/time/duration parser and formatter
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -19,14 +18,13 @@ long_description This module implements ISO 8601 date, time and duration \
</span> the standard. If something is not mentioned there, then it \
is treated as non existent, and not as an allowed option.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage https://pypi.python.org/pypi/$base_name
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites pypi:i/$base_name
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://pypi.python.org/pypi/${python.rootname}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 caa3c15705b67d1e8fbcc18536643818affbb306 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 2e364a3d5759479cdb2d37cce6b9376ea504db2ff90252a2e5b7cc89cc9ff2d8 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 28480
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 b1ab88fc360f333f91aaee8ff30c63b695179188 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 48c5881de7e8b0a0d648cb024c8062dc84e7b840ed81e864c7614fd3c127bde9 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 28443
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-distname $base_name-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+python.versions 37 38 39 310
</span>
if {${name} ne ${subport}} {
depends_build-append \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -35,23 +33,12 @@ if {${name} ne ${subport}} {
</span> depends_lib-append \
port:py${python.version}-six
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# silence warnings for py37 py38
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# https://github.com/gweis/isodate/pull/60
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patchfiles patch-avoid-unclosed-file-warning.diff \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-fix-py38-deprecationwarning.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> test.run yes
test.cmd ${python.bin} setup.py test
test.target
post-destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 644 -W ${worksrcpath} CHANGES.txt MANIFEST.in \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0644 -W ${worksrcpath} CHANGES.txt MANIFEST.in \
</span> README.rst TODO.txt ${destroot}${prefix}/share/doc/${subport}
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- livecheck.type none
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-} else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- livecheck.type regex
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- livecheck.url ${homepage}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- livecheck.regex $base_name (\\d+(\\.\\d+)+)
</span> }
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-isodate/files/patch-avoid-unclosed-file-warning.diff b/python/py-isodate/files/patch-avoid-unclosed-file-warning.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index e96fcd86724..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-isodate/files/patch-avoid-unclosed-file-warning.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,23 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From 40358ac82b948ea8377d5ca32b576def31b39a84 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From: Jose Eduardo <jose.eduardo.gd@gmail.com>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Date: Fri, 19 Jul 2019 16:21:56 +0100
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH] Avoid unclosed file warning
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>----
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- setup.py | 3 ++-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 1 file changed, 2 insertions(+), 1 deletion(-)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git a/setup.py b/setup.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index e39446f..9634625 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- setup.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ setup.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -30,7 +30,8 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- def read(*rnames):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ with open(os.path.join(os.path.dirname(__file__), *rnames)) as read_file:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ return read_file.read()
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- setup(name='isodate',
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-isodate/files/patch-fix-py38-deprecationwarning.diff b/python/py-isodate/files/patch-fix-py38-deprecationwarning.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index c70a5de4175..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-isodate/files/patch-fix-py38-deprecationwarning.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,39 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From fc0fb3278da5f463ca5b2f0a3acafbbf2869bd7a Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From: Jose Eduardo <jose.eduardo.gd@gmail.com>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Date: Fri, 19 Jul 2019 16:29:43 +0100
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH] Fix Python 3.8 DeprecationWarning
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Ref: https://docs.python.org/3.8/whatsnew/3.8.html
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-> Many builtin and extension functions that take integer arguments will
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-> now emit a deprecation warning for Decimals, Fractions and any other
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-> objects that can be converted to integers only with a loss (e.g. that
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-> have the `__int__()` method but do not have the `__index__()` method).
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-> In future version they will be errors. (Contributed by Serhiy
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-> Storchaka in bpo-36048.)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>----
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- src/isodate/duration.py | 4 ++--
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 1 file changed, 2 insertions(+), 2 deletions(-)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git a/src/isodate/duration.py b/src/isodate/duration.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index 6d1848c..d923cee 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- src/isodate/duration.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/isodate/duration.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -180,7 +180,7 @@ def __add__(self, other):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- newday = maxdays
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- else:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- newday = other.day
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- newdt = other.replace(year=newyear, month=newmonth, day=newday)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ newdt = other.replace(year=int(newyear), month=int(newmonth), day=newday)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # does a timedelta + date/datetime
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return self.tdelta + newdt
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- except AttributeError:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -264,7 +264,7 @@ def __rsub__(self, other):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- newday = maxdays
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- else:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- newday = other.day
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- newdt = other.replace(year=newyear, month=newmonth, day=newday)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ newdt = other.replace(year=int(newyear), month=int(newmonth), day=newday)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return newdt - self.tdelta
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- except AttributeError:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # other probably was not compatible with data/datetime
</span></pre><pre style='margin:0'>
</pre>