arrow v1.0.0 Release Notes

Release Date: 2021-02-26 // about 3 years ago
  • ๐Ÿ“ฆ 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!

    • โฌ‡๏ธ [CHANGE] Arrow has dropped support for Python 2.7 and 3.5.
    • ๐Ÿ’ฅ [CHANGE] There are multiple breaking changes with this release, please see the migration guide <https://github.com/arrow-py/arrow/issues/832>_ for a complete overview.
    • [CHANGE] Arrow is now following semantic versioning <https://semver.org/>_.
    • [CHANGE] Made humanize granularity="auto" limits more accurate to reduce strange results.
    • ๐Ÿ‘ [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

    >>> 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):
    ...     print(r)
    ...
    (<Arrow [2021-02-05T12:30:00+00:00]>, <Arrow [2021-02-05T13:29:59.999999+00:00]>)
    (<Arrow [2021-02-05T13:30:00+00:00]>, <Arrow [2021-02-05T14:29:59.999999+00:00]>)
    (<Arrow [2021-02-05T14:30:00+00:00]>, <Arrow [2021-02-05T15:29:59.999999+00:00]>)
    (<Arrow [2021-02-05T15:30:00+00:00]>, <Arrow [2021-02-05T16:29:59.999999+00:00]>)
    (<Arrow [2021-02-05T16:30:00+00:00]>, <Arrow [2021-02-05T17:14:59.999999+00:00]>)
    
    • ๐Ÿ’… [NEW] Arrow now natively supports PEP 484-style type annotations.
    • ๐Ÿ [FIX] Fixed handling of maximum permitted timestamp on Windows systems.
    • [FIX] Corrections to French, German, Japanese and Norwegian locales.
    • ๐Ÿ“œ [INTERNAL] Raise more appropriate errors when string parsing fails to match.