Generates the nibiru_proto
Python package for the Nibiru Python SDK.
All you need to do is run:
poetry run make proto-gen
This executes the code generation script, proto-gen-py.sh. The protobuf files come from the NibiruChain/nibiru repo.
Our recommended Python setup is to use pyenv
in combination with poetry
.
pyenv
is a tool for installing and managing Python interpreters. This will let you seamlessly switch between Python versions.poetry
is used for managing virtual environments, dependency resolution, package installations, package building, and package publishing.- We assume you're on a Unix machine such as WSL2 Ubuntu, MacOS, or a common Linux distro.
See NibiruChain/py-sdk for installation instructions.
poetry install
poetry run pytest
The publish workflow looks like this:
-
Code-gen the new types from the chain. If there are changes, these should be committed.
poetry run make proto-gen
-
Increment the package version. For example, use
poetry version preminor
to do a pre-release for a minor version.poetry version [update-keyword]
-
Create a tag and push it the remote origin.
git tag -asm "v0.16.2" v0.16.2 git push --tags
-
The tag should trigger a GitHub Action Workflow.
This software is licensed under the MIT license. See LICENSE for full disclosure.
© 2022 Nibi, Inc.