diff options
author | thelamon <thelamon@yandex-team.ru> | 2022-02-10 16:51:06 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:51:06 +0300 |
commit | 567b68192a1bd23893063013cef7937bf6bee567 (patch) | |
tree | b8aabc4fc10a72a7a9fa5fbcfb9e271136ce5bca | |
parent | 2557eeeb3570dcc53587fa50477693326b7a9ace (diff) | |
download | ydb-567b68192a1bd23893063013cef7937bf6bee567.tar.gz |
Restoring authorship annotation for <thelamon@yandex-team.ru>. Commit 1 of 2.
-rw-r--r-- | build/scripts/decimal_md5.py | 16 | ||||
-rw-r--r-- | build/ymake.core.conf | 10 | ||||
-rw-r--r-- | library/python/pytest/allure/ya.make | 4 |
3 files changed, 15 insertions, 15 deletions
diff --git a/build/scripts/decimal_md5.py b/build/scripts/decimal_md5.py index e70ca80a09..f2f40928b5 100644 --- a/build/scripts/decimal_md5.py +++ b/build/scripts/decimal_md5.py @@ -8,10 +8,10 @@ import os import argparse -def print_code(checksum, func_name): - if len(func_name) == 0: # safe fallback for old ya.make files - func_name = "DecimalMD5" - print 'const char* ' + func_name + '() {return "' + checksum + '";}' +def print_code(checksum, func_name): + if len(func_name) == 0: # safe fallback for old ya.make files + func_name = "DecimalMD5" + print 'const char* ' + func_name + '() {return "' + checksum + '";}' def ensure_paths_exist(paths): @@ -40,13 +40,13 @@ def main(): parser.add_argument("--fixed-output", help="don not calculate md5, use this value instead") parser.add_argument("--lower-bits", help="use specified count of lower bits", type=int, default=32) parser.add_argument("--source-root", help="arcadia source root") - parser.add_argument("--func-name", help="custom function name to be defined", default="DecimalMD5") + parser.add_argument("--func-name", help="custom function name to be defined", default="DecimalMD5") parser.add_argument("targets", nargs='*', default=['.']) args = parser.parse_args() abs_paths = [ - os.path.join(args.source_root, target) + os.path.join(args.source_root, target) for target in args.targets ] ensure_paths_exist(abs_paths) @@ -58,7 +58,7 @@ def main(): checksum = fmt.format(int(args.fixed_output) & bitmask) except ValueError: raise ValueError("decimal_md5: bad value passed via --fixed-output: %s" % args.fixed_output) - print_code(str(checksum), func_name=args.func_name) + print_code(str(checksum), func_name=args.func_name) return md5 = hashlib.md5() @@ -71,7 +71,7 @@ def main(): fmt = '{:0%dd}' % len(str(bitmask)) checksum_str = fmt.format(md5_int & bitmask) - print_code(checksum_str, func_name=args.func_name) + print_code(checksum_str, func_name=args.func_name) if __name__ == "__main__": diff --git a/build/ymake.core.conf b/build/ymake.core.conf index 081833998b..5e0a3bf69a 100644 --- a/build/ymake.core.conf +++ b/build/ymake.core.conf @@ -6475,11 +6475,11 @@ macro CREATE_BUILDINFO_FOR(GenHdr) { DECIMAL_MD5_SCRIPT=build/scripts/decimal_md5.py DECIMAL_MD5_FIXED= -### @usage: DECIMAL_MD5_LOWER_32_BITS(<fileName> [FUNCNAME funcName] [inputs...]) -### -### Generates .cpp file <fileName> with one defined function 'const char* <funcName>() { return "<calculated_md5_hash>"; }'. -### <calculated_md5_hash> will be md5 hash for all inputs passed to this macro. -macro DECIMAL_MD5_LOWER_32_BITS(File, FUNCNAME="", Opts...) { +### @usage: DECIMAL_MD5_LOWER_32_BITS(<fileName> [FUNCNAME funcName] [inputs...]) +### +### Generates .cpp file <fileName> with one defined function 'const char* <funcName>() { return "<calculated_md5_hash>"; }'. +### <calculated_md5_hash> will be md5 hash for all inputs passed to this macro. +macro DECIMAL_MD5_LOWER_32_BITS(File, FUNCNAME="", Opts...) { .CMD=$YMAKE_PYTHON ${input:DECIMAL_MD5_SCRIPT} --fixed-output=${DECIMAL_MD5_FIXED} --func-name=${FUNCNAME} --lower-bits 32 --source-root=$ARCADIA_ROOT ${input;context=TEXT:Opts} ${output;stdout;chksum:File} ${kv;hide:"p SV"} ${kv;hide:"pc yellow"} ${hide;kv:"show_out"} } diff --git a/library/python/pytest/allure/ya.make b/library/python/pytest/allure/ya.make index ab3f449c7f..7d9c647335 100644 --- a/library/python/pytest/allure/ya.make +++ b/library/python/pytest/allure/ya.make @@ -1,5 +1,5 @@ -PY23_LIBRARY() - +PY23_LIBRARY() + OWNER(exprmntr) PY_SRCS(conftest.py) |