- 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
This commit is contained in:
parent
1f0db1c766
commit
40953a8f6c
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:c89805f6f4d64db21ed966fda138f8a5ed7a4fdbc1a8ee329ce1b74e3c74da9e
|
|
||||||
size 327134
|
|
3
python-dateutil-2.8.1.tar.gz
Normal file
3
python-dateutil-2.8.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c
|
||||||
|
size 331745
|
@ -1,3 +1,28 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 16 08:42:35 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- 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 <mcepl@suse.com>
|
Mon Oct 14 14:36:03 UTC 2019 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-python-dateutil
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -27,18 +27,20 @@
|
|||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
Name: python-python-dateutil%{psuffix}
|
Name: python-python-dateutil%{psuffix}
|
||||||
Version: 2.8.0
|
Version: 2.8.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A Python Datetime Library
|
Summary: A Python Datetime Library
|
||||||
License: BSD-3-Clause OR Apache-2.0
|
License: BSD-3-Clause OR Apache-2.0
|
||||||
URL: https://dateutil.readthedocs.org/en/latest/
|
URL: https://dateutil.readthedocs.org/en/latest/
|
||||||
Source0: https://files.pythonhosted.org/packages/source/p/python-dateutil/python-dateutil-%{version}.tar.gz
|
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 setuptools_scm}
|
||||||
BuildRequires: %{python_module six >= 1.9.0}
|
BuildRequires: %{python_module six >= 1.5}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
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
|
BuildArch: noarch
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module freezegun}
|
BuildRequires: %{python_module freezegun}
|
||||||
@ -50,10 +52,6 @@ BuildRequires: timezone
|
|||||||
Obsoletes: %{oldpython}-dateutil < %{version}
|
Obsoletes: %{oldpython}-dateutil < %{version}
|
||||||
Provides: %{oldpython}-dateutil = %{version}
|
Provides: %{oldpython}-dateutil = %{version}
|
||||||
%endif
|
%endif
|
||||||
%ifpython3
|
|
||||||
Obsoletes: python3-dateutil < %{version}
|
|
||||||
Provides: python3-dateutil = %{version}
|
|
||||||
%endif
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -103,16 +101,14 @@ rm -f setup.cfg
|
|||||||
%if %{with test}
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} \
|
%pytest
|
||||||
py.test-%{$python_bin_suffix} dateutil/test}
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if !%{with test}
|
%if !%{with test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc NEWS PKG-INFO README.rst
|
%doc NEWS PKG-INFO README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/dateutil/
|
%{python_sitelib}/*
|
||||||
%{python_sitelib}/python_dateutil-%{version}-py*.egg-info
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user