-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a follow-up on PR #29, the template has been completely migrated to `copier`.
- Loading branch information
Showing
32 changed files
with
229 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
project_name: | ||
type: str | ||
default: "pybamm-example-project" | ||
help: "The name of your project" | ||
|
||
project_slug: | ||
type: str | ||
help: The name of the directory containing the Python files for your project. This should be in `snake_case`, and this is what you will import it with, such as `import pybamm_example_project`. | ||
default: "{{ project_name|lower|replace('-', '_')|replace(' ', '_') }}" | ||
validator: | | ||
{% if ('-' in project_slug or ' ' in project_slug) %} | ||
The name of the directory should not contain spaces or hyphens | ||
{% endif %} | ||
platform: | ||
type: str | ||
choices: | ||
- github | ||
- gitlab | ||
default: github | ||
help: "The platform you are using to host your project" | ||
|
||
org: | ||
type: str | ||
default: "pybamm-team" | ||
help: "The name of your organisation (or username, if you are not part of an organisation)" | ||
|
||
url: | ||
type: str | ||
default: "https://{{ platform }}.com/{{ org }}/{{ project_name }}" | ||
help: "The origin URL to your code repository" | ||
|
||
branch: | ||
type: str | ||
default: "main" | ||
help: "The default branch of your repository" | ||
|
||
full_name: | ||
type: str | ||
default: "John Doe" | ||
help: "Your name on your hosting platform (will be used later as your committer name)" | ||
|
||
email: | ||
type: str | ||
default: "[email protected]" | ||
help: "Your email for your hosting platform (will be used later to configure Git)" | ||
|
||
project_short_description: | ||
type: str | ||
default: "A battery modelling project that uses the PyBaMM framework" | ||
help: "A short description of your project" | ||
|
||
license: | ||
type: str | ||
choices: | ||
- BSD-3-Clause | ||
- Apache | ||
- MIT | ||
default: BSD-3-Clause | ||
help: "Select a license" | ||
|
||
backend: | ||
type: str | ||
choices: | ||
- "hatch" | ||
default: "hatch" | ||
help: "Choose a build backend. hatch (hatchling) is recommended for pure Python projects" | ||
|
||
vcs: | ||
type: bool | ||
default: false | ||
help: "Let hatch get the version from your version control system (Git/Mercurial/SVN) using the hatch-vcs plugin?" | ||
|
||
mypy: | ||
type: bool | ||
default: false | ||
help: "Use the mypy type checker" | ||
|
||
|
||
_copy_without_render: | ||
type: list | ||
default: ["*.yml"] | ||
|
||
_jinja_extensions: | ||
- jinja2_time.TimeExtension | ||
|
||
_subdirectory: template | ||
|
||
_tasks: | ||
- git init -b {{branch}} | ||
- git config user.name {{full_name}} | ||
- git config user.email {{email}} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# {{ project_name }} | ||
|
||
[![Actions Status][actions-badge]][actions-link] | ||
[![Documentation Status][rtd-badge]][rtd-link] | ||
|
||
[![PyPI version][pypi-version]][pypi-link] | ||
[![Conda-Forge][conda-badge]][conda-link] | ||
[![PyPI platforms][pypi-platforms]][pypi-link] | ||
|
||
[![GitHub Discussions][github-discussions-badge]][github-discussions-link] | ||
|
||
<!-- SPHINX-START --> | ||
|
||
<!-- prettier-ignore-start --> | ||
|
||
[actions-badge]: {{url}}/workflows/CI/badge.svg | ||
[actions-link]: {{url}}/actions | ||
[conda-badge]: https://img.shields.io/conda/vn/conda-forge/{{project_name}} | ||
[conda-link]: https://github.com/conda-forge/{{project_name}}-feedstock | ||
[github-discussions-badge]: https://img.shields.io/static/v1?label=Discussions&message=Ask&color=blue&logo=github | ||
[github-discussions-link]: {{url}}/discussions | ||
[pypi-link]: https://pypi.org/project/{{project_name}}/ | ||
[pypi-platforms]: https://img.shields.io/pypi/pyversions/{{project_name}} | ||
[pypi-version]: https://img.shields.io/pypi/v/{{project_name}} | ||
[rtd-badge]: https://readthedocs.org/projects/{{project_name}}/badge/?version=latest | ||
[rtd-link]: https://{{project_name}}.readthedocs.io/en/latest/?badge=latest | ||
|
||
<!-- prettier-ignore-end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
{{cookiecutter.project_name}}/docs/index.md → template/docs/index.md.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# {{ cookiecutter.project_name }} | ||
# {{ project_name }} | ||
|
||
```{toctree} | ||
:maxdepth: 2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.