aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/svn_version
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /library/python/svn_version
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
downloadydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'library/python/svn_version')
-rw-r--r--library/python/svn_version/__svn_version.pyx14
-rw-r--r--library/python/svn_version/ut/lib/test_simple.py8
-rw-r--r--library/python/svn_version/ut/lib/ya.make26
-rw-r--r--library/python/svn_version/ut/py2/ya.make16
-rw-r--r--library/python/svn_version/ut/py3/ya.make18
-rw-r--r--library/python/svn_version/ut/ya.make10
-rw-r--r--library/python/svn_version/ya.make24
7 files changed, 58 insertions, 58 deletions
diff --git a/library/python/svn_version/__svn_version.pyx b/library/python/svn_version/__svn_version.pyx
index d66bc09d24..c008105148 100644
--- a/library/python/svn_version/__svn_version.pyx
+++ b/library/python/svn_version/__svn_version.pyx
@@ -1,7 +1,7 @@
-import future.utils as fu
-
+import future.utils as fu
+
cdef extern from "library/cpp/svnversion/svnversion.h":
- cdef const char* GetProgramSvnVersion() except +;
+ cdef const char* GetProgramSvnVersion() except +;
cdef int GetProgramSvnRevision() except +;
cdef int GetArcadiaLastChangeNum() except +;
cdef const char* GetProgramCommitId() except +;
@@ -9,10 +9,10 @@ cdef extern from "library/cpp/svnversion/svnversion.h":
cdef const char* GetBranch() except +;
cdef const char* GetTag() except +;
cdef int GetArcadiaPatchNumber() except +;
-
-def svn_version():
- return fu.bytes_to_native_str(GetProgramSvnVersion())
-
+
+def svn_version():
+ return fu.bytes_to_native_str(GetProgramSvnVersion())
+
def svn_revision():
return GetProgramSvnRevision()
diff --git a/library/python/svn_version/ut/lib/test_simple.py b/library/python/svn_version/ut/lib/test_simple.py
index 2c27af6c68..699bd2873f 100644
--- a/library/python/svn_version/ut/lib/test_simple.py
+++ b/library/python/svn_version/ut/lib/test_simple.py
@@ -1,9 +1,9 @@
import library.python.svn_version as sv
-
-
-def test_simple():
+
+
+def test_simple():
assert sv.svn_version()
- assert isinstance(sv.svn_version(), str)
+ assert isinstance(sv.svn_version(), str)
assert sv.svn_revision()
assert isinstance(sv.svn_revision(), int)
assert sv.svn_last_revision()
diff --git a/library/python/svn_version/ut/lib/ya.make b/library/python/svn_version/ut/lib/ya.make
index fb50caf125..794114e131 100644
--- a/library/python/svn_version/ut/lib/ya.make
+++ b/library/python/svn_version/ut/lib/ya.make
@@ -1,13 +1,13 @@
-PY23_LIBRARY()
-
-OWNER(pg)
-
-PEERDIR(
- library/python/svn_version
-)
-
-TEST_SRCS(
- test_simple.py
-)
-
-END()
+PY23_LIBRARY()
+
+OWNER(pg)
+
+PEERDIR(
+ library/python/svn_version
+)
+
+TEST_SRCS(
+ test_simple.py
+)
+
+END()
diff --git a/library/python/svn_version/ut/py2/ya.make b/library/python/svn_version/ut/py2/ya.make
index c860e16536..c8f6d66a51 100644
--- a/library/python/svn_version/ut/py2/ya.make
+++ b/library/python/svn_version/ut/py2/ya.make
@@ -1,9 +1,9 @@
PY2TEST()
-
-OWNER(pg)
-
-PEERDIR(
- library/python/svn_version/ut/lib
-)
-
-END()
+
+OWNER(pg)
+
+PEERDIR(
+ library/python/svn_version/ut/lib
+)
+
+END()
diff --git a/library/python/svn_version/ut/py3/ya.make b/library/python/svn_version/ut/py3/ya.make
index 4231565142..e022f6d106 100644
--- a/library/python/svn_version/ut/py3/ya.make
+++ b/library/python/svn_version/ut/py3/ya.make
@@ -1,9 +1,9 @@
-PY3TEST()
-
-OWNER(pg)
-
-PEERDIR(
- library/python/svn_version/ut/lib
-)
-
-END()
+PY3TEST()
+
+OWNER(pg)
+
+PEERDIR(
+ library/python/svn_version/ut/lib
+)
+
+END()
diff --git a/library/python/svn_version/ut/ya.make b/library/python/svn_version/ut/ya.make
index 1363b76581..5aea8bb2f1 100644
--- a/library/python/svn_version/ut/ya.make
+++ b/library/python/svn_version/ut/ya.make
@@ -1,5 +1,5 @@
-RECURSE(
- lib
- py2
- py3
-)
+RECURSE(
+ lib
+ py2
+ py3
+)
diff --git a/library/python/svn_version/ya.make b/library/python/svn_version/ya.make
index 747a663f00..d805845845 100644
--- a/library/python/svn_version/ya.make
+++ b/library/python/svn_version/ya.make
@@ -1,15 +1,15 @@
-PY23_LIBRARY()
-
-OWNER(pg)
-
-PEERDIR(
+PY23_LIBRARY()
+
+OWNER(pg)
+
+PEERDIR(
library/cpp/svnversion
- contrib/python/future
-)
-
-PY_SRCS(
+ contrib/python/future
+)
+
+PY_SRCS(
__init__.py
__svn_version.pyx
-)
-
-END()
+)
+
+END()