DEVOPS-1065: configure auto-versioning in local conda recipes#125
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the project’s conda recipe/versioning flow to derive the conda package version from an auto-generated _version.json, aligning conda builds with poetry-dynamic-versioning outputs.
Changes:
- Switch conda
recipe.yamlto load the package version from_version.jsoninstead of a hardcoded placeholder. - Reconfigure
poetry-dynamic-versioningsubstitution to target_version.json(and update initial placeholder content). - Enable
build-experimentalin the dev conda publish GitHub workflow.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
recipe.yaml |
Loads conda recipe version from _version.json via load_from_file(...). |
pyproject.toml |
Redirects dynamic version substitution to _version.json and updates initial version placeholders. |
.github/workflows/python_deploy_dev.yml |
Passes build-experimental: true to the reusable conda publish workflow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+5
to
+6
| # Extract version from auto-generated _version.json | ||
| version: ${{ load_from_file("_version.json").version | trim }} |
| initial-content = """ | ||
| # Version placeholder that will be replaced during substitution | ||
| __version__ = "0.0.0" | ||
| __version__ = "0.0.0.dev0" |
|
|
||
| [tool.poetry-dynamic-versioning.files."recipe.yaml"] | ||
| [tool.poetry-dynamic-versioning.files."_version.json"] | ||
| persistent-substitution = true |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #125 +/- ##
===========================================
+ Coverage 92.83% 92.93% +0.10%
===========================================
Files 27 27
Lines 1507 1501 -6
===========================================
- Hits 1399 1395 -4
+ Misses 108 106 -2
🚀 New features to boost your workflow:
|
sebhmg
reviewed
May 28, 2026
sebhmg
approved these changes
May 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DEVOPS-1065 - configure auto-versioning in local conda recipes