Skip to content

Copier template for Scipp projects

License

BSD-3-Clause, BSD-3-Clause licenses found

Licenses found

BSD-3-Clause
LICENSE
BSD-3-Clause
LICENSE.jinja
Notifications You must be signed in to change notification settings

scipp/copier_template

Repository files navigation

Contributor Covenant

Copier template for Scipp projects

See copier for details. Usage example:

copier copy gh:scipp/copier_template myproject  # requires python>=3.9
cd myproject
git init .
tox -e deps  # After adding dependencies to pyproject.toml
git add * .copier-answers.yml .github .gitignore .pre-commit-config.yaml
git commit -m "Setup from copier_template"
tox -e docs
pip install -e .
git remote add origin [email protected]:scipp/myproject.git

Manual Configuration

Once the project is built from the template, there are manual settings to be configured per project/repository.

Documentation Deployment

  1. Select branch of deployed documentation. The documentation will be deployed from a branch via GitHub action. The branch of the documentation must be selected manually on GitHub. Go to Settings > Pages and set source as Deploy from a branch and Branch as gh-pages.

  2. Enable website link on repository page. Once the branch for the documentation is selected after step 1, it can be shown in the repository page. Go to repository page > About section (in the right sidebar). Click the gear and check the "Use your GitHub Pages website" checkbox for "Website".

Package Deployment

See releasing scipp for more information about deployment.

Conda

Go to Settings > Secrets > Actions > Organization secrets. There is scipp organization-wide anaconda key, ANACONDATOKEN. But it should be enabled per repository.

PyPI

  1. Create a new project by adding a trusted publisher.
  2. In the GitHub project settings, go to Environments and add a new environment release. Configure appropriate protection rules such as required reviewers and deploying only from protected branches.

Branch Protection Rules

Go to Settings > Branches and in the Branch protection rules add rule for main branch to project it. Under Protect matching branches setting, select

  • Require a pull request before merging

  • Require approvals

  • Require branches to be up to date before merging

  • Require status checks to pass before merging

    You can either use all checks, or select `required` checks only.
    The list of jobs you can select as `required` checks will be shown only after they are triggered at least once within a week.
    

About

Copier template for Scipp projects

Resources

License

BSD-3-Clause, BSD-3-Clause licenses found

Licenses found

BSD-3-Clause
LICENSE
BSD-3-Clause
LICENSE.jinja

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published