-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python: major rewrite with more full-featured edge node examples
Includes: - packaging config using setuptools - regenerated the pb2 files with the current protobuf definition and libprotoc 3.6.1 - convert all tabs to spaces - beautify all code according to PEP8 - updated examples to match new usage
- Loading branch information
1 parent
b47a909
commit f12f2a0
Showing
18 changed files
with
2,272 additions
and
1,332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Add in "function annotations" or use "typing" module? | ||
|
||
https://docs.python.org/3/tutorial/modules.html | ||
|
||
# Python specific hints and tips | ||
|
||
Basic instructions used to setup Python packaging found here: https://packaging.python.org/en/latest/tutorials/packaging-projects/ | ||
|
||
## Building PIP package | ||
|
||
From in the `python` directory: | ||
|
||
``` | ||
python3 -m build | ||
``` | ||
|
||
## Install PIP package locally for testing | ||
|
||
From in the `python` directory: | ||
|
||
``` | ||
python3 -m pip install . | ||
``` | ||
|
||
## Recompiling protobuf definition | ||
|
||
From the top directory of tahu: | ||
|
||
``` | ||
protoc -I=sparkplug_b --python_out=python/core/tahu sparkplug_b.proto | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.egg-info |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.