pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/time/py-arrow py-arrow: updated to 0.15.4
details: https://anonhg.NetBSD.org/pkgsrc/rev/56c2322c79c0
branches: trunk
changeset: 417776:56c2322c79c0
user: adam <adam%pkgsrc.org@localhost>
date: Fri Nov 15 14:09:45 2019 +0000
description:
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.
diffstat:
time/py-arrow/Makefile | 9 +++++++--
time/py-arrow/PLIST | 5 ++++-
time/py-arrow/distinfo | 10 +++++-----
3 files changed, 16 insertions(+), 8 deletions(-)
diffs (58 lines):
diff -r f49367401c37 -r 56c2322c79c0 time/py-arrow/Makefile
--- a/time/py-arrow/Makefile Fri Nov 15 14:08:35 2019 +0000
+++ b/time/py-arrow/Makefile Fri Nov 15 14:09:45 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.13 2019/09/06 13:37:14 adam Exp $
+# $NetBSD: Makefile,v 1.14 2019/11/15 14:09:45 adam Exp $
-DISTNAME= arrow-0.14.7
+DISTNAME= arrow-0.15.4
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= time python
MASTER_SITES= ${MASTER_SITE_PYPI:=a/arrow/}
@@ -12,6 +12,11 @@
DEPENDS+= ${PYPKGPREFIX}-dateutil-[0-9]*:../../time/py-dateutil
TEST_DEPENDS+= ${PYPKGPREFIX}-chai-[0-9]*:../../devel/py-chai
+TEST_DEPENDS+= ${PYPKGPREFIX}-dateparser-[0-9]*:../../time/py-dateparser
+TEST_DEPENDS+= ${PYPKGPREFIX}-dateutil-[0-9]*:../../time/py-dateutil
+TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
+TEST_DEPENDS+= ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz
+TEST_DEPENDS+= ${PYPKGPREFIX}-simplejson-[0-9]*:../../converters/py-simplejson
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} == 27
diff -r f49367401c37 -r 56c2322c79c0 time/py-arrow/PLIST
--- a/time/py-arrow/PLIST Fri Nov 15 14:08:35 2019 +0000
+++ b/time/py-arrow/PLIST Fri Nov 15 14:09:45 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2019/08/03 04:35:12 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2019/11/15 14:09:45 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -17,6 +17,9 @@
${PYSITELIB}/arrow/arrow.py
${PYSITELIB}/arrow/arrow.pyc
${PYSITELIB}/arrow/arrow.pyo
+${PYSITELIB}/arrow/constants.py
+${PYSITELIB}/arrow/constants.pyc
+${PYSITELIB}/arrow/constants.pyo
${PYSITELIB}/arrow/factory.py
${PYSITELIB}/arrow/factory.pyc
${PYSITELIB}/arrow/factory.pyo
diff -r f49367401c37 -r 56c2322c79c0 time/py-arrow/distinfo
--- a/time/py-arrow/distinfo Fri Nov 15 14:08:35 2019 +0000
+++ b/time/py-arrow/distinfo Fri Nov 15 14:09:45 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.12 2019/09/06 13:37:14 adam Exp $
+$NetBSD: distinfo,v 1.13 2019/11/15 14:09:45 adam Exp $
-SHA1 (arrow-0.14.7.tar.gz) = 1cc42fa4b71760a9ae209a87251699d1f5410177
-RMD160 (arrow-0.14.7.tar.gz) = d0d51ebce8b16d41d40144a2b67f353419188413
-SHA512 (arrow-0.14.7.tar.gz) = 44ad742d390e6c96a0bdd20cdba5843ae90ece32f26984eaedc7b11f05316f02eb69ae6e4877aa2199abe97b8bdcbd29da66b7f343a7abdf0105899e83ab5b50
-Size (arrow-0.14.7.tar.gz) = 67657 bytes
+SHA1 (arrow-0.15.4.tar.gz) = d861fd4eb713efaaf3644d9259f05ca9cc41743c
+RMD160 (arrow-0.15.4.tar.gz) = afccd4a87568c2d2f359b542fd5da1c2af508386
+SHA512 (arrow-0.15.4.tar.gz) = 905cead77a9a75f9511551aff9923321015d4e1615ea44317333dddbe28837932458a46d5237eacf0566e239225a4aabdd1d419ca294c648c8401bf5d8940383
+Size (arrow-0.15.4.tar.gz) = 77979 bytes
Home |
Main Index |
Thread Index |
Old Index