Skip to content

Commit

Permalink
Merge pull request #2387 from conda-forge/noarch-python-test-downstream
Browse files Browse the repository at this point in the history
doc: add guidance on testing downstreams with new noarch: python syntax
  • Loading branch information
beckermr authored Nov 26, 2024
2 parents 375e77d + 25bbdca commit b28918c
Showing 1 changed file with 9 additions and 0 deletions.
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

0 comments on commit b28918c

Please sign in to comment.