This cookiecutter creates a project structure
# The first time
pip install cookiecutter~=2.1
Then, fill in the prompts and accomplish some post generation cleanup:
target_bundle
- Adafruit bundle or Community library bundlegithub_user
- GitHub user or organization which will host this repo. For example, Adafruit funded libraries should say "adafruit" here.author_name
- Who you are! Sets the copyright to you.library_name
- Shortest name for the library.library_description
- Write a sentence describing the purpose of this librarysphinx_docs
- Should the Sphinx based documentation be included in your repo? If so, entery
oryes
to include the setup.py. For Adafruit libraries this defaults to Yes.
Note
If you are not uploading the repository for Adafruit (i.e., the Community bundle), and you
wish to use the Release feature on GitHub to upload libraries to PyPI, you will need to
add your PyPI token to the repository secrets. Set a secret named PYPI_USERNAME
to
__token__
and a secret named PYPI_PASSWORD
to your API token with the proper scope.
Never share your API token anyone!