Fix import paths
continuous-integration/drone/tag Build is passing Details
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luke Murphy 2020-08-10 14:44:59 +02:00
parent 361bec2846
commit 5f1f88106c
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
6 changed files with 16 additions and 5 deletions

View File

@ -1,3 +1,7 @@
# hyperspace-rpc 0.0.1a3 (2020-08-10)
- Fix import paths and add import re-writer
# hyperspace-rpc 0.0.1a2 (2020-08-09)
- Add missing hrpc.proto generate service and stub files

View File

@ -1,3 +1,3 @@
import google.protobuf.descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
import hrpc_pb2 as hrpc__pb2
from . import hrpc_pb2 as hrpc__pb2
import purerpc

View File

@ -1,7 +1,7 @@
import hrpc_pb2 as hrpc__pb2
from . import hrpc_pb2 as hrpc__pb2
import purerpc
import schema_pb2 as schema__pb2
from . import schema_pb2 as schema__pb2
class HyperspaceServicer(purerpc.Servicer):

View File

@ -11,7 +11,7 @@ from google.protobuf import symbol_database as _symbol_database
_sym_db = _symbol_database.Default()
import hrpc_pb2 as hrpc__pb2
from . import hrpc_pb2 as hrpc__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name="schema.proto",

7
makefile Normal file
View File

@ -0,0 +1,7 @@
default: rewrite
rewrite:
@sed -i 's/import hrpc_pb2 as hrpc__pb2/from . import hrpc_pb2 as hrpc__pb2/g' hyperspace_rpc/*.py && \
sed -i 's/import schema_pb2 as schema__pb2/from . import schema_pb2 as schema__pb2/g' hyperspace_rpc/*.py
.PHONY: rewrite

View File

@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"
[tool.poetry]
name = "hyperspace-rpc"
version = "0.0.1a2"
version = "0.0.1a3"
description = "Raw RPC layer for Hyperspace"
authors = ["decentral1se <hi@decentral1.se>"]
maintainers = ["decentral1se <hi@decentral1.se>"]