https://pantsbuild.org/ logo
#development
Title
# development
w

wooden-thailand-8386

11/05/2020, 1:48 AM
and I was also wondering if someone decides to add support to a set of goals/targets, e.g.:
docker
/`docker-compose` if that would be easy to share as a separate package, sort of how
pytest
has it's own ecosystem with a bunch of other libraries that can be added as needed... That's just a thought that came across when I was thinking about maybe someone will want to add support to something that the pants community might not find that it fits / should live inside a "vanilla" pants and then they could still do it on their own repo.
h

hundreds-father-404

11/05/2020, 1:49 AM
You would activate it by adding
pants.backend.docker
to your
backend_packages
option. Is this what you mean?
w

wooden-thailand-8386

11/05/2020, 1:49 AM
but what if it was my library? For instance on my github:
thamenato/pants-docker
and that's something that I make available on pypi with the name of
pants-docker
I was thinking something like when you install
pytest
with pip and then you'd install
pytest-bdd
or any other pytest package that extends it somehow
h

hundreds-father-404

11/05/2020, 1:51 AM
ohh I misread what you meant. We would absolutely love to have an ecosystem like Pytest, where you can publish your own plugins. This is possible with the
plugins
option. Adding something will download from PyPI and activate its backend package. but we don’t document that because there’s some infrastructure we still need to design. The biggest challenging is versioning. The Plugin API is not yet stable, so it’s not guaranteed a plugin written in 2.0.0 will work with Pants 2.1.0. Ideally, a plugin author can express which version(s) they’re compatible with. @chilly-magazine-21545 has an interesting proposal at https://github.com/pantsbuild/pants/issues/10671
💯 1
f

flat-zoo-31952

11/05/2020, 1:54 AM
that reminds me that i should share my docker plugin as a gist
❤️ 2
i'll publish it to pypi too as soon as i have a compatibility mechanism
w

wooden-thailand-8386

11/05/2020, 2:00 AM
@flat-zoo-31952 that be amazing! I feel like for stuff such as
docker
and a couple of other CI tools folks might already have their own solution and having this way of sharing it and making that plugin better with open source would be the way to go.
f

flat-zoo-31952

11/05/2020, 2:01 AM
checkout #plugins, i just posted the link there