Fix import paths
This commit is contained in:
parent
361bec2846
commit
5f1f88106c
@ -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
|
||||
|
@ -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
|
||||
|
@ -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):
|
||||
|
@ -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
7
makefile
Normal 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
|
@ -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>"]
|
||||
|
Loading…
Reference in New Issue
Block a user