wearpants / twiggy

Pythonic logger, shipped in Redhat & Debian
BSD 3-Clause "New" or "Revised" License
47 stars 11 forks source link

contrib packages #30

Open wearpants opened 11 years ago

wearpants commented 11 years ago

Figure out a nice way to package & distribute extensions. We'd like to keep the core only dependent on stdlib. There are a number of useful extensions, mainly different output backends.

Should these all be packaged in a twiggy-contrib or individual packages or what? Where do they live in version control (separate repos or all together)? What namespace do they live in, and how (__package__)?

Check out how Sphinx handles this

wearpants commented 7 years ago

See what else can come from twiggy-goodies

wearpants commented 7 years ago

So the standard way to do this in 2017 is to include all your code in the core package, and specify subsets of dependencies in setup.py. Something like:

pip install twiggy[django]  # pulls in things need for django support
pip install twiggy[twisted]  # pulls in twisted for integration
pip install twiggy[logstash]  # libraries need for LogstashOutput
etc.