This note is for maintainers. It explains how to bump the conda-forge/monitors4codegen-feedstock to publish a new version.
Throughout this document, replace
0.0.Xwith your target version andv0.0.Xwith the corresponding Git tag.
-
Bump the version in
pyproject.tomlto0.0.X. -
Push a matching Git tag:
git tag -a v0.0.X -m "monitors4codegen v0.0.X" git push origin v0.0.X
-
Fork
conda-forge/monitors4codegen-feedstockto your account/org. -
Clone your fork and add the upstream remote:
git clone https://github.com/<your-user-or-org>/monitors4codegen-feedstock.git cd monitors4codegen-feedstock git remote add upstream https://github.com/conda-forge/monitors4codegen-feedstock.git git fetch upstream
-
Create a bump branch from the current conda-forge
main:git checkout -b bump-0.0.X upstream/main
Use the GitHub tag tarball for the new version:
curl -L "https://github.com/Software-Analytics-Visualisation-Team/monitors4codegen/archive/refs/tags/v0.0.X.tar.gz" | openssl dgst -sha256
# Output looks like: (stdin)= <SHA256_HASH>Alternative (if openssl is not available):
python - <<'PY'
import hashlib, urllib.request
u="https://github.com/Software-Analytics-Visualisation-Team/monitors4codegen/archive/refs/tags/v0.0.X.tar.gz"
print(hashlib.sha256(urllib.request.urlopen(u).read()).hexdigest())
PYUpdate version, source URL (it points to the tag tarball), and sha256. For a version bump, reset build: number to 0.
{% set name = "monitors4codegen" %}
{% set version = "0.0.X" %}
package:
name: {{ name }}
version: {{ version }}
source:
url: https://github.com/Software-Analytics-Visualisation-Team/monitors4codegen/archive/refs/tags/v{{ version }}.tar.gz
sha256: <PASTE_SHA256_FROM_STEP_2>
build:
number: 0
noarch: python
# ...rest of the recipe unchanged...git add recipe/meta.yaml
git commit -m "monitors4codegen: v0.0.X"
git push -u origin bump-0.0.XOn GitHub, click “Compare across forks” and open a PR:
- base repository:
conda-forge/monitors4codegen-feedstock(branchmain) - head repository: your fork (branch
bump-0.0.X)
Add a brief description; let the conda-forge bots run.
Once the PR is merged and the build completes on conda-forge:
conda search -c conda-forge monitors4codegen
conda install -c conda-forge monitors4codegen- Make sure the Git tag
v0.0.Xexists before computing thesha256. - The
source.urlinmeta.yamlmust match that exact tag tarball. - Use
build: number: 0for version bumps; increment the build number only for recipe-only changes (no version change). - If runtime dependencies changed, update them in
meta.yaml.