From b3e1f688d07a7434376f946120a3850d9dffa4c4 Mon Sep 17 00:00:00 2001 From: Mridul Seth Date: Wed, 25 Sep 2024 15:35:47 +0200 Subject: [PATCH] Add individual project copyright notices, not scipp wide --- template/LICENSE.jinja | 2 +- template/docs/conf.py.jinja | 6 +++--- template/pyproject.toml.jinja | 2 +- .../__init__.py.jinja | 2 +- .../__init__.py.jinja | 2 +- template/tests/package_test.py.jinja | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/template/LICENSE.jinja b/template/LICENSE.jinja index 206ea5f..e4ad1aa 100644 --- a/template/LICENSE.jinja +++ b/template/LICENSE.jinja @@ -1,6 +1,6 @@ BSD 3-Clause License -Copyright (c) {{year}}, {{orgname|capitalize}} contributors (https://github.com/{{orgname}}) +Copyright (c) {{year}}, {{projectname}} contributors (https://github.com/{{orgname}}/{{projectname}}) All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/template/docs/conf.py.jinja b/template/docs/conf.py.jinja index 842eb63..4679e79 100644 --- a/template/docs/conf.py.jinja +++ b/template/docs/conf.py.jinja @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) {{year}} {{orgname|capitalize}} contributors (https://github.com/{{orgname}}) +# Copyright (c) {{year}}, {{projectname}} contributors (https://github.com/{{orgname}}/{{projectname}}) import doctest import os @@ -15,8 +15,8 @@ logger = logging.getLogger(__name__) # General information about the project. project = '{{prettyname}}' -copyright = '{{year}} Scipp contributors' -author = 'Scipp contributors' +copyright = '{{year}} {{projectname}} contributors' +author = '{{projectname}} contributors' html_show_sourcelink = True diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index 9011865..bba8891 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta" [project] name = "{{projectname}}" description = "{{description}}" -authors = [{ name = "Scipp contributors" }] +authors = [{ name = "{{projectname}} contributors" }] license = { file = "LICENSE" } readme = "README.md" classifiers = [ diff --git a/template/src/{% if namespace_package %}{{namespace_package}}{% endif %}/{{ projectname.removeprefix(namespace_package) }}/__init__.py.jinja b/template/src/{% if namespace_package %}{{namespace_package}}{% endif %}/{{ projectname.removeprefix(namespace_package) }}/__init__.py.jinja index 7f76a19..0fde1e3 100644 --- a/template/src/{% if namespace_package %}{{namespace_package}}{% endif %}/{{ projectname.removeprefix(namespace_package) }}/__init__.py.jinja +++ b/template/src/{% if namespace_package %}{{namespace_package}}{% endif %}/{{ projectname.removeprefix(namespace_package) }}/__init__.py.jinja @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) {{year}} {{orgname|capitalize}} contributors (https://github.com/{{orgname}}) +# Copyright (c) {{year}}, {{projectname}} contributors (https://github.com/{{orgname}}/{{projectname}}) # ruff: noqa: E402, F401 import importlib.metadata diff --git a/template/src/{% if not namespace_package %}{{projectname}}{% endif %}/__init__.py.jinja b/template/src/{% if not namespace_package %}{{projectname}}{% endif %}/__init__.py.jinja index 0092850..2b6630b 100644 --- a/template/src/{% if not namespace_package %}{{projectname}}{% endif %}/__init__.py.jinja +++ b/template/src/{% if not namespace_package %}{{projectname}}{% endif %}/__init__.py.jinja @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) {{year}} {{orgname|capitalize}} contributors (https://github.com/{{orgname}}) +# Copyright (c) {{year}}, {{projectname}} contributors (https://github.com/{{orgname}}/{{projectname}}) # ruff: noqa: E402, F401 import importlib.metadata diff --git a/template/tests/package_test.py.jinja b/template/tests/package_test.py.jinja index e0c4cef..b45dc87 100644 --- a/template/tests/package_test.py.jinja +++ b/template/tests/package_test.py.jinja @@ -1,5 +1,5 @@ # SPDX-License-Identifier: BSD-3-Clause -# Copyright (c) {{year}} {{orgname|capitalize}} contributors (https://github.com/{{orgname}}) +# Copyright (c) {{year}}, {{projectname}} contributors (https://github.com/{{orgname}}/{{projectname}}) """Tests of package integrity.