A cookiecutter template for open source Python projects hosted on Github.
In order to get started, it is NOT necessary to clone the git repository of the template. Instead, run the commands below:
- Make sure
cookiecutteris installed:
python3 -m pip install --user cookiecutter- Generate new project in an interactive manner:
cookiecutter gh:quara-dev/python-template-ossWhen running the command, you will be prompted for option values. When no value is provided, default value (displayed between
[]) is used.
Before pushing the first commit to remote repository, some pre-requisites must be met.
- Create new SSH keypair:
ssh-keygen -t ed25519 -f id_ed25519 -N "" -q -C ""- Copy public key to add new Deploy Key to Github project:
cat id_ed25519.pubDeploy key must be named
COMMIT_KEY
- Copy private key to add new Action Secret to Github project:
cat id_ed25519Secret must be named
COMMIT_KEY
-
Grant "Read and Write" workflow permission in
Action>Generalsection. -
Configure Github Pages to be deployed from Github action.
-
Import project from Github into Sonarcloud
-
Obtain project token from Sonarcloud
-
Copy token to add new Action Secret to Github project
Secret must be named
SONAR_TOKEN