Skip to content

Commit

Permalink
Merge pull request #2365 from conda-forge/beckermr-patch-1
Browse files Browse the repository at this point in the history
feat: suggest using jinja2/context vars instead of variants for python_min overrides
  • Loading branch information
beckermr authored Nov 8, 2024
2 parents 63c625d + 2d4aa20 commit 1e71d9e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/maintainer/knowledge_base.md
Original file line number Diff line number Diff line change
Expand Up @@ -1504,14 +1504,16 @@ test:
```

See [CFEP-25](https://github.com/conda-forge/cfep/blob/main/cfep-25.md) for more details on this syntax. If you
need to override this syntax, you can add a `conda_build_config.yaml` file in your recipe like this:
need to override this syntax, you can add a Jinja2 `set` statement (or equivalent `context` variable for v1 recipes)
at the top of your recipe like this

```yaml title="recipe/conda_build_config.yaml"
python_min:
- 3.10
```yaml title="recipe/meta.yaml"
{% set python_min = "3.10" %}
```

You will need to [rerender the feedstock](../infrastructure/#conda-forge-admin-please-rerender) after making this change.
It also possible to achieve the same effect by adding a `conda_build_config.yaml` file to your recipe. If you go that route,
you will need to [rerender the feedstock](../infrastructure/#conda-forge-admin-please-rerender) after adding the
`conda_build_config.yaml` file.

:::note

Expand Down

0 comments on commit 1e71d9e

Please sign in to comment.