Decentriq DCR Compiler (DDC)
Publish
Whenever you change something in the data model exposted by DDC, run the
following command:
# generates schema json files
cargo build
# if run for the first time
poetry install
# generates schema files in python source dir
poetry run poe codegen-schema
# generates typing files in python source dir
poetry run poe codegen-types
Commit the schema files s.t. they will be included when the package
is published through CI.
Commits need to be tagged with e.g. decentriq_dcr_compiler-v0.1.0
for the CI pipeline to build the artifact.
Debug mode
- Go into your venv (such as for example the poetry environment of the python
tests)
cd
into this directorymaturin develop
- Maturin will now install the package into your env and the tests will use
the latest version