Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion local_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ class CurrentDateExtension(Extension):
def __init__(self, environment):
super().__init__(environment)

now = datetime.datetime.now(datetime.timezone.utc)
environment.globals.update({
"current_year": datetime.datetime.utcnow().year
"current_year": now.year,
"current_date": now.date().isoformat()
})

#
Expand Down
25 changes: 25 additions & 0 deletions {{cookiecutter.project_slug}}/CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
title: "{{cookiecutter.project_name}}"
abstract: "This is an awesome project. It does many things."
keywords:
- keyword1
- keyword2
- keyword3
authors:
- name: "{{cookiecutter.full_name}}"
orcid: "https://orcid.org/0000-0000-0000-0000"
{%- if cookiecutter.version_management == "manually" %}
version: 0.0.1
{%- endif %}
date-released: "{{ current_date }}"
identifiers:
- description: This is a collection of archived snapshots of this project.
type: doi
value: "10.5281/zenodo.123456"
{%- if cookiecutter.license != "None" %}
license: {{cookiecutter.license}}
{%- endif %}
{%- if cookiecutter.remote_url != 'None' %}
repository-code: {{cookiecutter.remote_url}}
{%- endif %}
1 change: 1 addition & 0 deletions {{cookiecutter.project_slug}}/FILESTRUCTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ This is an explanation of the file structure that the cookiecutter generated for
hosting provider.
* `README.md` is the file that users will typically see first when discovering your project.
* `COPYING.md` provides a list of copyright holders.
* `CITATION.cff` provides citation metadata so others know how to reference your project in publications.
{%- if cookiecutter.license != "None" %}
* `LICENSE.md` contains the license you selected.
{%- endif %}
Expand Down
2 changes: 2 additions & 0 deletions {{cookiecutter.project_slug}}/TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ The following tasks need to be done to get a fully working project:
so, you need to select it from the list of repositories (potentially re-syncing with GitHub). Then, head
to the "Settings" Tab and select "Global Upload Token". Here, you should select the "not required" option.
{%- endif %}
* Adjust pyproject.toml to your needs, e.g., add description, e-mail{%- if cookiecutter.version_management != "setuptools_scm" %}, version number{%- endif %}.
* Adjust CITATION.cff to your needs. See [Citation File Format (CFF) Website](https://citation-file-format.github.io/) for more information.
Loading