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 1.2.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/64d051171778
branches:  trunk
changeset: 381671:64d051171778
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Jul 11 13:32:24 2022 +0000

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

diffstat:

 time/py-arrow/Makefile |  28 ++++++++++++++--------------
 time/py-arrow/PLIST    |   3 ++-
 time/py-arrow/distinfo |   8 ++++----
 3 files changed, 20 insertions(+), 19 deletions(-)

diffs (81 lines):

diff -r 7e4f04e88145 -r 64d051171778 time/py-arrow/Makefile
--- a/time/py-arrow/Makefile    Mon Jul 11 13:31:46 2022 +0000
+++ b/time/py-arrow/Makefile    Mon Jul 11 13:32:24 2022 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.19 2022/01/04 20:55:11 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2022/07/11 13:32:24 adam Exp $
 
-DISTNAME=      arrow-0.15.8
+DISTNAME=      arrow-1.2.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    time python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=a/arrow/}
 
@@ -11,24 +10,25 @@
 COMMENT=       Better dates and times for Python
 LICENSE=       apache-2.0
 
-DEPENDS+=      ${PYPKGPREFIX}-dateutil-[0-9]*:../../time/py-dateutil
-TEST_DEPENDS+= ${PYPKGPREFIX}-chai-[0-9]*:../../devel/py-chai
+DEPENDS+=      ${PYPKGPREFIX}-dateutil>=2.7.0:../../time/py-dateutil
 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
+TEST_DEPENDS+= ${PYPKGPREFIX}-pytz>=2021.1:../../time/py-pytz
+TEST_DEPENDS+= ${PYPKGPREFIX}-simplejson>=3.0.0:../../converters/py-simplejson
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-mock-[0-9]*:../../devel/py-test-mock
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
 
-.include "../../lang/python/pyversion.mk"
-.if ${_PYTHON_VERSION} == 27
-DEPENDS+=      ${PYPKGPREFIX}-backports.functools_lru_cache>=1.2.1:../../devel/py-backports.functools_lru_cache
-.endif
-
 USE_LANGUAGES= # none
 
 PYSETUPTESTTARGET=     pytest
 
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} == 37
+DEPENDS+=      ${PYPKGPREFIX}-typing-extensions-[0-9]*:../../devel/py-typing-extensions
+.endif
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 7e4f04e88145 -r 64d051171778 time/py-arrow/PLIST
--- a/time/py-arrow/PLIST       Mon Jul 11 13:31:46 2022 +0000
+++ b/time/py-arrow/PLIST       Mon Jul 11 13:32:24 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2019/11/15 14:09:45 adam Exp $
+@comment $NetBSD: PLIST,v 1.4 2022/07/11 13:32:24 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -32,6 +32,7 @@
 ${PYSITELIB}/arrow/parser.py
 ${PYSITELIB}/arrow/parser.pyc
 ${PYSITELIB}/arrow/parser.pyo
+${PYSITELIB}/arrow/py.typed
 ${PYSITELIB}/arrow/util.py
 ${PYSITELIB}/arrow/util.pyc
 ${PYSITELIB}/arrow/util.pyo
diff -r 7e4f04e88145 -r 64d051171778 time/py-arrow/distinfo
--- a/time/py-arrow/distinfo    Mon Jul 11 13:31:46 2022 +0000
+++ b/time/py-arrow/distinfo    Mon Jul 11 13:32:24 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.19 2021/10/26 11:24:32 nia Exp $
+$NetBSD: distinfo,v 1.20 2022/07/11 13:32:24 adam Exp $
 
-BLAKE2s (arrow-0.15.8.tar.gz) = 9b1b9bec597bf6c6c37047dae47a04958b8a2bfb8653f86b221d437dcc1598e7
-SHA512 (arrow-0.15.8.tar.gz) = 93d161cbeb48636f2e3f91ebcc51cddbb3b21175ae31f5d9251a22358c7d1934663a8e47a82efd8773bf30c28efefcd8d2a3baf581fe191777cd41f12f29d4d2
-Size (arrow-0.15.8.tar.gz) = 92220 bytes
+BLAKE2s (arrow-1.2.2.tar.gz) = d2bbb30c040c6b193f129490ab3aa2211c017d4b96ff7e0c6fcff02849172bcf
+SHA512 (arrow-1.2.2.tar.gz) = f88afa9a0bc967e8731a7bf1712ecf3810f12ade9cc53a94a74efd3ece750f37bea7541a054eb9acd12b99b4a6d32687eab4eae20a6f49b2c2d6f1b499221542
+Size (arrow-1.2.2.tar.gz) = 123174 bytes



Home | Main Index | Thread Index | Old Index