Lines 115-120
Link Here
|
115 |
# |
115 |
# |
116 |
# noegginfo - Skip an egg-info entry from plist, if defined. |
116 |
# noegginfo - Skip an egg-info entry from plist, if defined. |
117 |
# |
117 |
# |
|
|
118 |
# pytest - Test with pytest, can use PYTEST_ENV and PYTEST_ARGS |
119 |
# variables. |
120 |
# |
118 |
# PYTHON_CMD - Python's command line file name, including the |
121 |
# PYTHON_CMD - Python's command line file name, including the |
119 |
# version number (used for dependencies). |
122 |
# version number (used for dependencies). |
120 |
# default: ${PYTHONBASE}/bin/${PYTHON_VERSION} |
123 |
# default: ${PYTHONBASE}/bin/${PYTHON_VERSION} |
Lines 195-200
Link Here
|
195 |
# unless you know what you do. |
198 |
# unless you know what you do. |
196 |
# default: ${PYTHON_LIBDIR}/site-packages |
199 |
# default: ${PYTHON_LIBDIR}/site-packages |
197 |
# |
200 |
# |
|
|
201 |
# PYTEST_ENV - Environment to run pytest in when |
202 |
# USE_PYTHON=pytest is used. |
203 |
# default: <empty> |
204 |
# |
205 |
# PYTEST_ARGS - Arguments that are supplied to pytest when |
206 |
# USE_PYTHON=pytest is used. |
207 |
# default: <empty> |
208 |
# |
198 |
# There are PREFIX-clean variants of the PYTHON_*DIR variables above. |
209 |
# There are PREFIX-clean variants of the PYTHON_*DIR variables above. |
199 |
# They are meant to be used by ports instead of the above variables, so the |
210 |
# They are meant to be used by ports instead of the above variables, so the |
200 |
# ports respect ${PREFIX} (unless USE_PYTHON=pythonprefix is specified). |
211 |
# ports respect ${PREFIX} (unless USE_PYTHON=pythonprefix is specified). |
Lines 597-602
Link Here
|
597 |
. endfor |
608 |
. endfor |
598 |
.endif |
609 |
.endif |
599 |
|
610 |
|
|
|
611 |
.if defined(_PYTHON_FEATURE_PYTEST) |
612 |
TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} |
613 |
DO_MAKE_TEST= ${SETENV} ${PYTEST_ENV} ${PYTHON_CMD} -m pytest ${PYTEST_ARGS} |
614 |
.endif |
615 |
|
600 |
.if defined(_PYTHON_FEATURE_AUTOPLIST) && defined(_PYTHON_FEATURE_DISTUTILS) |
616 |
.if defined(_PYTHON_FEATURE_AUTOPLIST) && defined(_PYTHON_FEATURE_DISTUTILS) |
601 |
_RELSITELIBDIR= ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;} |
617 |
_RELSITELIBDIR= ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;} |
602 |
_RELLIBDIR= ${PYTHONPREFIX_LIBDIR:S;${PREFIX}/;;} |
618 |
_RELLIBDIR= ${PYTHONPREFIX_LIBDIR:S;${PREFIX}/;;} |