Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-DateTime for openSUSE:Factory checked in at 2023-01-04 20:18:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-DateTime (Old) and /work/SRC/openSUSE:Factory/.python-DateTime.new.1563 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-DateTime" Wed Jan 4 20:18:27 2023 rev:5 rq:1055952 version:4.9 Changes: -------- --- /work/SRC/openSUSE:Factory/python-DateTime/python-DateTime.changes 2022-11-01 13:42:18.699814191 +0100 +++ /work/SRC/openSUSE:Factory/.python-DateTime.new.1563/python-DateTime.changes 2023-01-04 20:18:30.133596680 +0100 @@ -1,0 +2,10 @@ +Wed Jan 4 16:24:44 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 4.9: + * Fix regression in 4.7 on Python 2 when calling ``asdatetime``. + (`#47 <https://github.com/zopefoundation/DateTime/issues/47>`_) + * Fix insidious buildout configuration bug that prevented tests on Python + 2.7 and 3.5, and fix test code that was incompatible with Python 3.5. + * Add support for Python 3.11. + +------------------------------------------------------------------- Old: ---- DateTime-4.7.tar.gz New: ---- DateTime-4.9.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-DateTime.spec ++++++ --- /var/tmp/diff_new_pack.ycRU3G/_old 2023-01-04 20:18:31.097602411 +0100 +++ /var/tmp/diff_new_pack.ycRU3G/_new 2023-01-04 20:18:31.141602673 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-DateTime # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-DateTime -Version: 4.7 +Version: 4.9 Release: 0 Summary: Zope DateTime data type License: ZPL-2.1 ++++++ DateTime-4.7.tar.gz -> DateTime-4.9.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-4.7/CHANGES.rst new/DateTime-4.9/CHANGES.rst --- old/DateTime-4.7/CHANGES.rst 2022-09-14 08:29:54.000000000 +0200 +++ new/DateTime-4.9/CHANGES.rst 2022-12-22 08:11:05.000000000 +0100 @@ -1,6 +1,23 @@ Changelog ========= +4.9 (2022-12-22) +---------------- + +- Fix regression in 4.7 on Python 2 when calling ``asdatetime``. + (`#47 <https://github.com/zopefoundation/DateTime/issues/47>`_) + + +4.8 (2022-12-16) +---------------- + +- Fix insidious buildout configuration bug that prevented tests on Python 2.7 + and 3.5, and fix test code that was incompatible with Python 3.5. + (`#44 <https://github.com/zopefoundation/DateTime/issues/44>`_) + +- Add support for Python 3.11. + + 4.7 (2022-09-14) ---------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-4.7/PKG-INFO new/DateTime-4.9/PKG-INFO --- old/DateTime-4.7/PKG-INFO 2022-09-14 08:29:56.309736000 +0200 +++ new/DateTime-4.9/PKG-INFO 2022-12-22 08:16:04.702712300 +0100 @@ -1,12 +1,11 @@ Metadata-Version: 2.1 Name: DateTime -Version: 4.7 +Version: 4.9 Summary: This package provides a DateTime data type, as known from Zope. Unless you need to communicate with Zope APIs, you're probably better off using Python's built-in datetime module. Home-page: https://github.com/zopefoundation/DateTime Author: Zope Foundation and Contributors Author-email: zope-...@zope.org License: ZPL 2.1 -Platform: UNKNOWN Classifier: Development Status :: 6 - Mature Classifier: Environment :: Web Environment Classifier: Framework :: Zope :: 4 @@ -22,6 +21,7 @@ Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy License-File: LICENSE.txt @@ -842,6 +842,23 @@ Changelog ========= +4.9 (2022-12-22) +---------------- + +- Fix regression in 4.7 on Python 2 when calling ``asdatetime``. + (`#47 <https://github.com/zopefoundation/DateTime/issues/47>`_) + + +4.8 (2022-12-16) +---------------- + +- Fix insidious buildout configuration bug that prevented tests on Python 2.7 + and 3.5, and fix test code that was incompatible with Python 3.5. + (`#44 <https://github.com/zopefoundation/DateTime/issues/44>`_) + +- Add support for Python 3.11. + + 4.7 (2022-09-14) ---------------- @@ -1109,5 +1126,3 @@ --------------------- - Split off from the Zope2 main source code tree. - - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-4.7/buildout4.cfg new/DateTime-4.9/buildout4.cfg --- old/DateTime-4.7/buildout4.cfg 2022-09-14 08:29:54.000000000 +0200 +++ new/DateTime-4.9/buildout4.cfg 2022-12-22 08:10:24.000000000 +0100 @@ -2,3 +2,6 @@ extends = buildout.cfg http://zopefoundation.github.io/Zope/releases/4.x/versions.cfg + +[versions] +DateTime = diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-4.7/setup.py new/DateTime-4.9/setup.py --- old/DateTime-4.7/setup.py 2022-09-14 08:29:54.000000000 +0200 +++ new/DateTime-4.9/setup.py 2022-12-22 08:11:12.000000000 +0100 @@ -26,7 +26,7 @@ with open(os.path.join(here, 'CHANGES.rst')) as f: CHANGES = f.read() -version = '4.7' +version = '4.9' setup( name='DateTime', @@ -63,6 +63,7 @@ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-4.7/src/DateTime/DateTime.py new/DateTime-4.9/src/DateTime/DateTime.py --- old/DateTime-4.7/src/DateTime/DateTime.py 2022-09-14 08:29:54.000000000 +0200 +++ new/DateTime-4.9/src/DateTime/DateTime.py 2022-12-22 08:10:24.000000000 +0100 @@ -680,6 +680,8 @@ # flag indicating whether this was constructed in a timezone naive # manner yr, mo, dy, hr, mn, sc, tz, t, d, s, microsecs, tznaive = args + if isinstance(microsecs, float): + microsecs = long(round(microsecs)) if tznaive is not None: # preserve this information self._timezone_naive = tznaive diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-4.7/src/DateTime/tests/test_datetime.py new/DateTime-4.9/src/DateTime/tests/test_datetime.py --- old/DateTime-4.7/src/DateTime/tests/test_datetime.py 2022-09-14 08:29:54.000000000 +0200 +++ new/DateTime-4.9/src/DateTime/tests/test_datetime.py 2022-12-22 08:10:24.000000000 +0100 @@ -101,13 +101,17 @@ def testAddPrecision(self): # Precision of serial additions dt = DateTime() - self.assertEqual(str(dt + 0.10 + 3.14 + 6.76 - 10), str(dt), - dt) + calculated_dt = dt + 0.10 + 3.14 + 6.76 - 10 + self.assertEqual(str(calculated_dt), str(dt), dt) # checks problem reported in # https://github.com/zopefoundation/DateTime/issues/41 dt = DateTime(2038, 10, 7, 8, 52, 44.959840, "UTC") - self.assertEqual(str(dt + 0.10 + 3.14 + 6.76 - 10), str(dt), - dt) + calculated_dt = dt + 0.10 + 3.14 + 6.76 - 10 + self.assertEqual(str(calculated_dt), str(dt), dt) + # checks regression on Py 2.7 where asdatetime gave an error + py_dt = dt.asdatetime() + py_calculated_dt = calculated_dt.asdatetime() + self.assertEqual(py_dt, py_calculated_dt) def testConsistentSecondMicroRounding(self): dt = DateTime(2038, 10, 7, 8, 52, 44.9598398, "UTC") @@ -702,9 +706,10 @@ self.assertEqual(result, '{:%d.%m.%Y %H:%M}'.format(dt)) self.assertEqual(unformatted_result, '{:}'.format(dt)) self.assertEqual(unformatted_result, '{}'.format(dt)) - eval("self.assertEqual(result, f'{dt:{fmt}}')") - eval("self.assertEqual(unformatted_result ,f'{dt:}')") - eval("self.assertEqual(unformatted_result, f'{dt}')") + if sys.version_info >= (3, 6): # f-strings are new in Python 3.6 PY3 + eval("self.assertEqual(result, f'{dt:{fmt}}')") + eval("self.assertEqual(unformatted_result ,f'{dt:}')") + eval("self.assertEqual(unformatted_result, f'{dt}')") def test_suite(): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-4.7/src/DateTime.egg-info/PKG-INFO new/DateTime-4.9/src/DateTime.egg-info/PKG-INFO --- old/DateTime-4.7/src/DateTime.egg-info/PKG-INFO 2022-09-14 08:29:55.000000000 +0200 +++ new/DateTime-4.9/src/DateTime.egg-info/PKG-INFO 2022-12-22 08:16:04.000000000 +0100 @@ -1,12 +1,11 @@ Metadata-Version: 2.1 Name: DateTime -Version: 4.7 +Version: 4.9 Summary: This package provides a DateTime data type, as known from Zope. Unless you need to communicate with Zope APIs, you're probably better off using Python's built-in datetime module. Home-page: https://github.com/zopefoundation/DateTime Author: Zope Foundation and Contributors Author-email: zope-...@zope.org License: ZPL 2.1 -Platform: UNKNOWN Classifier: Development Status :: 6 - Mature Classifier: Environment :: Web Environment Classifier: Framework :: Zope :: 4 @@ -22,6 +21,7 @@ Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy License-File: LICENSE.txt @@ -842,6 +842,23 @@ Changelog ========= +4.9 (2022-12-22) +---------------- + +- Fix regression in 4.7 on Python 2 when calling ``asdatetime``. + (`#47 <https://github.com/zopefoundation/DateTime/issues/47>`_) + + +4.8 (2022-12-16) +---------------- + +- Fix insidious buildout configuration bug that prevented tests on Python 2.7 + and 3.5, and fix test code that was incompatible with Python 3.5. + (`#44 <https://github.com/zopefoundation/DateTime/issues/44>`_) + +- Add support for Python 3.11. + + 4.7 (2022-09-14) ---------------- @@ -1109,5 +1126,3 @@ --------------------- - Split off from the Zope2 main source code tree. - - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DateTime-4.7/tox.ini new/DateTime-4.9/tox.ini --- old/DateTime-4.7/tox.ini 2022-09-14 08:29:54.000000000 +0200 +++ new/DateTime-4.9/tox.ini 2022-12-22 08:10:24.000000000 +0100 @@ -11,6 +11,7 @@ py38 py39 py310 + py311 pypy pypy3 coverage @@ -18,7 +19,7 @@ [testenv] skip_install = true deps = - zc.buildout >= 3.0.0rc3 + zc.buildout >= 3.0.1 wheel > 0.37 commands_pre = py27,py35: {envbindir}/buildout -nc {toxinidir}/buildout4.cfg buildout:directory={envdir} buildout:develop={toxinidir} install test