Skip to content

Switch to rattler for conda package#532

Open
Marc-Antoine Schmidt (MarcAntoineSchmidtQC) wants to merge 2 commits into
mainfrom
conda-build-using-rattler
Open

Switch to rattler for conda package#532
Marc-Antoine Schmidt (MarcAntoineSchmidtQC) wants to merge 2 commits into
mainfrom
conda-build-using-rattler

Conversation

@MarcAntoineSchmidtQC

Copy link
Copy Markdown
Member

This aligns our CI with glum

Checklist

  • Added a CHANGELOG.rst entry

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the conda packaging and CI workflow from conda-build/meta.yaml to rattler-build/recipe.yaml, aligning the repository’s package build pipeline with the approach used in glum.

Changes:

  • Replace conda.recipe/meta.yaml with a new conda.recipe/recipe.yaml in rattler-build format.
  • Replace the previous conda-build GitHub Actions workflow with a new workflow that uses prefix-dev/rattler-build-action.
  • Adjust build matrix targets (OS/Python variants) for the new packaging workflow.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
conda.recipe/recipe.yaml New rattler-build recipe replacing the previous conda-build meta.yaml.
conda.recipe/meta.yaml Removed legacy conda-build recipe definition.
.github/workflows/package.yml New CI workflow to build conda packages using rattler-build.
.github/workflows/conda-build.yml Removed legacy conda-build CI workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


jobs:
build:
name: ${{ matrix.variant-file }}
Comment on lines +56 to +58
recipe-path: conda.recipe/recipe.yaml
build-args: -m .ci_support/${{ matrix.variant-file }}.yaml --target-platform ${{ matrix.target-platform }} ${{ matrix.rattler-build-args }}
artifact-name: package-${{ matrix.variant-file }}
Comment on lines +51 to +52
GIT_DESCRIBE_NUMBER="$(git rev-list --count ${GIT_DESCRIBE_TAG}..HEAD || echo UNKNOWN)"
echo GIT_DESCRIBE_NUMBER=$GIT_DESCRIBE_NUMBER >> $GITHUB_OUTPUT
Comment on lines +6 to +15
# In addition to pull requests, we want to run CI for pushes
# to the main branch and tags.
push:
branches:
- "main"
tags:
- "*"
paths:
- ".github/**"
- "conda.recipe/**"
Comment thread conda.recipe/recipe.yaml
- xsimd <11|>12.1
run:
- python
- numpy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants