Up to [cvs.NetBSD.org] / pkgsrc / time / py-arrow
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-arrow: convert to wheel.mk Remove unused test dependency. Document test status. Bump PKGREVISION.
py-arrow: updated to 1.3.0 1.3.0 (2023-09-30) - [ADDED] Added official support for Python 3.11 and 3.12. - [ADDED] Added dependency on ``types-python-dateutil`` to improve Arrow mypy compatibility. - [FIX] Updates to Italian, Romansh, Hungarian, Finish and Arabic locales. - [FIX] Handling parsing of UTC prefix in timezone strings. - [CHANGED] Update documentation to improve readability. - [CHANGED] Dropped support for Python 3.6 and 3.7, which are end-of-life. - [INTERNAL] Migrate from ``setup.py``/Twine to ``pyproject.toml``/Flit for packaging and distribution. - [INTERNAL] Adopt ``.readthedocs.yaml`` configuration file for continued ReadTheDocs support.
*: use PYTHON_VERSION instead of _PYTHON_VERSION
py-arrow: updated to 1.2.3 1.2.3 (2022-06-25) ------------------ - [NEW] Added Amharic, Armenian, Georgian, Laotian and Uzbek locales. - [FIX] Updated Danish locale and associated tests. - [INTERNAl] Small fixes to CI.
py-arrow: updated to 1.2.2 1.2.2 (2022-01-19) ------------------ - [NEW] Added Kazakh locale. - [FIX] The Belarusian, Bulgarian, Czech, Macedonian, Polish, Russian, Slovak and Ukrainian locales now support ``dehumanize``. - [FIX] Minor bug fixes and improvements to ChineseCN, Indonesian, Norwegian, and Russian locales. - [FIX] Expanded testing for multiple locales. - [INTERNAL] Started using ``xelatex`` for pdf generation in documentation. - [INTERNAL] Split requirements file into ``requirements.txt``, ``requirements-docs.txt`` and ``requirements-tests.txt``. - [INTERNAL] Added ``flake8-annotations`` package for type linting in ``pre-commit``. 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) ------------------ - [NEW] Added Albanian, Tamil and Zulu locales. - [NEW] Added support for ``Decimal`` as input to ``arrow.get()``. - [FIX] The Estonian, Finnish, Nepali and Zulu locales now support ``dehumanize``. - [FIX] Improved validation checks when using parser tokens ``A`` and ``hh``. - [FIX] Minor bug fixes to Catalan, Cantonese, Greek and Nepali locales.
*: bump PKGREVISION for egg.mk users They now have a tool dependency on py-setuptools instead of a DEPENDS
py-arrow: updated to 0.15.8 0.15.8 - [WARN] arrow will **drop support** for Python 2.7 and 3.5 in the 1.0.0 release in late September. The 0.15.x and 0.16.x releases are the last to support Python 2.7 and 3.5. - [NEW] Added ``humanize`` week granularity translation for Czech. - [FIX] ``arrow.get`` will now pick sane defaults when weekdays are passed with particular token combinations. - [INTERNAL] Moved arrow to an organization. The repo can now be found `here <https://github.com/arrow-py/arrow>`_. - [INTERNAL] Started issuing deprecation warnings for Python 2.7 and 3.5. - [INTERNAL] Added Python 3.9 to CI pipeline.
py-arrow: updated to 0.15.7 0.15.7: - [NEW] Added a number of built-in format strings. See the `docs <https://arrow.readthedocs.io/#built-in-formats>`_ for a complete list of supported formats. For example: .. code-block:: python >>> arw = arrow.utcnow() >>> arw.format(arrow.FORMAT_COOKIE) 'Wednesday, 27-May-2020 10:30:35 UTC' - [NEW] Arrow is now fully compatible with Python 3.9 and PyPy3. - [NEW] Added Makefile, tox.ini, and requirements.txt files to the distribution bundle. - [NEW] Added French Canadian and Swahili locales. - [NEW] Added ``humanize`` week granularity translation for Hebrew, Greek, Macedonian, Swedish, Slovak. - [FIX] ms and μs timestamps are now normalized in ``arrow.get()``, ``arrow.fromtimestamp()``, and ``arrow.utcfromtimestamp()``. For example: .. code-block:: python >>> ts = 1591161115194556 >>> arw = arrow.get(ts) <Arrow [2020-06-03T05:11:55.194556+00:00]> >>> arw.timestamp 1591161115 - [FIX] Refactored and updated Macedonian, Hebrew, Korean, and Portuguese locales.
py-arrow: updated to 0.15.6 0.15.6: - [NEW] Added support for parsing and formatting `ISO 8601 week dates <https://en.wikipedia.org/wiki/ISO_week_date>`_ via a new token ``W``, for example: .. code-block:: python >>> arrow.get("2013-W29-6", "W") <Arrow [2013-07-20T00:00:00+00:00]> >>> utc=arrow.utcnow() >>> utc <Arrow [2020-01-23T18:37:55.417624+00:00]> >>> utc.format("W") '2020-W04-4' - [NEW] Formatting with ``x`` token (microseconds) is now possible, for example: .. code-block:: python >>> dt = arrow.utcnow() >>> dt.format("x") '1585669870688329' >>> dt.format("X") '1585669870' - [NEW] Added ``humanize`` week granularity translation for German, Italian, Polish & Taiwanese locales. - [FIX] Consolidated and simplified German locales. - [INTERNAL] Moved testing suite from nosetest/Chai to pytest/pytest-mock. - [INTERNAL] Converted xunit-style setup and teardown functions in tests to pytest fixtures. - [INTERNAL] Setup Github Actions for CI alongside Travis. - [INTERNAL] Help support Arrow's future development by donating to the project on `Open Collective <https://opencollective.com/arrow>`_.
py-arrow: updated to 0.15.5 0.15.5: - [WARN] Python 2 reached EOL on 2020-01-01. arrow will **drop support** for Python 2 in a future release to be decided. - [NEW] Added bounds parameter to ``span_range``, ``interval`` and ``span`` methods. This allows you to include or exclude the start and end values. - [NEW] ``arrow.get()`` can now create arrow objects from a timestamp with a timezone, for example: .. code-block:: python >>> arrow.get(1367900664, tzinfo=tz.gettz('US/Pacific')) <Arrow [2013-05-06T21:24:24-07:00]> - [NEW] ``humanize`` can now combine multiple levels of granularity, for example: .. code-block:: python >>> later140 = arrow.utcnow().shift(seconds=+8400) >>> later140.humanize(granularity="minute") 'in 139 minutes' >>> later140.humanize(granularity=["hour", "minute"]) 'in 2 hours and 19 minutes' - [NEW] Added Hong Kong locale (``zh_hk``). - [NEW] Added ``humanize`` week granularity translation for Dutch. - [NEW] Numbers are now displayed when using the seconds granularity in ``humanize``. - [CHANGE] ``range`` now supports both the singular and plural forms of the ``frames`` argument (e.g. day and days). - [FIX] Improved parsing of strings that contain punctuation. - [FIX] Improved behaviour of ``humanize`` when singular seconds are involved.
py-arrow: updated to 0.15.4 0.15.4: - [FIX] Fixed an issue that caused package installs to fail on Conda Forge. 0.15.3: - [NEW] ``factory.get()`` can now create arrow objects from a ISO calendar tuple, for example: .. code-block:: python >>> arrow.get((2013, 18, 7)) <Arrow [2013-05-05T00:00:00+00:00]> - [NEW] Added a new token ``x`` to allow parsing of integer timestamps with milliseconds and microseconds. - [NEW] Formatting now supports escaping of characters using the same syntax as parsing, for example: .. code-block:: python >>> arw = arrow.now() >>> fmt = "YYYY-MM-DD h [h] m" >>> arw.format(fmt) '2019-11-02 3 h 32' - [NEW] Added ``humanize`` week granularity translations for Chinese, Spanish and Vietnamese. - [CHANGE] Added ``ParserError`` to module exports. - [FIX] Added support for midnight at end of day. - [INTERNAL] Created Travis build for macOS. - [INTERNAL] Test parsing and formatting against full timezone database. 0.15.2: - [NEW] Added ``humanize`` week granularity translations for Portuguese and Brazilian Portuguese. - [NEW] Embedded changelog within docs and added release dates to versions. - [FIX] Fixed a bug that caused test failures on Windows only. 0.15.1: - [NEW] Added ``humanize`` week granularity translations for Japanese. - [FIX] Fixed a bug that caused Arrow to fail when passed a negative timestamp string. - [FIX] Fixed a bug that caused Arrow to fail when passed a datetime object with ``tzinfo`` of type ``StaticTzInfo``. 0.15.0: - [NEW] Added support for DDD and DDDD ordinal date tokens. The following functionality is now possible: ``arrow.get("1998-045")``, ``arrow.get("1998-45", "YYYY-DDD")``, ``arrow.get("1998-045", "YYYY-DDDD")``. - [NEW] ISO 8601 basic format for dates and times is now supported (e.g. ``YYYYMMDDTHHmmssZ``). - [NEW] Added ``humanize`` week granularity translations for French, Russian and Swiss German locales. - [CHANGE] Timestamps of type ``str`` are no longer supported **without a format string** in the ``arrow.get()`` method. This change was made to support the ISO 8601 basic format and to address bugs. The following will NOT work in v0.15.0: .. code-block:: python >>> arrow.get("1565358758") >>> arrow.get("1565358758.123413") The following will work in v0.15.0: .. code-block:: python >>> arrow.get("1565358758", "X") >>> arrow.get("1565358758.123413", "X") >>> arrow.get(1565358758) >>> arrow.get(1565358758.123413) - [CHANGE] When a meridian token (a|A) is passed and no meridians are available for the specified locale (e.g. unsupported or untranslated) a ``ParserError`` is raised. - [CHANGE] The timestamp token (``X``) will now match float timestamps of type ``str``: ``arrow.get(“1565358758.123415”, “X”)``. - [CHANGE] Strings with leading and/or trailing whitespace will no longer be parsed without a format string. Please see `the docs <https://arrow.readthedocs.io/en/latest/#regular-expressions>`_ for ways to handle this. - [FIX] The timestamp token (``X``) will now only match on strings that **strictly contain integers and floats**, preventing incorrect matches. - [FIX] Most instances of ``arrow.get()`` returning an incorrect ``Arrow`` object from a partial parsing match have been eliminated.
py-arrow: updated to 0.14.7 0.14.7 - [CHANGE] `ArrowParseWarning` will no longer be printed on every call to `arrow.get()` with a datetime string. The purpose of the warning was to start a conversation about the upcoming 0.15.0 changes and we appreciate all the feedback that the community has given us! 0.14.6 - [NEW] Added support for `week` granularity in `Arrow.humanize()`. For example, `arrow.utcnow().shift(weeks=-1).humanize(granularity="week")` outputs "a week ago". This change introduced two new untranslated words, `week` and `weeks`, to all locale dictionaries, so locale contributions are welcome! - [NEW] Fully translated the Brazilian Portugese locale. - [CHANGE] Updated the Macedonian locale to inherit from a Slavic base. - [FIX] Fixed a bug that caused `arrow.get()` to ignore tzinfo arguments of type string (e.g. `arrow.get(tzinfo="Europe/Paris")`). - [FIX] Fixed a bug that occurred when `arrow.Arrow()` was instantiated with a `pytz` tzinfo object. - [FIX] Fixed a bug that caused Arrow to fail when passed a sub-second token, that when rounded, had a value greater than 999999 (e.g. `arrow.get("2015-01-12T01:13:15.9999995")`). Arrow should now accurately propagate the rounding for large sub-second tokens.
py-arrow: updated to 0.14.5 0.14.5 - [NEW] Added Afrikaans locale. - [CHANGE] Removed deprecated replace shift functionality. - [FIX] Fixed bug that occurred when factory.get() was passed a locale kwarg.
py-arrow: updated to 0.14.4 0.14.4 - [FIX] Fixed a regression in 0.14.3 that prevented a tzinfo argument of type string to be passed to the get() function. Functionality such as arrow.get("2019072807", "YYYYMMDDHH", tzinfo="UTC") should work as normal again. - [CHANGE] Moved backports.functools_lru_cache dependency from extra_requires to install_requires for Python 2.7 installs to fix 0.14.3 - [NEW] Added full support for Python 3.8. - [CHANGE] Added warnings for upcoming factory.get() parsing changes in 0.15.0. Please see https://github.com/crsmithdev/arrow/issues/612 for full details. - [FIX] Extensive refactor and update of documentation. - [FIX] factory.get() can now construct from kwargs. - [FIX] Added meridians to Spanish Locale.
py-arrow: updated to 0.14.2 0.14.2 - [CHANGE] Travis CI builds now use tox to lint and run tests. - [FIX] Fixed UnicodeDecodeError on certain locales. 0.14.1 - [FIX] Fixed "ImportError: No module named 'dateutil'". 0.14.0 - [NEW] Added provisional support for Python 3.8. - [CHANGE] Removed support for EOL Python 3.4. - [FIX] Updated setup.py with modern Python standards. - [FIX] Upgraded dependencies to latest versions. - [FIX] Enabled flake8 and black on travis builds. - [FIX] Formatted code using black and isort.
py-arrow: updated to 0.13.2 0.13.2 - [NEW] Add is_between method. - [FIX] Improved humanize behaviour for near zero durations. - [FIX] Correct humanize behaviour with future days. - [FIX] Documentation updates. - [FIX] Improvements to German Locale.
py-arrow: updated to 0.13.1 Version 0.13.1 Add support for Python 3.7. Remove deprecation decorators for Arrow.range(), Arrow.span_range() and Arrow.interval(). All now return generators, wrap with list() to get old behavior.
py-arrow: updated to 0.13.0 0.13.0: Unknown changes
py-arrow: updated to 0.12.1 0.12.1: Bug fixes
py-arrow: updated to 0.12.0 0.12.0 - [FIX] Compatibility fix for Python 2.x 0.11.0 - [FIX] Fix grammar of ArabicLocale - [NEW] Add Nepali Locale - [FIX] Fix month name + rename AustriaLocale -> AustrianLocale - [FIX] Fix typo in Basque Locale - [FIX] Fix grammar in PortugueseBrazilian locale - [FIX] Remove pip --user-mirrors flag - [NEW] Add Indonesian Locale
py-arrow: update to 0.10.0 0.10.0 - [FIX] Fix getattr off by one for quarter - [FIX] Fix negative offset for UTC - [FIX] Update arrow.py
Switch py-dateutils to plain DEPENDS. It supports both python 2 and 3 nowadays.
Switch to MASTER_SITES_PYPI.
Import py27-arrow-0.4.2 as time/py-arrow. Arrow is a Python library that offers a sensible, human-friendly approach to creating, manipulating, formatting and converting dates, times, and timestamps It implements and updates the datetime type, plugging gaps in functionality, and provides an intelligent module API that supports many common creation scenarios Simply put, it helps you work with dates and times with fewer imports and a lot less code.