Python3 support for YQL backend (Arcadia)
@@ -2059,6 +2059,12 @@ module YQL_PYTHON3_UDF: YQL_UDF_MODULE {
SET(EXPORTS_FILE $YQL_PYTHON_UDF_EXPORT)
}
+macro _MAKE_YQL_PYTHON_UDF_TEST() {
+ PEERDIR(library/python/pytest)
+ DEPENDS(yql/tools/run_python_udf)
+ SETUP_PYTEST_BIN(RUNNER_BIN $(BUILD_ROOT)/yql/tools/run_python_udf/run_python_udf)
+}
+
### @usage: YQL_PYTHON_UDF_TEST(name)
###
### The Python test for Python YQL UDF (Python User Defined Function for YQL). The code should be a proper YQL_PYTHON_UDF.
@@ -2071,9 +2077,20 @@ module YQL_PYTHON3_UDF: YQL_UDF_MODULE {
###
### @see: [YQL_PYTHON_UDF()](#module_YQL_PYTHON_UDF)
module YQL_PYTHON_UDF_TEST: YQL_PYTHON_UDF {
- PEERDIR(library/python/pytest)
- DEPENDS(yql/tools/run_python_udf)
- SETUP_PYTEST_BIN(RUNNER_BIN $(BUILD_ROOT)/yql/tools/run_python_udf/run_python_udf)
+ _MAKE_YQL_PYTHON_UDF_TEST()
+}
+
+### @usage: YQL_PYTHON3_UDF_TEST(name)
+###
+### The Python test for Python 3.x YQL UDF (User Defined Function for YQL). The code should be a proper YQL_PYTHON3_UDF.
+###
+### This module will basically build itself as UDF and run as test using yql/tools/run_python_udf/run_python_udf tool.
+###
+### Documentation: https://yql.yandex-team.ru/docs/yt/udf/python/
+###
+### @see: [YQL_PYTHON3_UDF()](#module_YQL_PYTHON3_UDF)
+module YQL_PYTHON3_UDF_TEST: YQL_PYTHON3_UDF {
+ _MAKE_YQL_PYTHON_UDF_TEST()
}
# as SRCS in packages use macro BUNDLE_SRCS!
