bugwarrior icon indicating copy to clipboard operation
bugwarrior copied to clipboard

RFC: Plugin API

Open StephanMeijer opened this issue 4 years ago • 5 comments

Also, more generally, it might make sense to implement a plugin api so that people can use custom services without them having to be community maintained. On the other hand I'm not sure our current api is all that great and it might be inconvenient to have to consider backwards compatibility when refactoring.

  • @ryneeverett in #770

StephanMeijer avatar Nov 13 '20 21:11 StephanMeijer

Another disadvantage to this could be that people are less likely to do all the work contribute new services that are fully complete and include tests if it's easier to add them as a private service without having to maintain a bugwarrior fork. A compelling reason to push one's service into bugwarrior today is to avoid having to keep rebasing your fork. I don't think this is a good reason to reject this feature outright but is a factor in the cost/benefit analysis.

ryneeverett avatar Nov 13 '20 21:11 ryneeverett

I think you have a point.

StephanMeijer avatar Nov 14 '20 13:11 StephanMeijer

It appears that it is or at least was already implemented in #245. Perhaps it just needs documentation.

ryneeverett avatar Feb 02 '21 04:02 ryneeverett

How could this for example be used for someone's own private plugin-directory?

StephanMeijer avatar Feb 02 '21 12:02 StephanMeijer

I'm not exactly sure but I believe the answer lies in these documents:

  • https://setuptools.readthedocs.io/en/latest/pkg_resources.html
  • https://packaging.python.org/guides/creating-and-discovering-plugins/

ryneeverett avatar Feb 02 '21 15:02 ryneeverett

Still relevant and still happening but closing in favor of tracking in #791.

ryneeverett avatar Aug 24 '24 03:08 ryneeverett