aboutsummaryrefslogtreecommitdiffstats
path: root/library/python
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2023-06-13 11:05:01 +0300
committeralexv-smirnov <alex@ydb.tech>2023-06-13 11:05:01 +0300
commitbf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0 (patch)
tree1d1df72c0541a59a81439842f46d95396d3e7189 /library/python
parent8bfdfa9a9bd19bddbc58d888e180fbd1218681be (diff)
downloadydb-bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0.tar.gz
add ymake export to ydb
Diffstat (limited to 'library/python')
-rw-r--r--library/python/certifi/ya.make16
-rw-r--r--library/python/cores/ya.make10
-rw-r--r--library/python/filelock/ya.make9
-rw-r--r--library/python/find_root/ya.make5
-rw-r--r--library/python/fs/test/ya.make12
-rw-r--r--library/python/fs/ya.make21
-rw-r--r--library/python/func/ut/ya.make9
-rw-r--r--library/python/func/ya.make9
-rw-r--r--library/python/import_test/ya.make9
-rw-r--r--library/python/pytest/plugins/ya.make32
-rw-r--r--library/python/pytest/ut/ya.make14
-rw-r--r--library/python/pytest/ya.make36
-rw-r--r--library/python/reservoir_sampling/ya.make5
-rw-r--r--library/python/resource/ut/lib/ya.make15
-rw-r--r--library/python/resource/ut/py2/ya.make7
-rw-r--r--library/python/resource/ut/py3/ya.make7
-rw-r--r--library/python/resource/ut/ya.make4
-rw-r--r--library/python/resource/ya.make11
-rw-r--r--library/python/strings/ut/ya.make11
-rw-r--r--library/python/strings/ya.make20
-rw-r--r--library/python/svn_version/ya.make13
-rw-r--r--library/python/symbols/libc/ya.make17
-rw-r--r--library/python/symbols/module/ya.make21
-rw-r--r--library/python/symbols/python/ut/py2/ya.make7
-rw-r--r--library/python/symbols/python/ut/py3/ya.make7
-rw-r--r--library/python/symbols/python/ut/ya.make14
-rw-r--r--library/python/symbols/python/ya.make13
-rw-r--r--library/python/symbols/registry/ya.make7
-rw-r--r--library/python/symbols/win_unicode_console/ya.make11
-rw-r--r--library/python/testing/filter/ya.make4
-rw-r--r--library/python/testing/import_test/ya.make5
-rw-r--r--library/python/testing/recipe/ya.make14
-rw-r--r--library/python/testing/yatest_common/ya.make38
-rw-r--r--library/python/testing/yatest_common_standalone/ya.make15
-rw-r--r--library/python/testing/yatest_lib/tests/ya.make12
-rw-r--r--library/python/testing/yatest_lib/ya.make24
-rw-r--r--library/python/tmp/ya.make12
-rw-r--r--library/python/unique_id/ya.make5
-rw-r--r--library/python/windows/ya.make11
39 files changed, 512 insertions, 0 deletions
diff --git a/library/python/certifi/ya.make b/library/python/certifi/ya.make
new file mode 100644
index 0000000000..ba8f150ea0
--- /dev/null
+++ b/library/python/certifi/ya.make
@@ -0,0 +1,16 @@
+PY23_LIBRARY()
+
+RESOURCE_FILES(
+ PREFIX library/python/certifi/
+ .dist-info/METADATA
+ .dist-info/top_level.txt
+)
+
+PY_SRCS(
+ TOP_LEVEL
+ certifi/__init__.py
+ certifi/binary.py
+ certifi/source.py
+)
+
+END()
diff --git a/library/python/cores/ya.make b/library/python/cores/ya.make
new file mode 100644
index 0000000000..0a828cb58b
--- /dev/null
+++ b/library/python/cores/ya.make
@@ -0,0 +1,10 @@
+PY23_LIBRARY()
+
+PY_SRCS(__init__.py)
+
+PEERDIR(
+ contrib/python/six
+ library/python/reservoir_sampling
+)
+
+END()
diff --git a/library/python/filelock/ya.make b/library/python/filelock/ya.make
new file mode 100644
index 0000000000..00302eb3d8
--- /dev/null
+++ b/library/python/filelock/ya.make
@@ -0,0 +1,9 @@
+PY23_LIBRARY()
+
+PY_SRCS(__init__.py)
+
+PEERDIR(
+ library/python/windows
+)
+
+END()
diff --git a/library/python/find_root/ya.make b/library/python/find_root/ya.make
new file mode 100644
index 0000000000..3582136180
--- /dev/null
+++ b/library/python/find_root/ya.make
@@ -0,0 +1,5 @@
+PY23_LIBRARY()
+
+PY_SRCS(__init__.py)
+
+END()
diff --git a/library/python/fs/test/ya.make b/library/python/fs/test/ya.make
new file mode 100644
index 0000000000..e5e1b738b6
--- /dev/null
+++ b/library/python/fs/test/ya.make
@@ -0,0 +1,12 @@
+PY23_TEST()
+
+TEST_SRCS(
+ test_fs.py
+)
+
+PEERDIR(
+ library/python/fs
+ library/python/tmp
+)
+
+END()
diff --git a/library/python/fs/ya.make b/library/python/fs/ya.make
new file mode 100644
index 0000000000..836f49b6d8
--- /dev/null
+++ b/library/python/fs/ya.make
@@ -0,0 +1,21 @@
+PY23_LIBRARY()
+
+PY_SRCS(
+ __init__.py
+)
+
+IF (OS_DARWIN)
+ PY_SRCS(
+ clonefile.pyx
+ )
+ENDIF()
+
+PEERDIR(
+ library/python/func
+ library/python/strings
+ library/python/windows
+)
+
+END()
+
+RECURSE_FOR_TESTS(test)
diff --git a/library/python/func/ut/ya.make b/library/python/func/ut/ya.make
new file mode 100644
index 0000000000..4e8f326de7
--- /dev/null
+++ b/library/python/func/ut/ya.make
@@ -0,0 +1,9 @@
+PY23_TEST()
+
+TEST_SRCS(test_func.py)
+
+PEERDIR(
+ library/python/func
+)
+
+END()
diff --git a/library/python/func/ya.make b/library/python/func/ya.make
new file mode 100644
index 0000000000..47ab634913
--- /dev/null
+++ b/library/python/func/ya.make
@@ -0,0 +1,9 @@
+PY23_LIBRARY()
+
+PY_SRCS(__init__.py)
+
+END()
+
+RECURSE_FOR_TESTS(
+ ut
+)
diff --git a/library/python/import_test/ya.make b/library/python/import_test/ya.make
new file mode 100644
index 0000000000..11e098cfe6
--- /dev/null
+++ b/library/python/import_test/ya.make
@@ -0,0 +1,9 @@
+PY23_LIBRARY()
+
+PY_SRCS(__init__.py)
+
+PEERDIR(
+ library/python/testing/import_test
+)
+
+END()
diff --git a/library/python/pytest/plugins/ya.make b/library/python/pytest/plugins/ya.make
new file mode 100644
index 0000000000..41e20f6e2f
--- /dev/null
+++ b/library/python/pytest/plugins/ya.make
@@ -0,0 +1,32 @@
+PY23_LIBRARY()
+
+PY_SRCS(
+ ya.py
+ collection.py
+ conftests.py
+ fixtures.py
+ metrics.py
+)
+
+PEERDIR(
+ library/python/filelock
+ library/python/find_root
+ library/python/testing/filter
+ library/python/testing/yatest_common
+)
+
+IF (PYTHON2)
+ PY_SRCS(
+ fakeid_py2.py
+ )
+
+ PEERDIR(
+ contrib/deprecated/python/faulthandler
+ )
+ELSE()
+ PY_SRCS(
+ fakeid_py3.py
+ )
+ENDIF()
+
+END()
diff --git a/library/python/pytest/ut/ya.make b/library/python/pytest/ut/ya.make
new file mode 100644
index 0000000000..bb94c24c70
--- /dev/null
+++ b/library/python/pytest/ut/ya.make
@@ -0,0 +1,14 @@
+PY23_TEST()
+
+TEST_SRCS(
+ test_tools.py
+)
+
+PEERDIR(
+ contrib/python/pytest-mock
+ library/python/pytest
+)
+
+STYLE_PYTHON()
+
+END()
diff --git a/library/python/pytest/ya.make b/library/python/pytest/ya.make
new file mode 100644
index 0000000000..b04788cc47
--- /dev/null
+++ b/library/python/pytest/ya.make
@@ -0,0 +1,36 @@
+PY23_LIBRARY()
+
+PY_SRCS(
+ __init__.py
+ config.py
+ context.py
+ main.py
+ rewrite.py
+ yatest_tools.py
+)
+
+PEERDIR(
+ contrib/python/python-dateutil
+ contrib/python/ipdb
+ contrib/python/py
+ contrib/python/pytest
+ contrib/python/requests
+ library/python/pytest/plugins
+ library/python/testing/yatest_common
+ library/python/testing/yatest_lib
+)
+
+IF (NOT OPENSOURCE)
+ PEERDIR(contrib/tools/gprof2dot)
+ENDIF()
+
+RESOURCE_FILES(
+ PREFIX library/python/pytest/
+ pytest.yatest.ini
+)
+
+END()
+
+RECURSE_FOR_TESTS(
+ ut
+)
diff --git a/library/python/reservoir_sampling/ya.make b/library/python/reservoir_sampling/ya.make
new file mode 100644
index 0000000000..3582136180
--- /dev/null
+++ b/library/python/reservoir_sampling/ya.make
@@ -0,0 +1,5 @@
+PY23_LIBRARY()
+
+PY_SRCS(__init__.py)
+
+END()
diff --git a/library/python/resource/ut/lib/ya.make b/library/python/resource/ut/lib/ya.make
new file mode 100644
index 0000000000..f5e28cad29
--- /dev/null
+++ b/library/python/resource/ut/lib/ya.make
@@ -0,0 +1,15 @@
+PY23_LIBRARY()
+
+TEST_SRCS(test_simple.py)
+
+PEERDIR(
+ library/python/resource
+)
+
+RESOURCE(
+ qw.txt /qw.txt
+ qw.txt /prefix/1.txt
+ qw.txt /prefix/2.txt
+)
+
+END()
diff --git a/library/python/resource/ut/py2/ya.make b/library/python/resource/ut/py2/ya.make
new file mode 100644
index 0000000000..073e4a68ac
--- /dev/null
+++ b/library/python/resource/ut/py2/ya.make
@@ -0,0 +1,7 @@
+PY2TEST()
+
+PEERDIR(
+ library/python/resource/ut/lib
+)
+
+END()
diff --git a/library/python/resource/ut/py3/ya.make b/library/python/resource/ut/py3/ya.make
new file mode 100644
index 0000000000..6525628592
--- /dev/null
+++ b/library/python/resource/ut/py3/ya.make
@@ -0,0 +1,7 @@
+PY3TEST()
+
+PEERDIR(
+ library/python/resource/ut/lib
+)
+
+END()
diff --git a/library/python/resource/ut/ya.make b/library/python/resource/ut/ya.make
new file mode 100644
index 0000000000..4cedc9fb3e
--- /dev/null
+++ b/library/python/resource/ut/ya.make
@@ -0,0 +1,4 @@
+RECURSE(
+ py2
+ py3
+)
diff --git a/library/python/resource/ya.make b/library/python/resource/ya.make
new file mode 100644
index 0000000000..2642f0b42b
--- /dev/null
+++ b/library/python/resource/ya.make
@@ -0,0 +1,11 @@
+PY23_LIBRARY()
+
+PEERDIR(
+ contrib/python/six
+)
+
+PY_SRCS(__init__.py)
+
+END()
+
+RECURSE_FOR_TESTS(ut)
diff --git a/library/python/strings/ut/ya.make b/library/python/strings/ut/ya.make
new file mode 100644
index 0000000000..df95e366fa
--- /dev/null
+++ b/library/python/strings/ut/ya.make
@@ -0,0 +1,11 @@
+PY23_TEST()
+
+TEST_SRCS(test_strings.py)
+
+PEERDIR(
+ library/python/strings
+)
+
+STYLE_PYTHON()
+
+END()
diff --git a/library/python/strings/ya.make b/library/python/strings/ya.make
new file mode 100644
index 0000000000..1cd6137b7e
--- /dev/null
+++ b/library/python/strings/ya.make
@@ -0,0 +1,20 @@
+PY23_LIBRARY()
+
+PY_SRCS(
+ __init__.py
+ CYTHONIZE_PY
+ strings.py
+)
+
+PEERDIR(
+ library/python/func
+ contrib/python/six
+)
+
+STYLE_PYTHON()
+
+END()
+
+RECURSE(
+ ut
+)
diff --git a/library/python/svn_version/ya.make b/library/python/svn_version/ya.make
new file mode 100644
index 0000000000..f168ea4a94
--- /dev/null
+++ b/library/python/svn_version/ya.make
@@ -0,0 +1,13 @@
+PY23_LIBRARY()
+
+PEERDIR(
+ library/cpp/svnversion
+ contrib/python/future
+)
+
+PY_SRCS(
+ __init__.py
+ __svn_version.pyx
+)
+
+END()
diff --git a/library/python/symbols/libc/ya.make b/library/python/symbols/libc/ya.make
new file mode 100644
index 0000000000..1aa4d90ac8
--- /dev/null
+++ b/library/python/symbols/libc/ya.make
@@ -0,0 +1,17 @@
+LIBRARY()
+
+PEERDIR(
+ library/python/symbols/registry
+)
+
+IF (GCC OR CLANG)
+ CFLAGS(
+ -Wno-deprecated-declarations # For sem_getvalue.
+ )
+ENDIF()
+
+SRCS(
+ GLOBAL syms.cpp
+)
+
+END()
diff --git a/library/python/symbols/module/ya.make b/library/python/symbols/module/ya.make
new file mode 100644
index 0000000000..87bcd72b4a
--- /dev/null
+++ b/library/python/symbols/module/ya.make
@@ -0,0 +1,21 @@
+PY23_LIBRARY()
+
+NO_PYTHON_INCLUDES()
+
+PEERDIR(
+ contrib/libs/python/Include
+)
+
+SRCS(
+ module.cpp
+)
+
+PY_REGISTER(
+ library.python.symbols.module.syms
+)
+
+PY_SRCS(
+ __init__.py
+)
+
+END()
diff --git a/library/python/symbols/python/ut/py2/ya.make b/library/python/symbols/python/ut/py2/ya.make
new file mode 100644
index 0000000000..991cbedf65
--- /dev/null
+++ b/library/python/symbols/python/ut/py2/ya.make
@@ -0,0 +1,7 @@
+PY2TEST()
+
+PEERDIR(
+ library/python/symbols/python/ut
+)
+
+END()
diff --git a/library/python/symbols/python/ut/py3/ya.make b/library/python/symbols/python/ut/py3/ya.make
new file mode 100644
index 0000000000..e5542a6c4e
--- /dev/null
+++ b/library/python/symbols/python/ut/py3/ya.make
@@ -0,0 +1,7 @@
+PY3TEST()
+
+PEERDIR(
+ library/python/symbols/python/ut
+)
+
+END()
diff --git a/library/python/symbols/python/ut/ya.make b/library/python/symbols/python/ut/ya.make
new file mode 100644
index 0000000000..933c81781f
--- /dev/null
+++ b/library/python/symbols/python/ut/ya.make
@@ -0,0 +1,14 @@
+PY23_LIBRARY()
+
+TEST_SRCS(test_ctypes.py)
+
+PEERDIR(
+ library/python/symbols/python
+)
+
+END()
+
+RECURSE_FOR_TESTS(
+ py2
+ py3
+)
diff --git a/library/python/symbols/python/ya.make b/library/python/symbols/python/ya.make
new file mode 100644
index 0000000000..e19c591608
--- /dev/null
+++ b/library/python/symbols/python/ya.make
@@ -0,0 +1,13 @@
+LIBRARY()
+
+PEERDIR(
+ library/python/symbols/registry
+)
+
+SRCS(
+ GLOBAL syms.cpp
+)
+
+END()
+
+RECURSE_FOR_TESTS(ut)
diff --git a/library/python/symbols/registry/ya.make b/library/python/symbols/registry/ya.make
new file mode 100644
index 0000000000..16cf260372
--- /dev/null
+++ b/library/python/symbols/registry/ya.make
@@ -0,0 +1,7 @@
+LIBRARY()
+
+SRCS(
+ syms.cpp
+)
+
+END()
diff --git a/library/python/symbols/win_unicode_console/ya.make b/library/python/symbols/win_unicode_console/ya.make
new file mode 100644
index 0000000000..f1fe4ad2ce
--- /dev/null
+++ b/library/python/symbols/win_unicode_console/ya.make
@@ -0,0 +1,11 @@
+LIBRARY()
+
+PEERDIR(
+ library/python/symbols/registry
+)
+
+SRCS(
+ GLOBAL syms.cpp
+)
+
+END()
diff --git a/library/python/testing/filter/ya.make b/library/python/testing/filter/ya.make
new file mode 100644
index 0000000000..8703f5dcd2
--- /dev/null
+++ b/library/python/testing/filter/ya.make
@@ -0,0 +1,4 @@
+PY23_LIBRARY()
+PY_SRCS(filter.py)
+
+END()
diff --git a/library/python/testing/import_test/ya.make b/library/python/testing/import_test/ya.make
new file mode 100644
index 0000000000..3f95288f4d
--- /dev/null
+++ b/library/python/testing/import_test/ya.make
@@ -0,0 +1,5 @@
+PY23_LIBRARY()
+
+PY_SRCS(import_test.py)
+
+END()
diff --git a/library/python/testing/recipe/ya.make b/library/python/testing/recipe/ya.make
new file mode 100644
index 0000000000..6e05a5a1ea
--- /dev/null
+++ b/library/python/testing/recipe/ya.make
@@ -0,0 +1,14 @@
+PY23_LIBRARY()
+
+PY_SRCS(
+ __init__.py
+ ports.py
+)
+
+PEERDIR(
+ contrib/python/ipdb
+ library/python/testing/yatest_common
+ library/python/testing/yatest_lib
+)
+
+END()
diff --git a/library/python/testing/yatest_common/ya.make b/library/python/testing/yatest_common/ya.make
new file mode 100644
index 0000000000..2f5aa3bf39
--- /dev/null
+++ b/library/python/testing/yatest_common/ya.make
@@ -0,0 +1,38 @@
+PY23_LIBRARY()
+
+NO_EXTENDED_SOURCE_SEARCH()
+
+PY_SRCS(
+ TOP_LEVEL
+ yatest/__init__.py
+ yatest/common/__init__.py
+ yatest/common/benchmark.py
+ yatest/common/canonical.py
+ yatest/common/environment.py
+ yatest/common/errors.py
+ yatest/common/misc.py
+ yatest/common/network.py
+ yatest/common/path.py
+ yatest/common/process.py
+ yatest/common/runtime.py
+ yatest/common/runtime_java.py
+)
+
+STYLE_PYTHON()
+
+PEERDIR(
+ contrib/python/packaging
+ contrib/python/six
+ library/python/cores
+ library/python/filelock
+ library/python/fs
+ library/python/testing/yatest_lib
+)
+
+IF (NOT CATBOOST_OPENSOURCE)
+ PEERDIR(
+ library/python/coredump_filter
+ )
+ENDIF()
+
+END()
diff --git a/library/python/testing/yatest_common_standalone/ya.make b/library/python/testing/yatest_common_standalone/ya.make
new file mode 100644
index 0000000000..8f2d5f52c3
--- /dev/null
+++ b/library/python/testing/yatest_common_standalone/ya.make
@@ -0,0 +1,15 @@
+PY23_LIBRARY()
+
+PY_SRCS(
+ __init__.py
+)
+
+STYLE_PYTHON()
+
+PEERDIR(
+ library/python/testing/yatest_common
+)
+
+PY_CONSTRUCTOR(library.python.testing.yatest_common_standalone)
+
+END()
diff --git a/library/python/testing/yatest_lib/tests/ya.make b/library/python/testing/yatest_lib/tests/ya.make
new file mode 100644
index 0000000000..fe7b1c7837
--- /dev/null
+++ b/library/python/testing/yatest_lib/tests/ya.make
@@ -0,0 +1,12 @@
+PY23_TEST()
+
+PEERDIR(
+ library/python/testing/yatest_lib
+)
+
+TEST_SRCS(
+ test_external.py
+ test_testsplitter.py
+)
+
+END()
diff --git a/library/python/testing/yatest_lib/ya.make b/library/python/testing/yatest_lib/ya.make
new file mode 100644
index 0000000000..79442b8faf
--- /dev/null
+++ b/library/python/testing/yatest_lib/ya.make
@@ -0,0 +1,24 @@
+PY23_LIBRARY()
+
+PY_SRCS(
+ NAMESPACE
+ yatest_lib
+ external.py
+ test_splitter.py
+ tools.py
+ ya.py
+)
+
+PEERDIR(
+ contrib/python/six
+)
+
+IF(PYTHON2)
+ PEERDIR(
+ contrib/deprecated/python/enum34
+ )
+ENDIF()
+
+END()
+
+RECURSE_FOR_TESTS(tests)
diff --git a/library/python/tmp/ya.make b/library/python/tmp/ya.make
new file mode 100644
index 0000000000..478db75256
--- /dev/null
+++ b/library/python/tmp/ya.make
@@ -0,0 +1,12 @@
+PY23_LIBRARY()
+
+PY_SRCS(__init__.py)
+
+PEERDIR(
+ library/python/fs
+ library/python/unique_id
+)
+
+END()
+
+RECURSE_FOR_TESTS(test)
diff --git a/library/python/unique_id/ya.make b/library/python/unique_id/ya.make
new file mode 100644
index 0000000000..3582136180
--- /dev/null
+++ b/library/python/unique_id/ya.make
@@ -0,0 +1,5 @@
+PY23_LIBRARY()
+
+PY_SRCS(__init__.py)
+
+END()
diff --git a/library/python/windows/ya.make b/library/python/windows/ya.make
new file mode 100644
index 0000000000..97c6f48f23
--- /dev/null
+++ b/library/python/windows/ya.make
@@ -0,0 +1,11 @@
+PY23_LIBRARY()
+
+PY_SRCS(__init__.py)
+
+PEERDIR(
+ library/python/func
+ library/python/strings
+ contrib/python/six
+)
+
+END()