Circuitpython: Investigate cookiecutter templates for easy library generation

Created on 31 Oct 2016  路  4Comments  路  Source: adafruit/circuitpython

Putting this on the main micropython lib but this really applies to the libraries (micropython-adafruit-* repos). We're starting to get a lot of conventions for libraries, like having a .travis.yml to support auto MPY generation or adding libraries as submodules to the micropython bundler repo. Let's see if we can capture all these things in a adafruit micropython library template so that a command can be run to give the scaffolding for a new library. This could include stuff like .travis.yml, a readme with instructions on exactly what to do to get bundler support, an examples folder, etc.

Cookiecutter is a generic project templating tool worth checking out for this: https://github.com/audreyr/cookiecutter

enhancement

All 4 comments

@tdicola Cookiecutter is an awesome project. We are using it for Project Jupyter for widget constructions. One particularly nice cookiecutter template is https://github.com/audreyr/cookiecutter-pypackage cc/ @audreyr @hackebrot

@willingc I do think cookiecutter is a great project (but I'm a little biased 馃榿)

Here is an initial cookiecutter for CircuitPython libraries: https://github.com/adafruit/cookiecutter-adafruit-circuitpython

Nice! Thanks @tannewt.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tannewt picture tannewt  路  41Comments

dhalbert picture dhalbert  路  25Comments

kevinjwalters picture kevinjwalters  路  38Comments

ladyada picture ladyada  路  31Comments

PaulStoffregen picture PaulStoffregen  路  29Comments