Skip to main content

gRPC protobuf definitions + generated Python code

Project description

Dominon gRPC proto

PyPI PyPI

The gRPC protobuf definitions for the Dominion project

The dominion.proto file specifies the Dominion service definition. 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

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>

Building the gRPC generated code

Just run make

Building the package

Bump the version in the setup.py file

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_grpc_proto-0.2.0-py3-none-any.whl

Publish the package

Next, we can upload the package using twine to PyPI.

(🐙)/dominion-grpc-proto
$ poetry run twine upload -p <redacted> dist/*.whl

Uploading distributions to https://upload.pypi.org/legacy/
Uploading dominion_grpc_proto-0.2.0-py3-none-any.whl
100%|███████████████████████████████████| 10.3k/10.3k [00:02<00:00, 3.54kB/s]

View at:
https://pypi.org/project/dominion-grpc-proto/0.2.0/

Project details


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

If you're not sure about the file name format, learn more about wheel file names.

dominion_grpc_proto-0.3.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file dominion_grpc_proto-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: dominion_grpc_proto-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2

File hashes

Hashes for dominion_grpc_proto-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1643213f737bf6e1a65fe2e562dfbc2e7a1fecfac1164e72d7e0ddb0832d175
MD5 1eb1fc6162810b3c81c5663dc1f84289
BLAKE2b-256 dc3c237d0aeb8164ae3ad09ba637011c17897b3d03841222296bd30914a7feb7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page