This is a template for creating new Julia packages. When you create a repository from this template, a GitHub action will automatically:
- Update the package name to match your repository name
- Generate a new UUID for your package
- Replace placeholder values with appropriate defaults
- Rename source files to match your package name
- Comprehensive CI setup with GitHub Actions
- Documentation generation with Documenter.jl
- Test suite with TestItemRunner.jl and Aqua.jl
- Code quality checks with JET.jl
- Benchmarking setup
- Standardized project structure
- Click "Use this template" to create a new repository
- Create a Personal Access Token (PAT) and add it to your repository (see section below)
- Wait for the initialization workflow to complete
- Clone your new repository
- Start developing your package!
For the initialization workflow to work properly, you need to set up a Personal Access Token (PAT):
-
Create a Personal Access Token:
- Go to your GitHub account → Settings → Developer settings → Personal access tokens → Tokens (classic)
- Click "Generate new token" (classic)
- Give it a descriptive name (e.g., "Package Template Initialize")
- Set an appropriate expiration
- Select the
repo
andworkflow
scopes (full control of repositories and workflows) - Click "Generate token"
- Copy the generated token (you won't see it again!)
-
Add the token to your repository:
- Go to your newly created repository
- Go to Settings → Secrets and variables → Actions
- Click "New repository secret"
- Name:
PAT_TOKEN
- Value: paste your copied token
- Click "Add secret"
This token allows the initialization workflow to commit changes to workflow files in your repository.
After creating your repository, you may want to:
- Update author information in
Project.toml
- Modify documentation settings in
docs/make.jl
- Adjust CI settings in
.github/workflows/
- Edit or extend the test suite in
test/
This template is licensed under MIT (see the LICENSE file). You are free to choose a different license for your own package.