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

doc: add guidance on testing downstreams with new noarch: python syntax #2387

Merged
merged 2 commits into from
Nov 26, 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
9 changes: 9 additions & 0 deletions docs/maintainer/knowledge_base.md
Original file line number Diff line number Diff line change
Expand Up @@ -1537,6 +1537,15 @@ python_min:
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.

Using `noarch: python` packages, with `python {{ python_min }}` pins in their `test.requires` section, as
`downstream` tests can cause failures for the `upstream` package if the Python version required for the test
conflicts with `upstream` package's Python version. There are two fixes, depending on what is more important.

1. Constrain the `downstream` tests in the `upstream` package to only run on `python_min`.
2. Remove the `python_min` requirement from the `downstream` package's test requirements.

More or less, you prefer the first solution when testing the `downstream` package on `python_min` is the most important thing. You prefer the second solution when testing all Python versions of the `upstream` package with the `downstream` package is the most important thing.

:::tip[Hint]

Adding an explicit `python_min` to your `noarch: python` recipe can be an effective way to ensure the required
Expand Down
Loading