Skip to content

Commit fafc8c1

Browse files
committed
netauth/_gen: move to netauth/_pb
1 parent 69bb5d8 commit fafc8c1

9 files changed

+5
-5
lines changed

Makefile

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
generate: protocol/netauth.proto protocol/v2/rpc.proto
44
$(VENV)/bin/python3 -m grpc_tools.protoc -I ./protocol \
5-
--python_out=netauth/_gen --pyi_out=netauth/_gen --grpc_python_out=netauth/_gen \
5+
--python_out=netauth/_pb --pyi_out=netauth/_pb --grpc_python_out=netauth/_pb \
66
./protocol/netauth.proto ./protocol/v2/rpc.proto
77
# correct imports
8-
sed -i netauth/_gen/v2/rpc_pb2.py -e 's/import netauth_pb2/from .. &/'
9-
sed -i netauth/_gen/v2/rpc_pb2_grpc.py -e 's/from v2/from ./'
8+
sed -i netauth/_pb/v2/rpc_pb2.py -e 's/import netauth_pb2/from .. &/'
9+
sed -i netauth/_pb/v2/rpc_pb2_grpc.py -e 's/from v2/from ./'
1010

1111
%.proto:
1212
@echo "Missing protocol definitions. Are submodules checked out?"
1313

1414
clean:
15-
rm netauth/_gen/netauth_pb2*
16-
rm netauth/_gen/v2/rpc_pb2*
15+
rm netauth/_pb/netauth_pb2*
16+
rm netauth/_pb/v2/rpc_pb2*
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)