<@UB2J9BQA0> Can private/3rd party plugins be used...
# plugins
w
@hundreds-father-404 Can private/3rd party plugins be used directly in the pants.toml? Like, pointing
backend_packages
to a github repo? I'm trying to figure out a way to share some plugins across projects and with clients
f
You can use the
plugins
config option to install PyPi packages for Pants itself. Then you can reference
baclend_packages
from whatever was installed that way.
The Pants repo does this for the
toolchain.pants.plugin
which handles, among other things, integration of Pants CI with the Toolchain Remote Cache. https://github.com/pantsbuild/pants/blob/3d7f6a666776a418dfdec054e268fd64cf23da97/pants.toml#L33
w
Thanks! So the plugins need to be public facing?
f
I don’t believe so.
Depends on whether the syntax for
plugins
allows installing from a private repository. I don’t know offhand whether it is general pip syntax for that field.
h
The plugins can be in the same repo, or they can be published to a private package repo
👍 1
But you would need to publish the plugin to a private repo
Unless it lives in the same repo as the code it's running on
w
Ah okay, so small workaround, but not a big deal - thanks! I have a ridiculous set of plugins for one project, that are all very much "experimental" (calls a swift compiler, python, c++, etc - super nutty) I want to have a client run it as well, but didn't want to maintain like 4 copies of that code 🙂
1
h