You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Template repository for creating new Datasette plugins
This GitHub template repository can be used to create a new repository with the skeleton of a Datasette plugin, based on the datasette-plugin cookiecutter.
Call your new repository datasette-something - where the `something' describes your new plugin. You can use additional hyphens - examples of valid plugin repository names include:
datasette-places-on-a-map
datasette-emoji
Add a one-line description of your repository, then click "Create repository from template".
Once created, your new repository will execute a GitHub Actions workflow that uses cookiecutter to rewrite the repository to the desired state. This make take 30 seconds or so.
You can see an example of a repository generated using this template here:
The test.yml GitHub Actions workflow will run your tests automatically any time you push a change to the repo.
The publish.yml Action runs when you create a new GitHub release. It will build and upload your package to PyPI.
For this to work, you need to create an environment in your GitHub repository called release. You then need to configure PyPI with a new "pending publisher" with the following settings: