gRPC protobuf definitions + generated Python code
Project description
Dominon gRPC proto
The gRPC protobuf definitions for the Dominion project
The dominion.proto specifies Dominion service. The Makefile creates two Python modules that can be used by the Dominion server and clients.
Build and publish
This section is for the Dominion developers. If you just want to implement a player or a client library you can stop reading.
Pre-requisites
Create a Python 3.8.2 environment
$ pyenv install 3.8.2
$ pyenv local
$ poetry init
$ poetry env use 3.8.2
$ poetry install
Building the package
Here is the command to build the package:
(🐙)/dominion-grpc-proto
$ poetry run python setup.py bdist_wheel
The result is tar-gzipped file in the dist subdirectory:
(🐙)/dominion-grpc-proto
$ ls dist
dominion_object_model-1.0.1-py3-none-any.whl
Save the following to ~/.pypirc
[distutils]
index-servers=
pypi
pypitest
[pypitest]
repository = https://test.pypi.org/legacy/
username = <your user name>
[pypi]
repository = https://pypi.org/legacy/
username = <your user name>
Next, we can upload the package using twine to PyPI.
(🐙)/dominion/dominion/object_model/
$ poetry run twine upload -p <redacted> dist/*.whl
Uploading distributions to https://upload.pypi.org/legacy/
Uploading dominion_object_model-1.0.2-py3-none-any.whl
100%|██████████████████████████████| 10.2k/10.2k [00:01<00:00, 7.20kB/s]
View at:
https://pypi.org/project/dominion-grpc-proto/1.0.2/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for dominion_grpc_proto-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3284844a871de7f716319d89b00567b5eeced314aeb3c96701393af2532161f2 |
|
MD5 | c1fb6875e6a41f664b93a91b9a016ec7 |
|
BLAKE2b-256 | 8fd56a97150da6029b6a2327a07bd42894aefb0e3872f51b9472b6a548522b1d |