Update py-humanize to the 1.0.0 release. Tests are not included in the pypi tarball. Also, they merged my diff making py-mock unnecessary for the python3 flavor.
Changes are largely localization, but there's a few minor fixes. Only consumer is tootstream which still works. ok? --Kurt Index: Makefile =================================================================== RCS file: /cvs/ports/textproc/py-humanize/Makefile,v retrieving revision 1.4 diff -u -p -r1.4 Makefile --- Makefile 9 Sep 2019 21:36:14 -0000 1.4 +++ Makefile 9 Feb 2020 21:19:31 -0000 @@ -2,10 +2,9 @@ COMMENT = python number humanization utilities -MODPY_EGG_VERSION = 0.5.1 +MODPY_EGG_VERSION = 1.0.0 DISTNAME = humanize-${MODPY_EGG_VERSION} PKGNAME = py-humanize-${MODPY_EGG_VERSION} -REVISION = 1 CATEGORIES = textproc @@ -19,13 +18,18 @@ PERMIT_PACKAGE = Yes MODULES = lang/python MODPY_SETUPTOOLS = Yes MODPY_PI = Yes +MODPY_PYTEST = Yes FLAVORS = python3 FLAVOR ?= -# Tests aren't included in pypi distribution -NO_TEST = Yes +BUILD_DEPENDS = devel/py-setuptools_scm${MODPY_FLAVOR} +TEST_DEPENDS = devel/py-freezegun${MODPY_FLAVOR} -TEST_DEPENDS = devel/py-mock${MODPY_FLAVOR} +TEST_ENV = PYTHONPATH=${WRKSRC}/src + +.if !${FLAVOR:Mpython3} +TEST_DEPENDS += devel/py-mock +.endif .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/textproc/py-humanize/distinfo,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 distinfo --- distinfo 3 Apr 2019 02:30:05 -0000 1.1.1.1 +++ distinfo 9 Feb 2020 21:19:31 -0000 @@ -1,2 +1,2 @@ -SHA256 (humanize-0.5.1.tar.gz) = pD9XEVgxrHxw3gmOasRqwTvgDWmrv2C9ysJRNEeFuxk= -SIZE (humanize-0.5.1.tar.gz) = 14250 +SHA256 (humanize-1.0.0.tar.gz) = OKzptmvK63+Bhrnb8LNEjgAUjltPuvcm+Wx4nlLD50E= +SIZE (humanize-1.0.0.tar.gz) = 34411 Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/textproc/py-humanize/pkg/PLIST,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 PLIST --- pkg/PLIST 3 Apr 2019 02:30:05 -0000 1.1.1.1 +++ pkg/PLIST 9 Feb 2020 21:19:31 -0000 @@ -4,11 +4,11 @@ lib/python${MODPY_VERSION}/site-packages lib/python${MODPY_VERSION}/site-packages/humanize-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO lib/python${MODPY_VERSION}/site-packages/humanize-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt lib/python${MODPY_VERSION}/site-packages/humanize-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt -lib/python${MODPY_VERSION}/site-packages/humanize-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/entry_points.txt lib/python${MODPY_VERSION}/site-packages/humanize-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/not-zip-safe +lib/python${MODPY_VERSION}/site-packages/humanize-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt lib/python${MODPY_VERSION}/site-packages/humanize-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt lib/python${MODPY_VERSION}/site-packages/humanize/__init__.py -${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/humanize/${MODPY_PYCACHE} +${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/humanize/${MODPY_PYCACHE}/ lib/python${MODPY_VERSION}/site-packages/humanize/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc lib/python${MODPY_VERSION}/site-packages/humanize/${MODPY_PYCACHE}compat.${MODPY_PYC_MAGIC_TAG}pyc lib/python${MODPY_VERSION}/site-packages/humanize/${MODPY_PYCACHE}filesize.${MODPY_PYC_MAGIC_TAG}pyc @@ -19,17 +19,65 @@ lib/python${MODPY_VERSION}/site-packages lib/python${MODPY_VERSION}/site-packages/humanize/filesize.py lib/python${MODPY_VERSION}/site-packages/humanize/i18n.py lib/python${MODPY_VERSION}/site-packages/humanize/locale/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/de_DE/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/de_DE/LC_MESSAGES/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/de_DE/LC_MESSAGES/humanize.mo +lib/python${MODPY_VERSION}/site-packages/humanize/locale/de_DE/LC_MESSAGES/humanize.po +lib/python${MODPY_VERSION}/site-packages/humanize/locale/fa_IR/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/fa_IR/LC_MESSAGES/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/fa_IR/LC_MESSAGES/humanize.mo +lib/python${MODPY_VERSION}/site-packages/humanize/locale/fa_IR/LC_MESSAGES/humanize.po +lib/python${MODPY_VERSION}/site-packages/humanize/locale/fi_FI/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/fi_FI/LC_MESSAGES/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/fi_FI/LC_MESSAGES/humanize.mo +lib/python${MODPY_VERSION}/site-packages/humanize/locale/fi_FI/LC_MESSAGES/humanize.po lib/python${MODPY_VERSION}/site-packages/humanize/locale/fr_FR/ lib/python${MODPY_VERSION}/site-packages/humanize/locale/fr_FR/LC_MESSAGES/ lib/python${MODPY_VERSION}/site-packages/humanize/locale/fr_FR/LC_MESSAGES/humanize.mo lib/python${MODPY_VERSION}/site-packages/humanize/locale/fr_FR/LC_MESSAGES/humanize.po +lib/python${MODPY_VERSION}/site-packages/humanize/locale/id_ID/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/id_ID/LC_MESSAGES/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/id_ID/LC_MESSAGES/humanize.mo +lib/python${MODPY_VERSION}/site-packages/humanize/locale/id_ID/LC_MESSAGES/humanize.po +lib/python${MODPY_VERSION}/site-packages/humanize/locale/it_IT/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/it_IT/LC_MESSAGES/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/it_IT/LC_MESSAGES/humanize.mo +lib/python${MODPY_VERSION}/site-packages/humanize/locale/it_IT/LC_MESSAGES/humanize.po +lib/python${MODPY_VERSION}/site-packages/humanize/locale/ja_JP/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/ja_JP/LC_MESSAGES/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/ja_JP/LC_MESSAGES/humanize.mo +lib/python${MODPY_VERSION}/site-packages/humanize/locale/ja_JP/LC_MESSAGES/humanize.po lib/python${MODPY_VERSION}/site-packages/humanize/locale/ko_KR/ lib/python${MODPY_VERSION}/site-packages/humanize/locale/ko_KR/LC_MESSAGES/ lib/python${MODPY_VERSION}/site-packages/humanize/locale/ko_KR/LC_MESSAGES/humanize.mo lib/python${MODPY_VERSION}/site-packages/humanize/locale/ko_KR/LC_MESSAGES/humanize.po +lib/python${MODPY_VERSION}/site-packages/humanize/locale/nl_NL/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/nl_NL/LC_MESSAGES/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/nl_NL/LC_MESSAGES/humanize.mo +lib/python${MODPY_VERSION}/site-packages/humanize/locale/nl_NL/LC_MESSAGES/humanize.po +lib/python${MODPY_VERSION}/site-packages/humanize/locale/pt_BR/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/pt_BR/LC_MESSAGES/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/pt_BR/LC_MESSAGES/humanize.mo +lib/python${MODPY_VERSION}/site-packages/humanize/locale/pt_BR/LC_MESSAGES/humanize.po lib/python${MODPY_VERSION}/site-packages/humanize/locale/ru_RU/ lib/python${MODPY_VERSION}/site-packages/humanize/locale/ru_RU/LC_MESSAGES/ lib/python${MODPY_VERSION}/site-packages/humanize/locale/ru_RU/LC_MESSAGES/humanize.mo lib/python${MODPY_VERSION}/site-packages/humanize/locale/ru_RU/LC_MESSAGES/humanize.po +lib/python${MODPY_VERSION}/site-packages/humanize/locale/sk_SK/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/sk_SK/LC_MESSAGES/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/sk_SK/LC_MESSAGES/humanize.mo +lib/python${MODPY_VERSION}/site-packages/humanize/locale/sk_SK/LC_MESSAGES/humanize.po +lib/python${MODPY_VERSION}/site-packages/humanize/locale/tr_TR/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/tr_TR/LC_MESSAGES/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/tr_TR/LC_MESSAGES/humanize.mo +lib/python${MODPY_VERSION}/site-packages/humanize/locale/tr_TR/LC_MESSAGES/humanize.po +lib/python${MODPY_VERSION}/site-packages/humanize/locale/vi_VI/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/vi_VI/LC_MESSAGES/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/vi_VI/LC_MESSAGES/humanize.mo +lib/python${MODPY_VERSION}/site-packages/humanize/locale/vi_VI/LC_MESSAGES/humanize.po +lib/python${MODPY_VERSION}/site-packages/humanize/locale/zh_CN/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/zh_CN/LC_MESSAGES/ +lib/python${MODPY_VERSION}/site-packages/humanize/locale/zh_CN/LC_MESSAGES/humanize.mo +lib/python${MODPY_VERSION}/site-packages/humanize/locale/zh_CN/LC_MESSAGES/humanize.po lib/python${MODPY_VERSION}/site-packages/humanize/number.py lib/python${MODPY_VERSION}/site-packages/humanize/time.py