From 3e50ae4b6c58e36bd32a672ce073f4c64d5bf182 Mon Sep 17 00:00:00 2001 From: Jad Chaar Date: Sun, 24 Oct 2021 18:13:48 -0400 Subject: [PATCH] Bump version to 1.2.1 and update CHANGELOG. (#1055) --- CHANGELOG.rst | 25 +++++++++++++++++++++++++ arrow/_version.py | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 132742d5..87a1ef2b 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,31 @@ Changelog ========= +1.2.1 (2021-10-24) +------------------ + +- [NEW] Added quarter granularity to humanize, for example: + +.. code-block:: python + + >>> import arrow + >>> now = arrow.now() + >>> four_month_shift = now.shift(months=4) + >>> now.humanize(four_month_shift, granularity="quarter") + 'a quarter ago' + >>> four_month_shift.humanize(now, granularity="quarter") + 'in a quarter' + >>> thirteen_month_shift = now.shift(months=13) + >>> thirteen_month_shift.humanize(now, granularity="quarter") + 'in 4 quarters' + >>> now.humanize(thirteen_month_shift, granularity="quarter") + '4 quarters ago' + +- [NEW] Added Sinhala and Urdu locales. +- [NEW] Added official support for Python 3.10. +- [CHANGED] Updated Azerbaijani, Hebrew, and Serbian locales and added tests. +- [CHANGED] Passing an empty granularity list to ``humanize`` now raises a ``ValueError``. + 1.2.0 (2021-09-12) ------------------ diff --git a/arrow/_version.py b/arrow/_version.py index c68196d1..a955fdae 100644 --- a/arrow/_version.py +++ b/arrow/_version.py @@ -1 +1 @@ -__version__ = "1.2.0" +__version__ = "1.2.1"