Source-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.6



details:   https://anonhg.NetBSD.org/pkgsrc/rev/174c5e9b2768
branches:  trunk
changeset: 430965:174c5e9b2768
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu May 07 04:56:30 2020 +0000

description:
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>`_.

diffstat:

 time/py-arrow/Makefile |   8 ++++++--
 time/py-arrow/distinfo |  10 +++++-----
 2 files changed, 11 insertions(+), 7 deletions(-)

diffs (44 lines):

diff -r b3a799a3ba93 -r 174c5e9b2768 time/py-arrow/Makefile
--- a/time/py-arrow/Makefile    Thu May 07 04:26:03 2020 +0000
+++ b/time/py-arrow/Makefile    Thu May 07 04:56:30 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.15 2020/01/09 12:06:17 adam Exp $
+# $NetBSD: Makefile,v 1.16 2020/05/07 04:56:30 adam Exp $
 
-DISTNAME=      arrow-0.15.5
+DISTNAME=      arrow-0.15.6
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    time python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=a/arrow/}
@@ -17,6 +17,8 @@
 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
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
 
 .include "../../lang/python/pyversion.mk"
 .if ${_PYTHON_VERSION} == 27
@@ -25,5 +27,7 @@
 
 USE_LANGUAGES= # none
 
+PYSETUPTESTTARGET=     pytest
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r b3a799a3ba93 -r 174c5e9b2768 time/py-arrow/distinfo
--- a/time/py-arrow/distinfo    Thu May 07 04:26:03 2020 +0000
+++ b/time/py-arrow/distinfo    Thu May 07 04:56:30 2020 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.14 2020/01/09 12:06:17 adam Exp $
+$NetBSD: distinfo,v 1.15 2020/05/07 04:56:30 adam Exp $
 
-SHA1 (arrow-0.15.5.tar.gz) = 3424c089ce1c9321e74a30fb3da4c0ae6695db7f
-RMD160 (arrow-0.15.5.tar.gz) = 6de11d49cf2c2ad21ff146418a148e167160beab
-SHA512 (arrow-0.15.5.tar.gz) = cb147a1f2976e6cedddbf2d2d0d5ce69a4a609d4c0c3d68f96b317fc2af334552cb0c1a94aa5bb38e6d74ca7e1beab1ae8a325920a15efd79c35835c92df2409
-Size (arrow-0.15.5.tar.gz) = 82264 bytes
+SHA1 (arrow-0.15.6.tar.gz) = 70339da09a7eef1bef29fc5d47ef2ab5727a7410
+RMD160 (arrow-0.15.6.tar.gz) = 372119a641c1063654f31c71ec2a16657ee8d4c1
+SHA512 (arrow-0.15.6.tar.gz) = c56316f8c535c6f14ccaab32e2559b45309170fd47e8728cdd8c0e2af9398264f90fbdd0ece82d14e3f959d24b186fac3e8bb52cf7a64fe0dcd4c247650c73b5
+Size (arrow-0.15.6.tar.gz) = 83160 bytes



Home | Main Index | Thread Index | Old Index