FreeBSD Bugzilla – Attachment 197357 Details for
Bug 231555
Mk/Uses/python.mk: Add USE_PYTHON=pytest
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
python-pytest.patch (text/plain), 1.47 KB, created by
Yuri Victorovich
on 2018-09-22 17:30:33 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Yuri Victorovich
Created:
2018-09-22 17:30:33 UTC
Size:
1.47 KB
patch
obsolete
>Index: Mk/Uses/python.mk >=================================================================== >--- Mk/Uses/python.mk (revision 480287) >+++ Mk/Uses/python.mk (working copy) >@@ -115,6 +115,9 @@ > # > # noegginfo - Skip an egg-info entry from plist, if defined. > # >+# pytest - Test with pytest, can use PYTEST_ENV and PYTEST_ARGS >+# variables. >+# > # PYTHON_CMD - Python's command line file name, including the > # version number (used for dependencies). > # default: ${PYTHONBASE}/bin/${PYTHON_VERSION} >@@ -195,6 +198,14 @@ > # unless you know what you do. > # default: ${PYTHON_LIBDIR}/site-packages > # >+# PYTEST_ENV - Environment to run pytest in when >+# USE_PYTHON=pytest is used. >+# default: <empty> >+# >+# PYTEST_ARGS - Arguments that are supplied to pytest when >+# USE_PYTHON=pytest is used. >+# default: <empty> >+# > # There are PREFIX-clean variants of the PYTHON_*DIR variables above. > # They are meant to be used by ports instead of the above variables, so the > # ports respect ${PREFIX} (unless USE_PYTHON=pythonprefix is specified). >@@ -597,6 +608,11 @@ > . endfor > .endif > >+.if defined(_PYTHON_FEATURE_PYTEST) >+TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} >+DO_MAKE_TEST= ${SETENV} ${PYTEST_ENV} ${PYTHON_CMD} -m pytest ${PYTEST_ARGS} >+.endif >+ > .if defined(_PYTHON_FEATURE_AUTOPLIST) && defined(_PYTHON_FEATURE_DISTUTILS) > _RELSITELIBDIR= ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;} > _RELLIBDIR= ${PYTHONPREFIX_LIBDIR:S;${PREFIX}/;;}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 231555
:
197313
|
197333
|
197357
|
197361