Accepting request 765162 from devel:languages:python
- 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/request/show/765162 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-dateutil?expand=0&rev=10
This commit is contained in:
commit
b1b13e511d
@ -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>
|
||||
|
||||
|
@ -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,21 @@
|
||||
%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: dos2unix
|
||||
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 +53,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
|
||||
@ -88,8 +87,7 @@ Orthodox or Julian algorithms.
|
||||
%prep
|
||||
%setup -q -n python-dateutil-%{version}
|
||||
#cleanup and MSdos style end of line separators
|
||||
sed -i 's/\r$//' LICENSE NEWS PKG-INFO README.rst
|
||||
rm -f setup.cfg
|
||||
dos2unix LICENSE NEWS PKG-INFO README.rst
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@ -102,17 +100,16 @@ rm -f setup.cfg
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
rm setup.cfg
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user