From 40953a8f6cd2d0710a0efe2e2bf9b045bdc76b91c938cf9f7a7e6f49702a5a08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 16 Jan 2020 08:50:31 +0000 Subject: [PATCH] - Update to 2.8.1: * Updated tzdata version to 2019c. * Fixed a race condition in the tzoffset and tzstr "strong" caches on Python 2.7. Reported by @kainjow (gh issue #901). * Parsing errors will now raise ParserError, a subclass of ValueError, which has a nicer string representation. Patch by @gfyoung (gh pr #881). * parser.parse will now raise TypeError when tzinfos is passed a type that cannot be interpreted as a time zone. Prior to this change, it would raise an UnboundLocalError instead. Patch by @jbrockmendel (gh pr #891). * Changed error message raised when when passing a bytes object as the time zone name to gettz in Python 3. Reported and fixed by @labrys () (gh issue #927, gh pr #935). * Changed compatibility logic to support a potential Python 4.0 release. Patch by Hugo van Kemenade (gh pr #950). * Updated many modules to use tz.UTC in favor of tz.tzutc() internally, to avoid an unnecessary function call. (gh pr #910). * Fixed issue where dateutil.tz was using a backported version of contextlib.nullcontext even in Python 3.7 due to a malformed import statement. (gh pr #963). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dateutil?expand=0&rev=22 --- python-dateutil-2.8.0.tar.gz | 3 --- python-dateutil-2.8.1.tar.gz | 3 +++ python-python-dateutil.changes | 25 +++++++++++++++++++++++++ python-python-dateutil.spec | 22 +++++++++------------- 4 files changed, 37 insertions(+), 16 deletions(-) delete mode 100644 python-dateutil-2.8.0.tar.gz create mode 100644 python-dateutil-2.8.1.tar.gz diff --git a/python-dateutil-2.8.0.tar.gz b/python-dateutil-2.8.0.tar.gz deleted file mode 100644 index ac52241..0000000 --- a/python-dateutil-2.8.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c89805f6f4d64db21ed966fda138f8a5ed7a4fdbc1a8ee329ce1b74e3c74da9e -size 327134 diff --git a/python-dateutil-2.8.1.tar.gz b/python-dateutil-2.8.1.tar.gz new file mode 100644 index 0000000..9dd8de9 --- /dev/null +++ b/python-dateutil-2.8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c +size 331745 diff --git a/python-python-dateutil.changes b/python-python-dateutil.changes index 9b1ada5..617c9c6 100644 --- a/python-python-dateutil.changes +++ b/python-python-dateutil.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Thu Jan 16 08:42:35 UTC 2020 - Tomáš Chvátal + +- Update to 2.8.1: + * Updated tzdata version to 2019c. + * Fixed a race condition in the tzoffset and tzstr "strong" + caches on Python 2.7. Reported by @kainjow (gh issue #901). + * Parsing errors will now raise ParserError, a subclass of + ValueError, which has a nicer string representation. Patch by + @gfyoung (gh pr #881). + * parser.parse will now raise TypeError when tzinfos is passed a + type that cannot be interpreted as a time zone. Prior to this + change, it would raise an UnboundLocalError instead. Patch by + @jbrockmendel (gh pr #891). + * Changed error message raised when when passing a bytes object as + the time zone name to gettz in Python 3. Reported and fixed by + @labrys () (gh issue #927, gh pr #935). + * Changed compatibility logic to support a potential Python 4.0 + release. Patch by Hugo van Kemenade (gh pr #950). + * Updated many modules to use tz.UTC in favor of tz.tzutc() + internally, to avoid an unnecessary function call. (gh pr #910). + * Fixed issue where dateutil.tz was using a backported version of + contextlib.nullcontext even in Python 3.7 due to a malformed + import statement. (gh pr #963). + ------------------------------------------------------------------- Mon Oct 14 14:36:03 UTC 2019 - Matej Cepl diff --git a/python-python-dateutil.spec b/python-python-dateutil.spec index 29729aa..191b5f5 100644 --- a/python-python-dateutil.spec +++ b/python-python-dateutil.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-dateutil # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,18 +27,20 @@ %bcond_with test %endif Name: python-python-dateutil%{psuffix} -Version: 2.8.0 +Version: 2.8.1 Release: 0 Summary: A Python Datetime Library License: BSD-3-Clause OR Apache-2.0 URL: https://dateutil.readthedocs.org/en/latest/ Source0: https://files.pythonhosted.org/packages/source/p/python-dateutil/python-dateutil-%{version}.tar.gz -BuildRequires: %{python_module setuptools >= 18.0.1} +BuildRequires: %{python_module setuptools >= 24.3} BuildRequires: %{python_module setuptools_scm} -BuildRequires: %{python_module six >= 1.9.0} +BuildRequires: %{python_module six >= 1.5} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-six >= 1.9.0 +Requires: python-six >= 1.5 +Obsoletes: python-dateutil < %{version} +Provides: python-dateutil = %{version} BuildArch: noarch %if %{with test} BuildRequires: %{python_module freezegun} @@ -50,10 +52,6 @@ BuildRequires: timezone Obsoletes: %{oldpython}-dateutil < %{version} Provides: %{oldpython}-dateutil = %{version} %endif -%ifpython3 -Obsoletes: python3-dateutil < %{version} -Provides: python3-dateutil = %{version} -%endif %python_subpackages %description @@ -103,16 +101,14 @@ rm -f setup.cfg %if %{with test} %check export LANG=en_US.UTF-8 -%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} \ - py.test-%{$python_bin_suffix} dateutil/test} +%pytest %endif %if !%{with test} %files %{python_files} %doc NEWS PKG-INFO README.rst %license LICENSE -%{python_sitelib}/dateutil/ -%{python_sitelib}/python_dateutil-%{version}-py*.egg-info +%{python_sitelib}/* %endif %changelog