mamba-org/boa

[ feature request ] a conda-build --test like functionality in boa

harelwa opened this issue · 2 comments

Hi,

conda-build has a --test option used to run tests-only on a prebuilt package:

(base) > $ conda-build --help | grep "\--test"
  -t, --test            Test package (assumes package is already built).

the use case in my case is when building a noarch: python package once and testing it on multiple python versions. for example for python=3.10 i would run --

conad-build --tests path/to/tar.bz2 --extra-deps python=3.10

many thanks,

harel

Adding to this, and a --no-test, as a prelude to getting those pre-built packages: it would be useful to be able to confidently build a bunch of packages with complex run/test dependencies (but no build or host dependencies). This is prevented by this discovery of run deps. This is especially handy in CI.

[Building packages with unsolvable runtime dependencies] is prevented by this discovery of run deps.

This seems like a separate issue to me where run deps are installed even though they're not needed. Just removing that line would mean that it's possible to build non-installable packages, so I think this definitely needs to be a flag.