Distributing Conda Package via conda-forge#
The Conda recipe hosted at conda-forge/cantera-feedstock is used to build packages for both stable and pre-release versions of Cantera.
Stable Cantera releases#
fork the repository above
Update
recipe/meta.yaml:Change the header line that looks like
{% set version = "3.1.0" %}In the
sourcesection, update theurlandsha256for both the maincanterarepo as well as thecantera-example-datarepo.The hash in the
urlis the hash of the commit corresponding to the tagged release.The easiest way to get the
sha256of the archive is to download it from that URL and runsha256sumon that file.
Update the value of
CT_GIT_COMMITwith the same hash as used in the URL for thecanterarepository.Under
build, reset thenumberto 0.
Do whatever else is needed to bring the conda-forge recipe up to date, for example by using conda-smithy.
Create a pull request against the
mainbranch ofconda-forge/cantera-feedstockOnce the PR is merged, you should be able to see the status of the final package builds in Azure DevOps
Cantera pre-releases#
Follow the same steps as above but create the pull request against the
devbranch ofconda-forge/cantera-feedstockWhether your starting point should be the existing
mainordevbranch is a bit tricky. In either case, there are likely to be conflicts to work out. Use caution to make sure that important updates to the build aren’t lost when merging branches.