File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: Functional tests
2
2
3
3
on :
4
4
push :
5
+ - master
5
6
pull_request :
6
7
7
8
jobs :
Original file line number Diff line number Diff line change 1
1
grpcio == 1.39.0
2
+ packaging
2
3
protobuf > 3.13.0 ,< 5.0.0
3
4
pytest == 6.2.4
4
5
aiohttp == 3.7.4
Original file line number Diff line number Diff line change 1
1
import sys
2
2
3
3
import google .protobuf
4
- from distutils .version import LooseVersion
4
+ from packaging .version import Version
5
5
6
6
# generated files are incompatible between 3 and 4 protobuf versions
7
7
# import right generated version for current protobuf lib
8
8
# sdk code must always import from ydb._grpc.common
9
- protobuf_version = LooseVersion (google .protobuf .__version__ )
9
+ protobuf_version = Version (google .protobuf .__version__ )
10
10
11
- if protobuf_version < LooseVersion ("4.0" ):
11
+ if protobuf_version < Version ("4.0" ):
12
12
from ydb ._grpc .v3 import * # noqa
13
13
from ydb ._grpc .v3 import protos # noqa
14
14
sys .modules ["ydb._grpc.common" ] = sys .modules ["ydb._grpc.v3" ]
You can’t perform that action at this time.
0 commit comments