summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2022-07-11 13:32:24 +0000
committeradam <adam@pkgsrc.org>2022-07-11 13:32:24 +0000
commit7b33e89f5b8bda4d67e0e94867dbd9d30bc43196 (patch)
tree5e55f7d1a01cb2219fdc7609313c9e1ae7dbe79c
parent8909b1a4665c46367f0a4e8f213255c9ce9ce8ad (diff)
downloadpkgsrc-7b33e89f5b8bda4d67e0e94867dbd9d30bc43196.tar.gz
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.
-rw-r--r--time/py-arrow/Makefile28
-rw-r--r--time/py-arrow/PLIST3
-rw-r--r--time/py-arrow/distinfo8
3 files changed, 20 insertions, 19 deletions
diff --git a/time/py-arrow/Makefile b/time/py-arrow/Makefile
index bc8e0923a1b..23178cf295c 100644
--- a/time/py-arrow/Makefile
+++ b/time/py-arrow/Makefile
@@ -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 @@ HOMEPAGE= https://github.com/arrow-py/arrow
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 --git a/time/py-arrow/PLIST b/time/py-arrow/PLIST
index f24cd20dfc1..3c29d2a4b1a 100644
--- a/time/py-arrow/PLIST
+++ b/time/py-arrow/PLIST
@@ -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/locales.pyo
${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 --git a/time/py-arrow/distinfo b/time/py-arrow/distinfo
index 4368697b773..b6b507adb51 100644
--- a/time/py-arrow/distinfo
+++ b/time/py-arrow/distinfo
@@ -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