Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit 5f9cd68

Browse files
authored
Upgrade to latest version of @graknlabs_protocol (#53)
## What is the goal of this PR? Adapt to latest changes in Python generated code of Grakn Protocol ## What are the changes implemented in this PR? - Change code to import generated code from `grakn_protocol` - Upgrade `@graknlabs_build_tools`
1 parent 989f4b6 commit 5f9cd68

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

dependencies/graknlabs/dependencies.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def graknlabs_build_tools():
2222
git_repository(
2323
name = "graknlabs_build_tools",
2424
remote = "https://github.com/graknlabs/build-tools",
25-
commit = "27a4596b4338189e9529cff3d015f173e6eb4c5b", # sync-marker: do not remove this comment, this is used for sync-dependencies by @graknlabs_build_tools
25+
commit = "e1875797063b86386072034e65af2f40dc1fb07c", # sync-marker: do not remove this comment, this is used for sync-dependencies by @graknlabs_build_tools
2626
)
2727

2828
def graknlabs_grakn_core():

grakn/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from grakn.service.Session.util.enums import TxType as _TxType
77
from grakn.service.Keyspace.KeyspaceService import KeyspaceService
88
from grakn.service.Session.TransactionService import TransactionService
9-
from session.Session_pb2_grpc import SessionServiceStub
9+
from grakn_protocol.session.Session_pb2_grpc import SessionServiceStub
1010
from grakn.exception.GraknError import GraknError
1111

1212
class GraknClient(object):

grakn/service/Keyspace/KeyspaceService.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
# under the License.
1818
#
1919

20-
from keyspace.Keyspace_pb2_grpc import KeyspaceServiceStub
21-
import keyspace.Keyspace_pb2 as keyspace_messages
20+
from grakn_protocol.keyspace.Keyspace_pb2_grpc import KeyspaceServiceStub
21+
import grakn_protocol.keyspace.Keyspace_pb2 as keyspace_messages
2222

2323
class KeyspaceService(object):
2424

grakn/service/Session/Concept/BaseTypeMapping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# under the License.
1818
#
1919

20-
import session.Concept_pb2 as ConceptMessages
20+
import grakn_protocol.session.Concept_pb2 as ConceptMessages
2121

2222

2323
# base type constant names

grakn/service/Session/util/RequestBuilder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
#
1919
from datetime import datetime
2020

21-
import session.Session_pb2 as transaction_messages
22-
import session.Concept_pb2 as concept_messages
21+
import grakn_protocol.session.Session_pb2 as transaction_messages
22+
import grakn_protocol.session.Concept_pb2 as concept_messages
2323
from grakn.service.Session.util import enums
2424
from grakn.service.Session.Concept import BaseTypeMapping
2525

grakn/service/Session/util/enums.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
#
1919

2020
from enum import Enum
21-
import session.Session_pb2 as SessionMessages
22-
import session.Concept_pb2 as ConceptMessages
21+
import grakn_protocol.session.Session_pb2 as SessionMessages
22+
import grakn_protocol.session.Concept_pb2 as ConceptMessages
2323

2424

2525
class TxType(Enum):

0 commit comments

Comments
 (0)