tempita: run 2to3 in post-patch instead of using setuptools use_2to3 which

is going away

tests fail the same as they did before..
This commit is contained in:
sthen 2022-08-15 23:00:14 +00:00
parent d1613520ba
commit 40e0752a76
2 changed files with 14 additions and 2 deletions

View File

@ -3,7 +3,7 @@ COMMENT = very small text templating language
MODPY_EGG_VERSION = 0.5.2
DISTNAME = Tempita-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME:L}
REVISION = 6
REVISION = 7
CATEGORIES = www
@ -23,7 +23,10 @@ MODPY_SETUPTOOLS = Yes
TEST_DEPENDS = devel/py-nose${MODPY_FLAVOR}
post-patch:
cd ${WRKSRC}; 2to3 -w tempita/*py
do-test:
cd ${WRKSRC} && ${LOCALBASE}/bin/nosetests${MODPY_BIN_SUFFIX}
cd ${WRKSRC}; ${LOCALBASE}/bin/nosetests${MODPY_BIN_SUFFIX}
.include <bsd.port.mk>

View File

@ -0,0 +1,9 @@
Index: setup.py
--- setup.py.orig
+++ setup.py
@@ -36,5 +36,4 @@ more to learn about it.
test_suite='nose.collector',
include_package_data=True,
zip_safe=True,
- use_2to3=True,
)