From b4a25bf3db8faa2b03b47a748fb75cf7e35e99ab Mon Sep 17 00:00:00 2001 From: Jad Chaar Date: Fri, 26 Feb 2021 21:23:34 -0500 Subject: [PATCH 1/3] Bump version and updated CHANGELOG --- CHANGELOG.rst | 13 +++++++++---- arrow/_version.py | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 41d6ca56b..7a586157e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,7 +1,12 @@ Changelog ========= -1.0.0 (2021-02-24) +1.0.1 (2021-02-27) +------------------ + +- [FIXED] A ``py.typed`` file is now bundled with the Arrow package to conform to PEP 561. + +1.0.0 (2021-02-26) ------------------ After 8 years we're pleased to announce Arrow v1.0. Thanks to the entire Python community for helping make Arrow the amazing package it is today! @@ -13,7 +18,7 @@ After 8 years we're pleased to announce Arrow v1.0. Thanks to the entire Python - [NEW] Added support for Python 3.9. - [NEW] Added a new keyword argument "exact" to ``span``, ``span_range`` and ``interval`` methods. This makes timespans begin at the start time given and not extend beyond the end time given, for example: -..code-block:: python +.. code-block:: python >>> start = Arrow(2021, 2, 5, 12, 30) >>> end = Arrow(2021, 2, 5, 17, 15) >>> for r in arrow.Arrow.span_range('hour', start, end, exact=True): @@ -36,12 +41,12 @@ After 8 years we're pleased to announce Arrow v1.0. Thanks to the entire Python - [WARN] Arrow will **drop support** for Python 2.7 and 3.5 in the upcoming 1.0.0 release. This is the last major release to support Python 2.7 and Python 3.5. - [NEW] Arrow now properly handles imaginary datetimes during DST shifts. For example: -..code-block:: python +.. code-block:: python >>> just_before = arrow.get(2013, 3, 31, 1, 55, tzinfo="Europe/Paris") >>> just_before.shift(minutes=+10) -..code-block:: python +.. code-block:: python >>> before = arrow.get("2018-03-10 23:00:00", "YYYY-MM-DD HH:mm:ss", tzinfo="US/Pacific") >>> after = arrow.get("2018-03-11 04:00:00", "YYYY-MM-DD HH:mm:ss", tzinfo="US/Pacific") >>> result=[(t, t.to("utc")) for t in arrow.Arrow.range("hour", before, after)] diff --git a/arrow/_version.py b/arrow/_version.py index 5becc17c0..5c4105cd3 100644 --- a/arrow/_version.py +++ b/arrow/_version.py @@ -1 +1 @@ -__version__ = "1.0.0" +__version__ = "1.0.1" From e8a57749f40444f08f7e64ca030b8e4eb9f4f5a9 Mon Sep 17 00:00:00 2001 From: Jad Chaar Date: Fri, 26 Feb 2021 21:37:00 -0500 Subject: [PATCH 2/3] Fix changelog RST --- CHANGELOG.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 7a586157e..db6addb45 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -19,6 +19,7 @@ After 8 years we're pleased to announce Arrow v1.0. Thanks to the entire Python - [NEW] Added a new keyword argument "exact" to ``span``, ``span_range`` and ``interval`` methods. This makes timespans begin at the start time given and not extend beyond the end time given, for example: .. code-block:: python + >>> start = Arrow(2021, 2, 5, 12, 30) >>> end = Arrow(2021, 2, 5, 17, 15) >>> for r in arrow.Arrow.span_range('hour', start, end, exact=True): @@ -42,11 +43,13 @@ After 8 years we're pleased to announce Arrow v1.0. Thanks to the entire Python - [NEW] Arrow now properly handles imaginary datetimes during DST shifts. For example: .. code-block:: python + >>> just_before = arrow.get(2013, 3, 31, 1, 55, tzinfo="Europe/Paris") >>> just_before.shift(minutes=+10) .. code-block:: python + >>> before = arrow.get("2018-03-10 23:00:00", "YYYY-MM-DD HH:mm:ss", tzinfo="US/Pacific") >>> after = arrow.get("2018-03-11 04:00:00", "YYYY-MM-DD HH:mm:ss", tzinfo="US/Pacific") >>> result=[(t, t.to("utc")) for t in arrow.Arrow.range("hour", before, after)] From 9814a32ccc148b9d16af4ec0f169eb2c612e7b2f Mon Sep 17 00:00:00 2001 From: Jad Chaar Date: Sat, 27 Feb 2021 01:41:26 -0500 Subject: [PATCH 3/3] Add type hints to features. --- README.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/README.rst b/README.rst index bae1ba019..5eaa2e7e7 100644 --- a/README.rst +++ b/README.rst @@ -58,6 +58,7 @@ Features - Generates time spans, ranges, floors and ceilings for time frames ranging from microsecond to year - Humanize dates and times with a growing list of contributed locales - Extensible for your own Arrow-derived types +- Full support for PEP 484-style type hints Quick Start -----------