pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/time/py-arrow



Module Name:    pkgsrc
Committed By:   adam
Date:           Fri Nov 15 14:09:45 UTC 2019

Modified Files:
        pkgsrc/time/py-arrow: Makefile PLIST distinfo

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/time/py-arrow/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/time/py-arrow/PLIST
cvs rdiff -u -r1.12 -r1.13 pkgsrc/time/py-arrow/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/time/py-arrow/Makefile
diff -u pkgsrc/time/py-arrow/Makefile:1.13 pkgsrc/time/py-arrow/Makefile:1.14
--- pkgsrc/time/py-arrow/Makefile:1.13  Fri Sep  6 13:37:14 2019
+++ pkgsrc/time/py-arrow/Makefile       Fri Nov 15 14:09:45 2019
@@ -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 @@ LICENSE=     apache-2.0
 
 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

Index: pkgsrc/time/py-arrow/PLIST
diff -u pkgsrc/time/py-arrow/PLIST:1.2 pkgsrc/time/py-arrow/PLIST:1.3
--- pkgsrc/time/py-arrow/PLIST:1.2      Sat Aug  3 04:35:12 2019
+++ pkgsrc/time/py-arrow/PLIST  Fri Nov 15 14:09:45 2019
@@ -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/api.pyo
 ${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

Index: pkgsrc/time/py-arrow/distinfo
diff -u pkgsrc/time/py-arrow/distinfo:1.12 pkgsrc/time/py-arrow/distinfo:1.13
--- pkgsrc/time/py-arrow/distinfo:1.12  Fri Sep  6 13:37:14 2019
+++ pkgsrc/time/py-arrow/distinfo       Fri Nov 15 14:09:45 2019
@@ -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