Read and write .cti files.
Since a Docker is not yet available, some setup is needed on your local machine. Install Rust and execute the following:
# Add `cargo deny`
cargo install --locked cargo-deny
# Add `clippy`
rustup component add clippy-preview| Check | Command |
|---|---|
| Run tests | cargo test |
| Lint | cargo clippy |
| License Check | cargo deny check |
# Create conda environment
conda create -n citi --file dev-requirements.txt python=3.8
# Source
conda activate citi
# Local install
pip install -e .nosetests ffi/python/testsNote that everything is linted including source and out of source tests.
flake8Use the following command to run cmake and generate the build files for a debug build.
Note that this command assumes at the command is invoked from the root directory and that
the directory ./ffi/cpp/build/debug/ exists. Also, the command sets the BUILD_TESTING
to ON.
cmake -S ./ -B ./ffi/cpp/build/debug -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ONSimilarly, use the following command to generate a release build without building tests.
cmake -S ./ -B ./ffi/cpp/build/release -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ONInvoke the following command with the path to the build directory to build the project.
cmake --build <path to build directory>If tests were enabled, then the executable for running the tests will be found under the
tests directory within the respective build directory. For example, the following command
shows how the executable test_exec can be invoked on a unix system.
./ffi/cpp/build/debug/ffi/cpp/tests/test_exec- Determine new release version
- Update
versionand commitpackage.versioninCargo.tomlversioninsetup.pyVERSIONinCMakeLists.txt
- Create the tag and push
git tag -a v1.4 -m "my version 1.4"
git push origin v1.4cargo logincargo publish --dry-runcargo publish