Template repository for Python projects.
- On GitHub, create a new repository. When prompted, select python_project_template as template.
- Clone the new repository to your local machine.
- In your local clone (i.e. on your local machine), enter any new names in the
names.csvfile to change the package name, author name etc.
Enter new values right after the,in each line. Leave empty for fields you do not want to be set.
Mandatory fields are:
PackageNameDashed, e.g.my-package
PackageNameCapitalized, e.g.MyPackage
GitHubOrganisation, e.g.owner
Author1Name, e.g.Author One
Author1Email, e.g.author.one@xyz.com
All other fields are optional (yet will help you to set up the package more comprehensively). - In your local terminal, run
./rename_package.ps1. This will create a new local branch namedrename-packagein which all name changes get applied. - Review the changes made in the
rename-packagebranch. - If ok, merge
rename-packageintomain.
If not ok, delete the local branchrename-package, and repeat from step 1. - Finally, push your changes in
mainto remote.
- In the GitHub Settings of the newly created repository, create an environment named
release, and within that a secret namedRELEASE_TOKENcontaining a personal access token (PAT) from you. The PAT need to have the following scope:- gist
- repo
- workflow