Skip to content

Update dependency arrow to v0.15.1 - autoclosed #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

mend-for-g.yxqyang.asia[bot]
Copy link
Contributor

@mend-for-g.yxqyang.asia mend-for-g.yxqyang.asia bot commented Apr 16, 2024

This PR contains the following updates:

Package Update Change
arrow minor ==0.12.1 -> ==0.15.1

By merging this PR, the issue #4 will be automatically resolved and closed:

Severity CVSS Score CVE
High High 7.5 CVE-2019-12410

Release Notes

arrow-py/arrow (arrow)

v0.15.1

Compare Source

  • [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.

v0.15.0

Compare Source

  • [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 such as #&#8203;447 <https://github.com/arrow-py/arrow/issues/447>_.

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/#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. The following issue have been addressed: #&#8203;91 <https://github.com/arrow-py/arrow/issues/91>, #&#8203;196 <https://github.com/arrow-py/arrow/issues/196>, #&#8203;396 <https://github.com/arrow-py/arrow/issues/396>, #&#8203;434 <https://github.com/arrow-py/arrow/issues/434>, #&#8203;447 <https://github.com/arrow-py/arrow/issues/447>, #&#8203;456 <https://github.com/arrow-py/arrow/issues/456>, #&#8203;519 <https://github.com/arrow-py/arrow/issues/519>, #&#8203;538 <https://github.com/arrow-py/arrow/issues/538>, #&#8203;560 <https://github.com/arrow-py/arrow/issues/560>_.

v0.14.7

Compare Source

  • [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!

v0.14.6

Compare Source

  • [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 Portuguese 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.

v0.14.5

Compare Source

  • [NEW] Added Afrikaans locale.
  • [CHANGE] Removed deprecated replace shift functionality. Users looking to pass plural properties to the replace function to shift values should use shift instead.
  • [FIX] Fixed bug that occurred when factory.get() was passed a locale kwarg.

v0.14.4

Compare Source

  • [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 #&#8203;495 <https://github.com/arrow-py/arrow/issues/495>_.

v0.14.3

Compare Source

  • [NEW] Added full support for Python 3.8.
  • [CHANGE] Added warnings for upcoming factory.get() parsing changes in 0.15.0. Please see #&#8203;612 <https://github.com/arrow-py/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.

v0.14.2

Compare Source

  • [CHANGE] Travis CI builds now use tox to lint and run tests.
  • [FIX] Fixed UnicodeDecodeError on certain locales (#​600).

v0.14.1

Compare Source

  • [FIX] Fixed ImportError: No module named 'dateutil' (#​598).

v0.14.0

Compare Source

  • [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.

v0.13.2

Compare Source

  • [NEW] Add is_between method.
  • [FIX] Improved humanize behaviour for near zero durations (#​416).
  • [FIX] Correct humanize behaviour with future days (#​541).
  • [FIX] Documentation updates.
  • [FIX] Improvements to German Locale.

v0.13.1

Compare Source

  • [NEW] Add support for Python 3.7.
  • [CHANGE] Remove deprecation decorators for Arrow.range(), Arrow.span_range() and Arrow.interval(), all now return generators, wrap with list() to get old behavior.
  • [FIX] Documentation and docstring updates.

v0.13.0

Compare Source

  • [NEW] Added support for Python 3.6.
  • [CHANGE] Drop support for Python 2.6/3.3.
  • [CHANGE] Return generator instead of list for Arrow.range(), Arrow.span_range() and Arrow.interval().
  • [FIX] Make arrow.get() work with str & tzinfo combo.
  • [FIX] Make sure special RegEx characters are escaped in format string.
  • [NEW] Added support for ZZZ when formatting.
  • [FIX] Stop using datetime.utcnow() in internals, use datetime.now(UTC) instead.
  • [FIX] Return NotImplemented instead of TypeError in arrow math internals.
  • [NEW] Added Estonian Locale.
  • [FIX] Small fixes to Greek locale.
  • [FIX] TagalogLocale improvements.
  • [FIX] Added test requirements to setup.
  • [FIX] Improve docs for get, now and utcnow methods.
  • [FIX] Correct typo in depreciation warning.

  • If you want to rebase/retry this PR, check this box

@mend-for-g.yxqyang.asia mend-for-g.yxqyang.asia bot added the security fix Security fix generated by Mend label Apr 16, 2024
@mend-for-g.yxqyang.asia mend-for-g.yxqyang.asia bot changed the title Update dependency arrow to v0.15.1 Update dependency arrow to v0.15.1 - autoclosed Dec 2, 2024
@mend-for-g.yxqyang.asia mend-for-g.yxqyang.asia bot deleted the whitesource-remediate/arrow-0.x branch December 2, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security fix Security fix generated by Mend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants