File tree Expand file tree Collapse file tree 6 files changed +12
-19
lines changed Expand file tree Collapse file tree 6 files changed +12
-19
lines changed Original file line number Diff line number Diff line change 30
30
python -m pip install twine
31
31
- name : Verify that protobufs are checked in
32
32
run : |
33
- # we modify one line in proto/api_pb2_grpc.py as described in readme
34
33
python scripts/protogen.py
35
- ACTUAL_DIFF=$(git diff --shortstat)
36
- EXPECTED_DIFF=" 1 file changed, 1 insertion(+), 1 deletion(-)"
37
- if [[ "$ACTUAL_DIFF" == "$EXPECTED_DIFF" ]]; then
38
- echo "found expected difference"
39
- else
40
- echo "unexpected difference when regenerating protobufs, verify they are checked in"
41
- exit 1
42
- fi
34
+ git diff --exit-code -- .
43
35
- name : Build pydgraph
44
36
run : |
45
37
rm -rf dist
Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
6
6
and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
7
7
8
+ ## [ v23.0.1] - 2023-05-29
9
+
10
+ ### Added
11
+
12
+ - chore(cd): fix protobuf import issue (#204 )
13
+
8
14
## [ v23.0.0] - 2023-05-15
9
15
10
16
### Breaking
Original file line number Diff line number Diff line change @@ -523,14 +523,6 @@ command:
523
523
python scripts/protogen.py
524
524
```
525
525
526
- The generated file ` api_pb2_grpc.py ` needs to be changed in recent versions of python.
527
- The required change is outlined below as a diff.
528
-
529
- ``` diff
530
- - import api_pb2 as api__pb2
531
- + from . import api_pb2 as api__pb2
532
- ```
533
-
534
526
### Running tests
535
527
536
528
To run the tests in your local machine, run:
Original file line number Diff line number Diff line change 14
14
15
15
"""Metadata about this package."""
16
16
17
- VERSION = '23.0.0 '
17
+ VERSION = '23.0.1rc1 '
Original file line number Diff line number Diff line change
1
+ import sys
2
+ from pathlib import Path
3
+ sys .path .append (str (Path (__file__ ).parent ))
Original file line number Diff line number Diff line change 2
2
"""Client and server classes corresponding to protobuf-defined services."""
3
3
import grpc
4
4
5
- from . import api_pb2 as api__pb2
5
+ import api_pb2 as api__pb2
6
6
7
7
8
8
class DgraphStub (object ):
You can’t perform that action at this time.
0 commit comments