grahamwetzler / smart-meter-texas

Package to connect to and retrieve data from the unoffical Smart Meter Texas API
MIT License
13 stars 13 forks source link

Update arrow to 0.16.0 #30

Closed pyup-bot closed 3 years ago

pyup-bot commented 4 years ago

This PR updates arrow from 0.15.8 to 0.16.0.

Changelog ### 0.16.0 ``` ------------------- - [WARN] Arrow will **drop support** for Python 2.7 and 3.5 in the 1.0.0 release in late September. The 0.16.x and 0.17.x releases are the last to support Python 2.7 and 3.5. - [NEW] Implemented `PEP 495 <https://www.python.org/dev/peps/pep-0495/>`_ to handle ambiguous datetimes. This is achieved by the addition of the ``fold`` attribute for Arrow objects. For example: .. code-block:: python >>> before = Arrow(2017, 10, 29, 2, 0, tzinfo='Europe/Stockholm') <Arrow [2017-10-29T02:00:00+02:00]> >>> before.fold 0 >>> before.ambiguous True >>> after = Arrow(2017, 10, 29, 2, 0, tzinfo='Europe/Stockholm', fold=1) <Arrow [2017-10-29T02:00:00+01:00]> >>> after = before.replace(fold=1) <Arrow [2017-10-29T02:00:00+01:00]> - [NEW] Added ``normalize_whitespace`` flag to ``arrow.get``. This is useful for parsing log files and/or any files that may contain inconsistent spacing. For example: .. code-block:: python >>> arrow.get("Jun 1 2005 1:33PM", "MMM D YYYY H:mmA", normalize_whitespace=True) <Arrow [2005-06-01T13:33:00+00:00]> >>> arrow.get("2013-036 \t 04:05:06Z", normalize_whitespace=True) <Arrow [2013-02-05T04:05:06+00:00]> ```
Links - PyPI: https://pypi.org/project/arrow - Changelog: https://pyup.io/changelogs/arrow/ - Docs: https://arrow.readthedocs.io