Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Add example of conda_build_config.yaml python_min map #2370

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions docs/maintainer/knowledge_base.md
Original file line number Diff line number Diff line change
Expand Up @@ -1511,9 +1511,24 @@ at the top of your recipe like this
{% set python_min = "3.10" %}
```

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.
It also possible to achieve the same effect by adding a `conda_build_config.yaml` file to your recipe that
contains a map like

```yaml title="recipe/conda_build_config.yaml"
python_min:
- "3.10"
```

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.

:::tip[Hint]

Adding an explicit `python_min` to your `noarch: python` recipe can be an effective way to ensure the required
Python in your package's metadata is enforced at `conda-build` time, as the build will fail if the package's
required Python version is newer than `python_min`.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I previously had this as "different from" but that's wrong. It only acts as a guard if the required Python metadata in the package advances to a newer Python than python_min.


:::

:::note

Expand Down
Loading