From b87250c66d6ac9c35c641b141e8ca0608584dd7c Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Thu, 31 Mar 2022 18:44:50 +0300 Subject: [PATCH] textproc/lookatme: do not install tests, fix dependency requirements PR: 262759 --- textproc/lookatme/Makefile | 4 ++++ textproc/lookatme/files/patch-setup.py | 11 +++++++++++ 2 files changed, 15 insertions(+) create mode 100644 textproc/lookatme/files/patch-setup.py diff --git a/textproc/lookatme/Makefile b/textproc/lookatme/Makefile index a7e8ad764020..e922942eda66 100644 --- a/textproc/lookatme/Makefile +++ b/textproc/lookatme/Makefile @@ -1,5 +1,6 @@ PORTNAME= lookatme PORTVERSION= 2.3.2 +PORTREVISION= 1 CATEGORIES= textproc python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -24,6 +25,9 @@ CPE_VENDOR= ${PORTNAME}_project USE_PYTHON= autoplist distutils NO_ARCH= yes +post-patch: + @${REINPLACE_CMD} -e 's|>.*||' ${WRKSRC}/requirements.txt + do-test: @cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs diff --git a/textproc/lookatme/files/patch-setup.py b/textproc/lookatme/files/patch-setup.py new file mode 100644 index 000000000000..5c40eb351db1 --- /dev/null +++ b/textproc/lookatme/files/patch-setup.py @@ -0,0 +1,11 @@ +--- setup.py.orig 2021-05-23 05:55:52 UTC ++++ setup.py +@@ -27,7 +27,7 @@ setup( + long_description=readme, + long_description_content_type="text/markdown", + python_requires=">=3.6", +- packages=find_packages(exclude=["docs", ".gitignore", "README.md"]), ++ packages=find_packages(exclude=["docs", "tests", ".gitignore", "README.md"]), + install_requires=required, + classifiers=[ + "Environment :: Console",