Stabilize packaging CI and add conda-feedstock compatibility smoke matrix#52
Draft
AmberLee2427 wants to merge 22 commits intovalboz:mainfrom
Draft
Stabilize packaging CI and add conda-feedstock compatibility smoke matrix#52AmberLee2427 wants to merge 22 commits intovalboz:mainfrom
AmberLee2427 wants to merge 22 commits intovalboz:mainfrom
Conversation
- Created meta.yaml file for packaging vbmicrolensing. - Defined package metadata including name, version, source URL, and SHA256 checksum. - Specified build requirements and installation script. - Included test imports and additional package information such as home, summary, and license details.
- Added input option for publish target in the GitHub Actions workflow. - Updated the publish to PyPI step to use API token for authentication. - Introduced a new job for publishing to TestPyPI. - Modified the conda build script to set the CMAKE_GENERATOR environment variable. - Changed license specification in meta.yaml to 'LGPL-3.0-only'.
- Created MAINTAINING_PACKAGES.md to outline the maintenance workflow for the VBM conda package, detailing the roles of local recipes and the conda-forge feedstock. - Added README.md to provide an overview of the conda packaging structure and important notes regarding the local recipe and its purpose.
Author
|
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.
This PR includes packaging and release workflow update for VBMicrolensing.
It adds and stabilizes a cross-platform conda recipe smoke test matrix, improves wheel/sdist build reliability, and adds a publish workflow that is safe for forks. It also adds maintainer documentation for conda-forge maintenance.
The conda smoke workflow (
.github/workflows/test_conda_recipe.yml) is intended to guard against divergence from feedstock recipe compatibility. It is not a replacement for conda-forge feedstock CI, but it provides an upstream preflight check that the recipe still renders and builds across OS/Python targets.The workflow dynamically syncs recipe source metadata before building. It reads the target version from
pyproject.toml(or release/tag input), fetches the matching PyPI sdist metadata, and patchesconda/meta.yamlversion and SHA256 at runtime. Because of this, the committed version and SHA in the repository recipe are not authoritative for CI validation.The publish workflow (
.github/workflows/publish_pypi_release.yml) now supports both tag-based and manual paths, and it skips publish jobs on forks by design.How to use
Publish PyPI And ReleasevX.Y.Z.valboz/VBMicrolensing.workflow_dispatchand choosepublish_target=testpypi(upstream repo only).How to use
Test Conda Recipeworkflow_dispatch) or onrelease.published.pyproject.toml+ PyPI sdist metadata before build.