From 5143ad312f6f6a3630de072a9b5513c9fb45dee7ec1c78a1f21e9f2f042e8836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 24 Jul 2020 14:06:57 +0000 Subject: [PATCH] Accepting request 822653 from home:mcalabkova:branches:devel:languages:python - update to 4.0.0 * Removed ``strptime`` function in favor of `datetime.datetime.strptime`. If passing a ``tzinfo`` parameter, instead invoke `.replace(tzinfo=...)` on the result. * Deprecated ``divide_timedelta`` and ``divide_timedelta_float`` now that Python supports this functionality natively. * Deprecated ``Parser`` class. The 'dateutil.parser' provides more sophistication. OBS-URL: https://build.opensuse.org/request/show/822653 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tempora?expand=0&rev=21 --- python-tempora.changes | 13 +++++++++++++ python-tempora.spec | 9 ++++----- tempora-3.0.0.tar.gz | 3 --- tempora-4.0.0.tar.gz | 3 +++ 4 files changed, 20 insertions(+), 8 deletions(-) delete mode 100644 tempora-3.0.0.tar.gz create mode 100644 tempora-4.0.0.tar.gz diff --git a/python-tempora.changes b/python-tempora.changes index 02cb46c..085b1c1 100644 --- a/python-tempora.changes +++ b/python-tempora.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Fri Jul 24 12:28:31 UTC 2020 - Marketa Calabkova + +- update to 4.0.0 + * Removed ``strptime`` function in favor of + `datetime.datetime.strptime`. If passing + a ``tzinfo`` parameter, instead invoke `.replace(tzinfo=...)` + on the result. + * Deprecated ``divide_timedelta`` and ``divide_timedelta_float`` + now that Python supports this functionality natively. + * Deprecated ``Parser`` class. The + 'dateutil.parser' provides more sophistication. + ------------------------------------------------------------------- Tue Apr 14 09:12:12 UTC 2020 - Matej Cepl diff --git a/python-tempora.spec b/python-tempora.spec index 0c6a3d5..749a6bb 100644 --- a/python-tempora.spec +++ b/python-tempora.spec @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-tempora -Version: 3.0.0 +Version: 4.0.0 Release: 0 Summary: Objects and routines pertaining to date and time (tempora) License: MIT @@ -30,15 +30,13 @@ BuildRequires: %{python_module jaraco.functools >= 1.20} BuildRequires: %{python_module pytest-freezegun} BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytz} -BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module setuptools_scm >= 3.4.1} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module six} +BuildRequires: %{python_module toml} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-jaraco.functools >= 1.20 Requires: python-pytz -Requires: python-setuptools -Requires: python-six BuildArch: noarch Requires(post): update-alternatives Requires(postun): update-alternatives @@ -54,6 +52,7 @@ Modules include: %prep %setup -q -n tempora-%{version} +sed -i '/--mypy/d' pytest.ini %build %python_build diff --git a/tempora-3.0.0.tar.gz b/tempora-3.0.0.tar.gz deleted file mode 100644 index 91507a3..0000000 --- a/tempora-3.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e370d822cf48f5356aab0734ea45807250f5120e291c76712a1d766b49ae34f8 -size 21500 diff --git a/tempora-4.0.0.tar.gz b/tempora-4.0.0.tar.gz new file mode 100644 index 0000000..7fab6f7 --- /dev/null +++ b/tempora-4.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:599a3a910b377f2b544c7b221582ecf4cb049b017c994b37f2b1a9ed1099716e +size 47217