Allow to exclude test files from conda package
Currently, whenever a recipe specifies test files, these test files end up in the final conda package. For example,
source:
path: ../
build:
number: 0
noarch: python
package:
name: test
version: v1
requirements:
run:
- python >=3.9
tests:
- script: test -f foo.txt
files:
source:
- foo.txt
causes foo.txt to end up in /etc/conda/test-files/test/0 of the final package.
In some cases, it would be desirable to not include these test files into the final package. Would it be possible to introduce a flag to prevent this behavior?
@pavelzw suggested that this might even make sense to do when --no-include-recipe is specified, I personally can't comment on that in detail :smile:
Yeah this is how tests currently work. We could also think about creating additional -test packages automagically with a flag.
Side-note: I also just realized that specifying --no-test still copies these files 🫣