good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 47cda76d authored by Gene's avatar Gene Committed by GitHub
Browse files

Merge pull request #882 from Ovizro/devel

fixed missing pyi files in python wheel
parents a63ac388 5c5ec0d0
No related branches found
No related tags found
No related merge requests found
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
/build/
/dist/
/tinode_grpc/GIT_VERSION
*.egg-info/
\ No newline at end of file
...@@ -19,6 +19,6 @@ pip install tinode_grpc ...@@ -19,6 +19,6 @@ pip install tinode_grpc
Don't modify included files directly. If you want to make changes, you have to install protobuffers tool chain and gRPC then generate the Python bindings from [`pbx/model.proto`](https://github.com/tinode/chat/tree/master/pbx/model.proto) (your path to `model.proto` may be different): Don't modify included files directly. If you want to make changes, you have to install protobuffers tool chain and gRPC then generate the Python bindings from [`pbx/model.proto`](https://github.com/tinode/chat/tree/master/pbx/model.proto) (your path to `model.proto` may be different):
``` ```
python -m grpc_tools.protoc -I../pbx --python_out=. --grpc_python_out=. ../pbx/model.proto python -m grpc_tools.protoc -I../pbx --python_out=. --pyi_out=. --grpc_python_out=. ../pbx/model.proto
``` ```
The generated `model_pb2_grpc.py` imports `model_pb2.py` as a module instead of a package which is incompatible with python3 packaging system. Use `../pbx/py_fix.py` to apply a fix. This is only needed if you want to repackage the generated files. The generated `model_pb2_grpc.py` imports `model_pb2.py` as a module instead of a package which is incompatible with python3 packaging system. Use `../pbx/py_fix.py` to apply a fix. This is only needed if you want to repackage the generated files.
...@@ -23,7 +23,7 @@ setuptools.setup( ...@@ -23,7 +23,7 @@ setuptools.setup(
license="Apache 2.0", license="Apache 2.0",
keywords="chat messaging messenger im tinode", keywords="chat messaging messenger im tinode",
package_data={ package_data={
"": ["GIT_VERSION"], "": ["GIT_VERSION", "*.pyi"],
}, },
classifiers=[ classifiers=[
"Programming Language :: Python :: 2", "Programming Language :: Python :: 2",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment