Skip to content

Commit 3e50ae4

Browse files
authored
Bump version to 1.2.1 and update CHANGELOG. (#1055)
1 parent cc1cbeb commit 3e50ae4

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

CHANGELOG.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,31 @@
11
Changelog
22
=========
33

4+
1.2.1 (2021-10-24)
5+
------------------
6+
7+
- [NEW] Added quarter granularity to humanize, for example:
8+
9+
.. code-block:: python
10+
11+
>>> import arrow
12+
>>> now = arrow.now()
13+
>>> four_month_shift = now.shift(months=4)
14+
>>> now.humanize(four_month_shift, granularity="quarter")
15+
'a quarter ago'
16+
>>> four_month_shift.humanize(now, granularity="quarter")
17+
'in a quarter'
18+
>>> thirteen_month_shift = now.shift(months=13)
19+
>>> thirteen_month_shift.humanize(now, granularity="quarter")
20+
'in 4 quarters'
21+
>>> now.humanize(thirteen_month_shift, granularity="quarter")
22+
'4 quarters ago'
23+
24+
- [NEW] Added Sinhala and Urdu locales.
25+
- [NEW] Added official support for Python 3.10.
26+
- [CHANGED] Updated Azerbaijani, Hebrew, and Serbian locales and added tests.
27+
- [CHANGED] Passing an empty granularity list to ``humanize`` now raises a ``ValueError``.
28+
429
1.2.0 (2021-09-12)
530
------------------
631

arrow/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.2.0"
1+
__version__ = "1.2.1"

0 commit comments

Comments
 (0)