How to specify the constraints file for a test? #3074
-
Let's say I have a package that has I tried passing in a constraints file with this constraint to Is there a way to specify exactly what ends up in constraints.txt? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
Weirdly, it seems like the best way I've found to do this is to actually pre-install my constraints file as part of deps, rather than using it as a constraint:
If I use it as an actual constraint ( I don't want to use all of the dependencies in
Am I misunderstanding how this works? It seems like the above workaround is the only way to get what I'm looking for. |
Beta Was this translation helpful? Give feedback.
install_command
is the answer. Usingconstrain_package_deps
oruse_frozen_constraints
was barking up the wrong tree. It wasn't explicit in the documentation, but this is applied to bothdep
and package installs. If using this intox.ini
, this will work:The only thing that would be one better would be being able to have separate install commands for deps and package installs (so they can get their own constraints). Perhaps a feature request.