Dominion gRPC client
Client library using the gRPC protocol for the Dominion project
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
You needto perform these steps just once.
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>
Bump the version
This is important. Whenever you update the package you need to bump the version in setup.py.
Using the Makefile
Just type make and a new package will be built and uploaded to PyPI.
You're done 🎉 !!!
If you want to do it manually follow the rest of this guide.
Building the package
Bump the version in setup.py
Here is the command to build the package:
(🐙)/dominion-grpc-client-py
$ poetry run python setup.py bdist_wheel
The result is tar-gzipped file in the dist subdirectory:
(🐙)/dominion-grpc-client-py
$ ls dist
dominion_grpc_client-0.8.0-py3-none-any.whl
Publish the package
Next, we can upload the package using twine to PyPI.
(🐙)/dominion-grpc-client-py
$ poetry run twine upload -p ${PYPI_PASSWORD} dist/*.whl
Uploading distributions to https://upload.pypi.org/legacy/
Uploading dominion_grpc_client-0.8.0-py3-none-any.whl
100%|█████████████████████████████| 8.07k/8.07k [00:01<00:00, 4.31kB/s]
View at:
https://pypi.org/project/dominion-grpc-client/0.8/
Metadata
Release files for dominion-grpc-client 0.15.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dominion_grpc_client-0.15.0-py3-none-any.whl | Python 3 | none | any | Details for dominion_grpc_client-0.15.0-py3-none-any.whl |
Release files / dominion_grpc_client-0.15.0-py3-none-any.whl
| Download URL | dominion_grpc_client-0.15.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
48eb3bd23cfb005be069fe020a4703bf3419d54949d6ae01cb3592b11328f8ba
|
|
BLAKE2b-256 checksum How to use checksums |
572846536bc4df366ee2c924926862292afe799ad404e19811d4adde12d06423
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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.2 CPython/3.8.2
|
Security for dominion-grpc-client 0.15.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.