Accepting request 761075 from devel:languages:python
- specfile: * update copyright year - update to version 0.15.5: * [WARN] Python 2 reached EOL on 2020-01-01. arrow will drop support for Python 2 in a future release to be decided (see #739). * [NEW] Added bounds parameter to span_range, interval and span methods. This allows you to include or exclude the start and end values. * [NEW] arrow.get() can now create arrow objects from a timestamp with a timezone, for example: >>> arrow.get(1367900664, tzinfo=tz.gettz('US/Pacific')) <Arrow [2013-05-06T21:24:24-07:00]> * [NEW] humanize can now combine multiple levels of granularity, for example: >>> later140 = arrow.utcnow().shift(seconds=+8400) >>> later140.humanize(granularity="minute") 'in 139 minutes' >>> later140.humanize(granularity=["hour", "minute"]) 'in 2 hours and 19 minutes' * [NEW] Added Hong Kong locale (zh_hk). * [NEW] Added humanize week granularity translation for Dutch. * [NEW] Numbers are now displayed when using the seconds granularity in humanize. * [CHANGE] range now supports both the singular and plural forms of the frames argument (e.g. day and days). * [FIX] Improved parsing of strings that contain punctuation. * [FIX] Improved behaviour of humanize when singular seconds are involved. OBS-URL: https://build.opensuse.org/request/show/761075 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-arrow?expand=0&rev=13
This commit is contained in:
commit
94981b53d7
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:e1a318a4c0b787833ae46302c02488b6eeef413c6a13324b3261ad320f21ec1e
|
|
||||||
size 77979
|
|
3
arrow-0.15.5.tar.gz
Normal file
3
arrow-0.15.5.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5390e464e2c5f76971b60ffa7ee29c598c7501a294bc9f5e6dadcb251a5d027b
|
||||||
|
size 82264
|
@ -1,3 +1,36 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jan 5 02:48:30 UTC 2020 - Arun Persaud <arun@gmx.de>
|
||||||
|
|
||||||
|
- specfile:
|
||||||
|
* update copyright year
|
||||||
|
|
||||||
|
- update to version 0.15.5:
|
||||||
|
* [WARN] Python 2 reached EOL on 2020-01-01. arrow will drop support
|
||||||
|
for Python 2 in a future release to be decided (see #739).
|
||||||
|
* [NEW] Added bounds parameter to span_range, interval and span
|
||||||
|
methods. This allows you to include or exclude the start and end
|
||||||
|
values.
|
||||||
|
* [NEW] arrow.get() can now create arrow objects from a timestamp
|
||||||
|
with a timezone, for example:
|
||||||
|
>>> arrow.get(1367900664, tzinfo=tz.gettz('US/Pacific'))
|
||||||
|
<Arrow [2013-05-06T21:24:24-07:00]>
|
||||||
|
* [NEW] humanize can now combine multiple levels of granularity, for
|
||||||
|
example:
|
||||||
|
>>> later140 = arrow.utcnow().shift(seconds=+8400)
|
||||||
|
>>> later140.humanize(granularity="minute")
|
||||||
|
'in 139 minutes'
|
||||||
|
>>> later140.humanize(granularity=["hour", "minute"])
|
||||||
|
'in 2 hours and 19 minutes'
|
||||||
|
* [NEW] Added Hong Kong locale (zh_hk).
|
||||||
|
* [NEW] Added humanize week granularity translation for Dutch.
|
||||||
|
* [NEW] Numbers are now displayed when using the seconds granularity
|
||||||
|
in humanize.
|
||||||
|
* [CHANGE] range now supports both the singular and plural forms of
|
||||||
|
the frames argument (e.g. day and days).
|
||||||
|
* [FIX] Improved parsing of strings that contain punctuation.
|
||||||
|
* [FIX] Improved behaviour of humanize when singular seconds are
|
||||||
|
involved.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Dec 14 23:42:58 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
Sat Dec 14 23:42:58 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-arrow
|
# spec file for package python-arrow
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LLC
|
# 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
|
||||||
@ -17,24 +17,26 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%bcond_without python2
|
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
%if "%{flavor}" == "test"
|
%if "%{flavor}" == "test"
|
||||||
%bcond_without test
|
|
||||||
%define psuffix -test
|
%define psuffix -test
|
||||||
|
%bcond_without test
|
||||||
%else
|
%else
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
|
%bcond_without python2
|
||||||
Name: python-arrow%{?psuffix}
|
Name: python-arrow%{?psuffix}
|
||||||
Version: 0.15.4
|
Version: 0.15.5
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Better dates and times for Python
|
Summary: Better dates and times for Python
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/crsmithdev/arrow
|
URL: https://github.com/crsmithdev/arrow
|
||||||
Source: https://files.pythonhosted.org/packages/source/a/arrow/arrow-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/a/arrow/arrow-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: %{python_module setuptools}
|
Requires: python-python-dateutil
|
||||||
|
BuildArch: noarch
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module arrow == %{version}}
|
BuildRequires: %{python_module arrow == %{version}}
|
||||||
BuildRequires: %{python_module chai}
|
BuildRequires: %{python_module chai}
|
||||||
@ -44,8 +46,6 @@ BuildRequires: %{python_module nose}
|
|||||||
BuildRequires: %{python_module pytz}
|
BuildRequires: %{python_module pytz}
|
||||||
BuildRequires: %{python_module simplejson}
|
BuildRequires: %{python_module simplejson}
|
||||||
%endif
|
%endif
|
||||||
Requires: python-python-dateutil
|
|
||||||
BuildArch: noarch
|
|
||||||
%if %{with python2}
|
%if %{with python2}
|
||||||
BuildRequires: python-backports.functools_lru_cache >= 1.2.1
|
BuildRequires: python-backports.functools_lru_cache >= 1.2.1
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user