File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -1511,9 +1511,24 @@ at the top of your recipe like this
1511
1511
{% set python_min = "3.10" %}
1512
1512
` ` `
1513
1513
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.
1514
+ It also possible to achieve the same effect by adding a `conda_build_config.yaml` file to your recipe that
1515
+ contains a map like
1516
+
1517
+ ` ` ` yaml title="recipe/conda_build_config.yaml"
1518
+ python_min:
1519
+ - "3.10"
1520
+ ` ` `
1521
+
1522
+ If you go that route, you will need to [rerender the feedstock](../infrastructure/#conda-forge-admin-please-rerender)
1523
+ after adding the `conda_build_config.yaml` file.
1524
+
1525
+ :::tip[Hint]
1526
+
1527
+ Adding an explicit `python_min` to your `noarch : python` recipe can be an effective way to ensure the required
1528
+ Python in your package's metadata is enforced at `conda-build` time, as the build will fail if the package's
1529
+ required Python version is newer than `python_min`.
1530
+
1531
+ :: :
1517
1532
1518
1533
:::note
1519
1534
You can’t perform that action at this time.
0 commit comments