mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
sysutils/iocage: Add test target, no pytest-runner
Move test dependencies to TEST_DEPENDS and add test target. Patch out pytest-runner locally. PR: 251447 Reported by: koobs
This commit is contained in:
parent
0e38a69358
commit
12d8f46d9b
2 changed files with 18 additions and 1 deletions
|
@ -15,7 +15,10 @@ COMMENT= FreeBSD jail manager written in Python3
|
|||
LICENSE= BSD2CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-runner>=2.0.0:devel/py-pytest-runner@${PY_FLAVOR}
|
||||
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}pytest-pep8>0:devel/py-pytest-pep8@${PY_FLAVOR}
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}netifaces>0:net/py-netifaces@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}click>=6.7:devel/py-click@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}tqdm>=4.10.0:misc/py-tqdm@${PY_FLAVOR} \
|
||||
|
@ -54,4 +57,7 @@ GIT_LITE_DESC= depend on lite flavor of devel/git (bare minimum git experience)
|
|||
GIT_RUN_DEPENDS=git:devel/git
|
||||
GIT_LITE_RUN_DEPENDS=git:devel/git@lite
|
||||
|
||||
do-test:
|
||||
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
11
sysutils/iocage/files/patch-setup.py
Normal file
11
sysutils/iocage/files/patch-setup.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- setup.py.orig 2019-09-26 07:23:24 UTC
|
||||
+++ setup.py
|
||||
@@ -58,7 +58,7 @@ setup(
|
||||
'dnspython>=1.15.0',
|
||||
'libzfs'
|
||||
],
|
||||
- setup_requires=['pytest-runner'],
|
||||
+# setup_requires=['pytest-runner'],
|
||||
entry_points={'console_scripts': ['iocage = iocage_lib:cli']},
|
||||
data_files=_data,
|
||||
tests_require=['pytest', 'pytest-cov', 'pytest-pep8']
|
Loading…
Add table
Reference in a new issue