Use this repository as a template to write a new modules for Ladybug Tools.
- Install cookiecutter and pygithub (to automate creating the repositories on Github after generating them locally)
pip install cookiecutter pygithub
- Run cookiecutter against this repository and follow the prompts
cookiecutter gh:ladybug-tools/ladybug-tools-template
# Follow cookiecutter prompts
-
Because Github Actions and cookiecutter both use
{{
and}}
to denote text that should be replaced, you must go through theci.yaml
file after running cookiecutter and manually replace all instances of[[
with{{
and]]
with}}
. -
If you did not initialize the project on Github do so manually. Please visit https://github.com/new and create a repository for ladybug-tools/YOUR-PROJECT-SLUG (example: ladybug-tools/fire-ant for a project called Fire Ant). If you don't have the correct authorization to create repositories on the ladybug-tools organization then create a repo for your Github user and get in touch with the admins.
-
Add
GH_TOKEN
,PYPI_USERNAME
andPYPI_PASSWORD
to project secrets on GitHub. The secrets are set in Ladybug Tools organization level.
The repository should be ready! Now go write some actual code!