Fork and clone the repo.
git clone --recursive https://github.com/<your-fork>/substrait-python.git
cd substrait-python
Create a conda environment with developer dependencies.
conda env create -f environment.yml
conda activate substrait-python-env
This might be necessary if you are updating an existing checkout.
git submodule sync --recursive
git submodule update --init --recursive
Run the upgrade script to upgrade the submodule and regenerate the protobuf stubs.
./update_proto.sh <version>
cd third_party/substrait
git checkout <version>
cd -
git commit . -m "Use submodule <version>"
Generate the protobuf files manually. Requires protobuf v3.20.1
.
./gen_proto.sh
Editable installation.
pip install -e .
Run tests in the project's root dir.
pytest