Skip to content

Commit 1e71d9e

Browse files
authored
Merge pull request #2365 from conda-forge/beckermr-patch-1
feat: suggest using jinja2/context vars instead of variants for python_min overrides
2 parents 63c625d + 2d4aa20 commit 1e71d9e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/maintainer/knowledge_base.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,14 +1504,16 @@ test:
15041504
```
15051505

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

1509-
```yaml title="recipe/conda_build_config.yaml"
1510-
python_min:
1511-
- 3.10
1510+
```yaml title="recipe/meta.yaml"
1511+
{% set python_min = "3.10" %}
15121512
```
15131513

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

15161518
:::note
15171519

0 commit comments

Comments
 (0)