Skip to content

Commit

Permalink
py3 build (#1651)
Browse files Browse the repository at this point in the history
fix arcadia build: use only python3

There is no backward compatibility with py2
  • Loading branch information
sdimanx91 authored Jul 23, 2024
1 parent 28c0180 commit 7a85703
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 52 deletions.
38 changes: 37 additions & 1 deletion cloud/blockstore/public/sdk/python/client/ut/ya.make
Original file line number Diff line number Diff line change
@@ -1,7 +1,43 @@
PY23_LIBRARY()
PY3TEST()

INCLUDE(${ARCADIA_ROOT}/cloud/storage/core/tests/recipes/medium.inc)

PY_SRCS(
client_methods.py
)

TEST_SRCS(
client_ut.py
durable_ut.py
discovery_ut.py
future_ut.py
grpc_client_ut.py
http_client_ut.py
session_ut.py
)

USE_RECIPE(cloud/blockstore/tests/recipes/local-null/local-null-recipe with-http-proxy)

PEERDIR(
cloud/blockstore/public/api/grpc
cloud/blockstore/public/api/protos

cloud/blockstore/public/sdk/python/client

library/python/testing/yatest_common
)

DATA(
arcadia/cloud/blockstore/tests/certs/server.crt
arcadia/cloud/blockstore/tests/certs/server.key
)

DEPENDS(
cloud/blockstore/apps/server_lightweight
cloud/blockstore/tests/recipes/local-null
cloud/blockstore/tools/http_proxy
)

INCLUDE(${ARCADIA_ROOT}/cloud/storage/core/opensource.inc)

END()
34 changes: 0 additions & 34 deletions cloud/blockstore/public/sdk/python/client/ut/ya.make.inc

This file was deleted.

9 changes: 0 additions & 9 deletions cloud/blockstore/public/sdk/python/client/ut_py23/ya.make

This file was deleted.

10 changes: 2 additions & 8 deletions cloud/blockstore/public/sdk/python/client/ya.make
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
PY23_LIBRARY()
PY3_LIBRARY()

PEERDIR(
cloud/blockstore/public/api/grpc
cloud/blockstore/public/sdk/python/protos
contrib/python/requests/py3
)

INCLUDE(${ARCADIA_ROOT}/cloud/storage/core/opensource.inc)

IF (OPENSOURCE)
PEERDIR(contrib/python/requests/py3)
ELSE()
PEERDIR(contrib/python/requests)
ENDIF()

PY_SRCS(
__init__.py
base_client.py
Expand All @@ -35,5 +30,4 @@ END()

RECURSE_FOR_TESTS(
ut
ut_py23
)

0 comments on commit 7a85703

Please sign in to comment.