diff options
author | thegeorg <thegeorg@yandex-team.com> | 2024-12-19 20:02:10 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2024-12-19 21:13:22 +0300 |
commit | 0c60168208f5d94be0d7783610af8cd47e1f68cc (patch) | |
tree | c8adfd5eda12d7bdb1cda39a550a706310864fa6 | |
parent | 3bf2a018f9e680aa955169cdbf0d5bcf9de9a49f (diff) | |
download | ydb-0c60168208f5d94be0d7783610af8cd47e1f68cc.tar.gz |
Mandate string normalization in yamaker import specs
commit_hash:6d2a56c5f8e052fb718c9da2ce6d1eb010185b51
-rw-r--r-- | contrib/libs/hyperscan/.yandex_meta/__init__.py | 2 | ||||
-rw-r--r-- | contrib/libs/nghttp3/.yandex_meta/__init__.py | 2 | ||||
-rw-r--r-- | contrib/libs/protobuf/.yandex_meta/__init__.py | 10 | ||||
-rw-r--r-- | contrib/python/Pillow/py3/.yandex_meta/__init__.py | 4 | ||||
-rw-r--r-- | contrib/python/grpcio/py3/.yandex_meta/__init__.py | 2 |
5 files changed, 10 insertions, 10 deletions
diff --git a/contrib/libs/hyperscan/.yandex_meta/__init__.py b/contrib/libs/hyperscan/.yandex_meta/__init__.py index c56235d3b4..02f917dd90 100644 --- a/contrib/libs/hyperscan/.yandex_meta/__init__.py +++ b/contrib/libs/hyperscan/.yandex_meta/__init__.py @@ -61,7 +61,7 @@ def instantiate_runtime(self, *, runtime_name, runtime_yamake): # list of symbols that will be duplicated if compiled without proper wrapping. # It can be obtained with compiling runtime_* libraries and applying # nm --defined-only --extern-only --format=posix -o *.a | awk '{print $2}' - with open(P.join(self.meta_dir, 'symbols.json')) as f: + with open(P.join(self.meta_dir, "symbols.json")) as f: symbols_to_rename = json.load(f) # rename symbols that would be duplicated between runtimes otherwise diff --git a/contrib/libs/nghttp3/.yandex_meta/__init__.py b/contrib/libs/nghttp3/.yandex_meta/__init__.py index f75bcde11e..344c3f236e 100644 --- a/contrib/libs/nghttp3/.yandex_meta/__init__.py +++ b/contrib/libs/nghttp3/.yandex_meta/__init__.py @@ -8,7 +8,7 @@ def post_install(self): with open(includeFilePath, "r") as file: filedata = file.read() - filedata = filedata.replace("<nghttp3/version.h>", "\"version.h\"") + filedata = filedata.replace("<nghttp3/version.h>", '"version.h"') with open(includeFilePath, "w") as file: file.write(filedata) diff --git a/contrib/libs/protobuf/.yandex_meta/__init__.py b/contrib/libs/protobuf/.yandex_meta/__init__.py index 7d7498e483..8eb399ce00 100644 --- a/contrib/libs/protobuf/.yandex_meta/__init__.py +++ b/contrib/libs/protobuf/.yandex_meta/__init__.py @@ -42,7 +42,7 @@ DEPRECATED_STUBS = [ "src/google/protobuf/json_util.h", ] -DEPRECATED_SRC = [x for x in DEPRECATED_STUBS if x.endswith('.cc')] +DEPRECATED_SRC = [x for x in DEPRECATED_STUBS if x.endswith(".cc")] # Set of proto files coming with original google protobuf (excluding descriptor.proto, see below) # WARN: upon changing this file, make sure to check protobuf_std counterpart. @@ -219,19 +219,19 @@ ENDIF() for lang in ["csharp", "objectivec"]: for root, _, files in os.walk(os.path.join(libprotoc_abs_dir, "src/google/protobuf/compiler", lang)): for file in files: - if file.endswith('.h'): - with open(os.path.join(root, lang + '_' + file), 'w') as f: + if file.endswith(".h"): + with open(os.path.join(root, lang + "_" + file), "w") as f: f.write(f'#include "{file}"\n') f.write('#include "names.h"') # generate temporal proxy for ydb - with open(os.path.join(libprotoc_abs_dir, "src/google/protobuf/compiler/cpp/cpp_helpers.h"), 'w') as f: + with open(os.path.join(libprotoc_abs_dir, "src/google/protobuf/compiler/cpp/cpp_helpers.h"), "w") as f: f.write('#include "helpers.h"') with open(f"{libprotoc_abs_dir}/ya.make", "wt") as ymake: ymake.write(str(libprotoc)) - with open(os.path.join(self.ctx.arc, self.arcdir, "src/google/protobuf/util/json_util.h"), 'w') as f: + with open(os.path.join(self.ctx.arc, self.arcdir, "src/google/protobuf/util/json_util.h"), "w") as f: f.write('#define USE_DEPRECATED_NAMESPACE 1\n#include "google/protobuf/json/json.h"') diff --git a/contrib/python/Pillow/py3/.yandex_meta/__init__.py b/contrib/python/Pillow/py3/.yandex_meta/__init__.py index 248ce1165e..63d5c8ea50 100644 --- a/contrib/python/Pillow/py3/.yandex_meta/__init__.py +++ b/contrib/python/Pillow/py3/.yandex_meta/__init__.py @@ -47,8 +47,8 @@ def post_install(self): { "NOT OPENSOURCE": Linkable( CFLAGS=["-DHAVE_LIBIMAGEQUANT"], - PEERDIR=['contrib/libs/libimagequant'], - ADDINCL=['contrib/libs/libimagequant'], + PEERDIR=["contrib/libs/libimagequant"], + ADDINCL=["contrib/libs/libimagequant"], ), } ), diff --git a/contrib/python/grpcio/py3/.yandex_meta/__init__.py b/contrib/python/grpcio/py3/.yandex_meta/__init__.py index d519c459ee..5e4e2c47ca 100644 --- a/contrib/python/grpcio/py3/.yandex_meta/__init__.py +++ b/contrib/python/grpcio/py3/.yandex_meta/__init__.py @@ -57,7 +57,7 @@ def post_install(self): # see https://github.com/grpc/grpc/blob/v1.45.0/tools/bazel.rc#L103 pb.after( "ADDINCL", - Switch({'SANITIZER_TYPE == undefined': Linkable(CXXFLAGS=["-fno-sanitize=function"])}), + Switch({"SANITIZER_TYPE == undefined": Linkable(CXXFLAGS=["-fno-sanitize=function"])}), ) |