textproc/lookatme: do not install tests, fix dependency requirements

PR:		262759
This commit is contained in:
Dmitry Marakasov 2022-03-31 18:44:50 +03:00
parent 7059a13adc
commit b87250c66d
2 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -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",