I've been trying to follow the docs on how to crea...
# plugins
h
I've been trying to follow the docs on how to create a plugin and not having any luck.  So far I have this in pants.toml
[GLOBAL]
pants_version = "2.1.1"
pythonpath = ["%(buildroot)s/plugins"]
backend_packages = [
"pants.backend.python",
"dash_app",
]
[source]
root_patterns = [
"plugins",
]
 I have the follow directory structure in the repo:
plugins
BUILD
register.py
dash_app
BUILD
dash_app.py
h
move register.py into dash_app
you may want to add init.py to dash_app too, but not plugins
h
k - I had it there already - let me try again
kk - different error now. I should be able to run ./pants help dash_app right?
Ah got it working.
The init.py was the problem
Thanks for the help once again!
❤️ 1
h
Great! Let us know if you have other questions on the plugin API! Definitely still a WIP and there's some learning curve - you're not alone if you don't understand it at first
👍 1