Skip to content

Add automated Conda publishing to release workflow#287

Merged
harryswift01 merged 4 commits intomainfrom
284-feature-add-automated-conda-upload
Feb 27, 2026
Merged

Add automated Conda publishing to release workflow#287
harryswift01 merged 4 commits intomainfrom
284-feature-add-automated-conda-upload

Conversation

@harryswift01
Copy link
Member

Summary

Add Conda packaging and automated publishing to the CCPBioSim Anaconda.org channel as part of the existing release workflow.

Changes

Conda recipe added (conda-recipe/meta.yaml)

  • Added a noarch: python conda-build recipe for CodeEntropy.
  • Includes runtime dependencies mirroring pyproject.toml and defines the CodeEntropy CLI entry point.
  • Added basic import/CLI smoke tests in the recipe.

Release workflow updated to publish to Anaconda.org

  • Extended the release GitHub Actions workflow with a conda job.
  • Job updates the recipe version from the workflow input, builds the conda package, and uploads it to the CCPBioSim Anaconda.org organisation.
  • Uses ANACONDA_TOKEN GitHub secret for authentication.

Pre-commit updated to allow Conda Jinja recipe

  • Updated .pre-commit-config.yaml to exclude conda-recipe/meta.yaml from check-yaml (Conda recipes contain Jinja templating and are not valid strict YAML).

Impact

  • Adds an official Conda installation path (conda install -c CCPBioSim CodeEntropy) for users in Conda/HPC workflows.
  • Automates Conda publishing during releases, keeping PyPI and Anaconda distributions in sync.

@harryswift01 harryswift01 added this to the v1.1.0 milestone Feb 27, 2026
@harryswift01 harryswift01 self-assigned this Feb 27, 2026
@harryswift01 harryswift01 added the feature request New feature or request label Feb 27, 2026
@harryswift01 harryswift01 requested a review from jimboid February 27, 2026 10:10
Copy link
Member

@jimboid jimboid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes in this PR bring about our first software package being added to our channel. This is a great first step in bringing wider availability since conda is more popular than pypi and virtual env. Workflow looks like it has the necessary steps and the smoke tests are a nice touch.

Only change I would request is that we add the conda way to virtualise and install to the getting started documentation. If you were preferring to do this after the workflow was verified and in a separate PR then let me know and I''l change this to approve

@harryswift01
Copy link
Member Author

The changes in this PR bring about our first software package being added to our channel. This is a great first step in bringing wider availability since conda is more popular than pypi and virtual env. Workflow looks like it has the necessary steps and the smoke tests are a nice touch.

Only change I would request is that we add the conda way to virtualise and install to the getting started documentation. If you were preferring to do this after the workflow was verified and in a separate PR then let me know and I''l change this to approve

That's a good idea, I can add that to the docs now.

@harryswift01 harryswift01 requested a review from jimboid February 27, 2026 10:34
Copy link
Member

@jimboid jimboid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks great! Thanks for fixing the logo in the main readme too.

@harryswift01 harryswift01 merged commit 17cd37e into main Feb 27, 2026
25 of 26 checks passed
@harryswift01 harryswift01 deleted the 284-feature-add-automated-conda-upload branch February 27, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature request New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add automated Conda (Anaconda Org) release to CI pipeline

2 participants