plain-carpet-73994
05/10/2021, 11:50 PM16:45:19.88 [WARN] Ignoring `[python_setup].resolve_all_constraints` option because constraints file does not cover all requirements.
which I think means my constraints.txt
is being ignored (I didn't quite grok the docs). That seems unfortunate. Note that the stubs are git+http
style so I can't freeze them even if I did put them in the <http://requirements.in|requirements.in>
. Is there no way to get these 3rd party type stubs but also keep the constraints.txt
working?hundreds-father-404
05/11/2021, 12:00 AMplain-carpet-73994
05/11/2021, 12:13 AMgit+https
requirements in our <http://requirements.in|requirements.in>
but we'd still need to add an explicit dependency on any type stubs on any targets that use `numpy`; that part can't be made automatic. Is that correct?plain-carpet-73994
05/11/2021, 12:14 AMmodule_mapping
like stubs_mapping
so that it could be made automatic and not cause ambiguity.hundreds-father-404
05/11/2021, 12:24 AM.pyi
file checked into your repo. I like the idea of allowing that for 3rd party code too
Would you mind opening a GitHub issue with this idea please? https://github.com/pantsbuild/pants/issues
like aWhich btw, you could use this as a workaround for nowfile checked into your repo.pyi
plain-carpet-73994
05/11/2021, 12:27 AMhundreds-father-404
05/11/2021, 12:32 AMplain-carpet-73994
05/11/2021, 12:37 AMhundreds-father-404
05/12/2021, 1:14 AMstubs_mapping
. For example, {"numpy-stubs": ["numpy"]}
hundreds-father-404
05/12/2021, 1:17 AM-stubs
removed, e.g. numpy-stubs
defaults to the module numpy
The special mapping is only relevant if there's a stubs library which doesn't follow that naming schemeplain-carpet-73994
05/12/2021, 3:43 PMhundreds-father-404
06/09/2021, 5:42 AM