Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Dec 2020 12:12:55 +0000 (UTC)
From:      Kai Knoblich <kai@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r558222 - in head/textproc/py-normality: . files
Message-ID:  <202012161212.0BGCCtLP091200@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kai
Date: Wed Dec 16 12:12:55 2020
New Revision: 558222
URL: https://svnweb.freebsd.org/changeset/ports/558222

Log:
  textproc/py-normality: Update to 2.1.1
  
  * Switch to GitHub for a while to make use of the test suite.
  
  * Add default option ICU to reflect the requirements given in setup.py.
  
  * Also add a workaround to avoid configure/build errors with Python < 3.7.
  
  Changelog since 1.0.0:
  
  https://github.com/pudo/normality/compare/1.0.0...2.1.1

Added:
  head/textproc/py-normality/files/
  head/textproc/py-normality/files/patch-setup.py   (contents, props changed)
Modified:
  head/textproc/py-normality/Makefile
  head/textproc/py-normality/distinfo   (contents, props changed)

Modified: head/textproc/py-normality/Makefile
==============================================================================
--- head/textproc/py-normality/Makefile	Wed Dec 16 11:53:05 2020	(r558221)
+++ head/textproc/py-normality/Makefile	Wed Dec 16 12:12:55 2020	(r558222)
@@ -1,9 +1,8 @@
 # $FreeBSD$
 
 PORTNAME=	normality
-DISTVERSION=	1.0.0
+DISTVERSION=	2.1.1
 CATEGORIES=	textproc python
-MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	kai@FreeBSD.org
@@ -12,18 +11,31 @@ COMMENT=	Micro-library to normalize text strings
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}six>=1.11.0:devel/py-six@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}banal>=0.4.1:devel/py-banal@${PY_FLAVOR} \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}banal>=1.0.1:devel/py-banal@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}chardet>=0:textproc/py-chardet@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pyicu>=1.9.3:devel/py-pyicu@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}text-unidecode>=0:converters/py-text-unidecode@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
 
 USES=		python:3.5+
+USE_GITHUB=	yes
+GH_ACCOUNT=	pudo
 USE_PYTHON=	distutils autoplist
 
 NO_ARCH=	yes
 
-post-extract:
-	# Prevents that the tests directory will be installed into site-packages
-	@(cd ${WRKSRC} && ${MV} tests test)
+OPTIONS_DEFINE=		ICU
+OPTIONS_DEFAULT=	ICU
 
-.include <bsd.port.mk>
+ICU_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyicu>=1.9.3:devel/py-pyicu@${PY_FLAVOR}
+
+.include <bsd.port.pre.mk>
+# Set a locale to avoid build/configure errors.  The UTF-8 mode is enabled by
+# default when the locale is C since Python 3.7.
+.if ${PYTHON_REL} < 3700
+USE_LOCALE=	en_US.UTF-8
+.endif
+
+do-test:
+	@cd ${WRKSRC} && ${SET_ENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
+
+.include <bsd.port.post.mk>

Modified: head/textproc/py-normality/distinfo
==============================================================================
--- head/textproc/py-normality/distinfo	Wed Dec 16 11:53:05 2020	(r558221)
+++ head/textproc/py-normality/distinfo	Wed Dec 16 12:12:55 2020	(r558222)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1553384072
-SHA256 (normality-1.0.0.tar.gz) = 94c1f8f72c14ffc82296351fafba70bcfdc6b4c79bc385318de1b1fbe9985b22
-SIZE (normality-1.0.0.tar.gz) = 7608
+TIMESTAMP = 1607595816
+SHA256 (pudo-normality-2.1.1_GH0.tar.gz) = 26aa1cd461344eb717d8b12f844003ff44ccb9a514c6c03322f355fe4f7e2222
+SIZE (pudo-normality-2.1.1_GH0.tar.gz) = 8485

Added: head/textproc/py-normality/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/py-normality/files/patch-setup.py	Wed Dec 16 12:12:55 2020	(r558222)
@@ -0,0 +1,14 @@
+Really exclude "tests" directory to be installed into
+${PYTHONPREFIX_SITELIBDIR}
+
+--- setup.py.orig	2020-06-21 09:47:38 UTC
++++ setup.py
+@@ -24,7 +24,7 @@ setup(
+     url='http://github.com/pudo/normality',
+     license='MIT',
+     package_data={'banal': ['py.typed']},
+-    packages=find_packages(exclude=['ez_setup', 'examples', 'test']),
++    packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
+     namespace_packages=[],
+     include_package_data=True,
+     zip_safe=False,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012161212.0BGCCtLP091200>