rich-london-74860
04/26/2023, 5:50 PMBUILD
file setup for my plugin, with it’s own resolve
and pants_requirement
(following the documentation here), but whenever I try to run my plugin (or anything), I get a ModuleNotFound
error.
This does not seem to be a problem when running unit tests for that same plugin, which imports the 3rd party dependency.curved-television-6568
04/26/2023, 5:54 PMpants.toml
in the [GLOBAL].plugins
those 3rd party deps will be pulled in as usual, but when you run your plugin as a in-repo plugin you need to provide those deps manually as the plugin is not packaged and installed, so list those requirements in the [GLOBAL].plugins
option should make them available to your plugin.rich-london-74860
04/26/2023, 5:55 PMcurved-television-6568
04/26/2023, 5:57 PMpython_distribution
target to publish it that would be used to instruct pants what 3rdparty deps you have for itcurved-television-6568
04/26/2023, 5:59 PMrich-london-74860
04/26/2023, 6:01 PM[GLOBAL].plugins
do I need to include them as python_requirements
dependencies for unit tests?curved-television-6568
04/26/2023, 6:03 PM[GLOBAL].plugins
will not be available in testscurved-television-6568
04/26/2023, 6:04 PMrich-london-74860
04/26/2023, 6:05 PM[GLOBAL].plugins
includes an entry_point
, is it possible to then invoke that entry_point
via pants?curved-television-6568
04/26/2023, 6:06 PMpex_binary
for that purpose.curved-television-6568
04/26/2023, 6:08 PMrich-london-74860
04/28/2023, 4:53 PMpex_binary
accomplishes what we need, thanks!rich-london-74860
04/28/2023, 4:54 PMconsider that you see two sides of your plugin at once. Both developing the plugin and consuming/using the plugin. And those two have different requirements/setups.I understand the reason… but it is still annoying 😒
rich-london-74860
05/03/2023, 1:51 PMpants
know which version of the 3rd-party dependency to use for the one specified in [GLOBAL].plugins
?
I’m asking because I’ve been seeing a problem where pants gets stuck resolving plugins (the dependencies in [GLOBAL].plugins
). If pants
bootstraps from a virtual environment, are those dependencies installed into the virtual environment?