diff options
author | alexv-smirnov <alex@ydb.tech> | 2023-03-15 19:59:12 +0300 |
---|---|---|
committer | alexv-smirnov <alex@ydb.tech> | 2023-03-15 19:59:12 +0300 |
commit | 056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11 (patch) | |
tree | 4740980126f32e3af7937ba0ca5f83e59baa4ab0 /library/python | |
parent | 269126dcced1cc8b53eb4398b4a33e5142f10290 (diff) | |
download | ydb-056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11.tar.gz |
add library/cpp/actors, ymake build to ydb oss export
Diffstat (limited to 'library/python')
47 files changed, 611 insertions, 0 deletions
diff --git a/library/python/archive/ya.make b/library/python/archive/ya.make new file mode 100644 index 00000000000..daddfcc7bdf --- /dev/null +++ b/library/python/archive/ya.make @@ -0,0 +1,14 @@ +PY23_LIBRARY() + +PY_SRCS(__init__.py) + +PEERDIR( + contrib/python/python-libarchive +) + +END() + +RECURSE_FOR_TESTS( + benchmark + test +) diff --git a/library/python/certifi/ya.make b/library/python/certifi/ya.make new file mode 100644 index 00000000000..ba8f150ea0a --- /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/cityhash/ya.make b/library/python/cityhash/ya.make new file mode 100644 index 00000000000..41ba7449fcc --- /dev/null +++ b/library/python/cityhash/ya.make @@ -0,0 +1,12 @@ +PY23_LIBRARY() + +SRCS( + hash.cpp +) + +PY_SRCS( + TOP_LEVEL + cityhash.pyx +) + +END() diff --git a/library/python/codecs/ya.make b/library/python/codecs/ya.make new file mode 100644 index 00000000000..f42d115d5d1 --- /dev/null +++ b/library/python/codecs/ya.make @@ -0,0 +1,16 @@ +PY23_LIBRARY() + +PEERDIR( + library/cpp/blockcodecs + contrib/python/six +) + +PY_SRCS( + __init__.py +) + +BUILDWITH_CYTHON_CPP(__codecs.pyx) + +PY_REGISTER(__codecs) + +END() diff --git a/library/python/compress/ya.make b/library/python/compress/ya.make new file mode 100644 index 00000000000..e0b5dbe9e05 --- /dev/null +++ b/library/python/compress/ya.make @@ -0,0 +1,12 @@ +PY23_LIBRARY() + +PEERDIR( + library/python/codecs + library/python/par_apply +) + +PY_SRCS( + __init__.py +) + +END() diff --git a/library/python/cores/ya.make b/library/python/cores/ya.make new file mode 100644 index 00000000000..0a828cb58b1 --- /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 00000000000..00302eb3d80 --- /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 00000000000..35821361805 --- /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 00000000000..e5e1b738b64 --- /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 00000000000..836f49b6d83 --- /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 00000000000..4e8f326de7a --- /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 00000000000..47ab634913c --- /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 00000000000..11e098cfe6f --- /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/json/ya.make b/library/python/json/ya.make new file mode 100644 index 00000000000..74a82de9d8f --- /dev/null +++ b/library/python/json/ya.make @@ -0,0 +1,17 @@ +PY23_LIBRARY() + +PEERDIR( + contrib/python/simplejson + library/cpp/json/fast_sax +) + +PY_SRCS( + __init__.py + loads.pyx +) + +SRCS( + loads.cpp +) + +END() diff --git a/library/python/par_apply/ya.make b/library/python/par_apply/ya.make new file mode 100644 index 00000000000..b14592ab799 --- /dev/null +++ b/library/python/par_apply/ya.make @@ -0,0 +1,11 @@ +PY23_LIBRARY() + +PEERDIR( + contrib/python/six +) + +PY_SRCS( + __init__.py +) + +END() diff --git a/library/python/pytest/plugins/ya.make b/library/python/pytest/plugins/ya.make new file mode 100644 index 00000000000..41e20f6e2f0 --- /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 00000000000..bb94c24c70b --- /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 00000000000..b04788cc472 --- /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 00000000000..35821361805 --- /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 00000000000..f5e28cad29f --- /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 00000000000..073e4a68ac6 --- /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 00000000000..65256285923 --- /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 00000000000..4cedc9fb3e4 --- /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 00000000000..2642f0b42b6 --- /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/retry/ya.make b/library/python/retry/ya.make new file mode 100644 index 00000000000..35821361805 --- /dev/null +++ b/library/python/retry/ya.make @@ -0,0 +1,5 @@ +PY23_LIBRARY() + +PY_SRCS(__init__.py) + +END() diff --git a/library/python/strings/ut/ya.make b/library/python/strings/ut/ya.make new file mode 100644 index 00000000000..df95e366fa9 --- /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 00000000000..1cd6137b7ea --- /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 00000000000..f168ea4a94b --- /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 00000000000..1aa4d90ac83 --- /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 00000000000..87bcd72b4a3 --- /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 00000000000..991cbedf65d --- /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 00000000000..e5542a6c4e3 --- /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 00000000000..933c81781f3 --- /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 00000000000..e19c591608b --- /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 00000000000..16cf2603723 --- /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 00000000000..f1fe4ad2ced --- /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/custom_linter_util/ya.make b/library/python/testing/custom_linter_util/ya.make new file mode 100644 index 00000000000..c761b09afcd --- /dev/null +++ b/library/python/testing/custom_linter_util/ya.make @@ -0,0 +1,12 @@ +PY3_LIBRARY() + +PY_SRCS( + linter_params.py + reporter.py +) + +END() + +RECURSE_FOR_TESTS( + tests +) diff --git a/library/python/testing/filter/ya.make b/library/python/testing/filter/ya.make new file mode 100644 index 00000000000..8703f5dcd27 --- /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 00000000000..3f95288f4d3 --- /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 00000000000..6e05a5a1ea4 --- /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 00000000000..2f5aa3bf390 --- /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 00000000000..8f2d5f52c3f --- /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 00000000000..fe7b1c7837f --- /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 00000000000..79442b8faf1 --- /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 00000000000..478db75256f --- /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 00000000000..35821361805 --- /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 00000000000..97c6f48f23a --- /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() |