Skip to content

Build the conda package from the PyPI release - #8

Closed
chengbiao-jin wants to merge 1 commit into
mainfrom
conda_from_pypi
Closed

chengbiao-jin wants to merge 1 commit into
mainfrom
conda_from_pypi

Conversation

@chengbiao-jin

Copy link
Copy Markdown
Collaborator

Release workflow only — no source changes.

  • Build the conda package from the source package published on PyPI, instead of one the workflow builds itself
    • Conda and PyPI now ship the same files
    • Waits up to 30 minutes for the version to appear on PyPI, then fails with a message to upload it and re-run
  • Fail when the recipe version doesn't match the tag, instead of rewriting it

The release order is unchanged: tag, then PyPI, then approve the conda job. A forgotten PyPI upload now stops the conda job instead of passing unnoticed.

Verification

Ran the new step locally: against 1.0.4 it points the recipe at the PyPI file with PyPI's checksum, which matches the uploaded package. An unpublished version and a tag that doesn't match the recipe both exit with an error. Not run in Actions yet; the first real run is the next release tag.

- Use the source package published on PyPI, so conda and PyPI ship the same files
- Fail with a clear message when the version isn't on PyPI
- Fail when the recipe version doesn't match the tag
@chengbiao-jin

Copy link
Copy Markdown
Collaborator Author

Folded into #7.

@chengbiao-jin
chengbiao-jin deleted the conda_from_pypi branch October 7, 2026 23:36
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.

1 participant