From 6fb06b4a1c7cc7e7406c60fa73c8fcfb90049407 Mon Sep 17 00:00:00 2001 From: Fabrice Bauzac Date: Tue, 15 Apr 2025 09:26:42 +0200 Subject: [PATCH] Add license boilerplate To better protect the opensource nature of the project in law. --- README.md | 22 +++++++++++++++++++++- package/__main__.py | 15 +++++++++++++++ package/module.py | 15 +++++++++++++++ test_package.py | 15 +++++++++++++++ 4 files changed, 66 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d58a347..b39f510 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +Copyright (C) YEAR Amadeus s.a.s. +See the end of the file for license conditions. + # python-project-starter This is a template repo to act as a reference when starting up a new project in python. It consolidates best practices in regards to minimal level of documentation as well as the CI aspects. @@ -117,4 +120,21 @@ gh release create v[a.b.c] --prerelease --title "Kick starting the release" --t ``` # Contributing -We welcome contributions to this project! If you have an idea for a new feature, bug fix, or improvement, please open an issue or submit a pull request. Before contributing, please read our [contributing guidelines](./CONTRIBUTING.md). \ No newline at end of file +We welcome contributions to this project! If you have an idea for a new feature, bug fix, or improvement, please open an issue or submit a pull request. Before contributing, please read our [contributing guidelines](./CONTRIBUTING.md). + +# License + +This file is part of PROJECT. + +PROJECT is free software: you can redistribute it and/or +modify it under the terms of the Apache 2.0 License as published by +the Apache Software Foundation. + +PROJECT is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License +for more details. + +You should have received a copy of the Apache 2.0 License +along with PROJECT. +If not, see . diff --git a/package/__main__.py b/package/__main__.py index 176221e..9ea4559 100644 --- a/package/__main__.py +++ b/package/__main__.py @@ -1,3 +1,18 @@ +# This file is part of PROJECT. +# +# PROJECT is free software: you can redistribute it and/or +# modify it under the terms of the Apache 2.0 License as published by +# the Apache Software Foundation. +# +# PROJECT is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License +# for more details. +# +# You should have received a copy of the Apache 2.0 License +# along with PROJECT. +# If not, see . + from .module import square from ._version import __version__ diff --git a/package/module.py b/package/module.py index 93dd803..81f5d2e 100644 --- a/package/module.py +++ b/package/module.py @@ -1,3 +1,18 @@ +# This file is part of PROJECT. +# +# PROJECT is free software: you can redistribute it and/or +# modify it under the terms of the Apache 2.0 License as published by +# the Apache Software Foundation. +# +# PROJECT is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License +# for more details. +# +# You should have received a copy of the Apache 2.0 License +# along with PROJECT. +# If not, see . + __all__ = [ "square", ] diff --git a/test_package.py b/test_package.py index 6531dd1..ca03cb1 100644 --- a/test_package.py +++ b/test_package.py @@ -1,3 +1,18 @@ +# This file is part of PROJECT. +# +# PROJECT is free software: you can redistribute it and/or +# modify it under the terms of the Apache 2.0 License as published by +# the Apache Software Foundation. +# +# PROJECT is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License +# for more details. +# +# You should have received a copy of the Apache 2.0 License +# along with PROJECT. +# If not, see . + import pytest from package import square