PineAPPL

Contribution guide

Rust

Increasing the minimum supported Rust version (MSRV)

Do not change the MSRV for releases with increased patch version number. When increasing the MSRV make sure to set it everywhere to the same value:

  1. first update the pineappl-ci container, by
    • adding the new MSRV to the variable RUST_V,
    • making sure the nightly version is the last entry and
    • leaving in the previous MSRV to not break the CI in between the transition from it
  2. commit the previous changes and manually run the Container Github action
  3. next, update the MSRV in the following files:
    • in the top-level Cargo.toml; all other projects in the workspace should inherit the setting in their respective Cargo.toml files
    • in README.md and docs/installation.md
    • in all Github workflows (.github/workflows/)
    • in .readthedocs.yml update the value of the rust field and make sure RTD supports it
    • in make_release.sh update the cargo msrv call
  4. commit the previous changes and push them after the container created by step 2 is ready

Coding guidelines

Writing tests that need test data

Git

Making a new release

In the maintainers directory run

./make_release 0.5.4

and replace 0.5.4 with a version string, not including v at the start. The version strings must adhere to Semantic Versioning.

This will take care of almost everything: the C, Python and Rust interfaces and their documentation. After some time also a new Conda package will be generated, for which the pull request will have to be accepted manually though.

Updating the CI’s container

To update the software the CI runs with, modify the files in maintainer/pineappl-ci. See maintainer/README.md for a description of what these files do. To generate a new container, you need to manually run the Container action from the branch in which you modified the container files. After the container has been generated, all following commits in every branch will use the new container.