Sunday, June 09, 2019

devel/py-dnspython - Remove unnecessary python3 dependency on py-typing

This removes the last python3 consumer of py-typing. py-typing is a no-op
for any python 3.x versions we support. All tests still pass for
py-dnspython for both flavors.

Once this is done, I can remove the python3 flavor of py-typing completely.

--Kurt

Index: Makefile
===================================================================
RCS file: /cvs/ports/net/py-dnspython/Makefile,v
retrieving revision 1.27
diff -u -p -r1.27 Makefile
--- Makefile 28 Apr 2019 20:51:44 -0000 1.27
+++ Makefile 9 Jun 2019 18:34:05 -0000
@@ -3,7 +3,7 @@
COMMENT= DNS toolkit for Python

MODPY_EGG_VERSION= 1.16.0
-REVISION= 1
+REVISION= 2
DISTNAME= dnspython-${MODPY_EGG_VERSION}
PKGNAME= py-${DISTNAME}
CATEGORIES= net
@@ -22,8 +22,11 @@ MODULES= lang/python
MODPY_SETUPTOOLS= Yes
MODPY_ADJ_FILES= examples/*.py

-TEST_DEPENDS= devel/py-typing${MODPY_FLAVOR} \
- security/py-ecdsa${MODPY_FLAVOR}
+TEST_DEPENDS= security/py-ecdsa${MODPY_FLAVOR}
+
+.if !${FLAVOR:Mpython3}
+TEST_DEPENDS+= devel/py-typing
+.endif

post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/${MODPY_PY_PREFIX}dnspython

No comments:

Post a Comment