diff --git a/.gitignore b/.gitignore index c97765b..a26cbae 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,11 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + *.pyc *.egg-info/ build/ dist/ +venv/ +__pycache__/ .vscode .eggs diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e0d43ec..4a2dcc2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,24 @@ +--- +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + stages: + - test - build - deploy +# Stage: test +############################################################################## + +test:reuse: + stage: test + needs: [] + image: + name: fsfe/reuse:latest + entrypoint: [""] + script: + - reuse lint + # Stage: build ############################################################################## diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0ab5e36..5e444fe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,7 @@ +--- +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 diff --git a/Dockerfile b/Dockerfile index 0ddc111..4028522 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + # Build stage FROM python:3.13 AS builder diff --git a/LICENSE b/LICENSE index 261eeb9..137069b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,201 +1,73 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + + (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. + + You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + +To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/LICENSES/Apache-2.0.txt b/LICENSES/Apache-2.0.txt new file mode 100644 index 0000000..137069b --- /dev/null +++ b/LICENSES/Apache-2.0.txt @@ -0,0 +1,73 @@ +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + + (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. + + You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + +To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/MANIFEST.in b/MANIFEST.in index fbc8a14..be965fc 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1,4 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + recursive-include villas/controller * diff --git a/README.md b/README.md index 8e9b961..ff8359e 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,16 @@ Documentation is available online at: https://villas.fein-aachen.org/docs/contro ## Copyright -2021, Institute for Automation of Complex Power Systems, EONERC +2025, Institute for Automation of Complex Power Systems, EONERC ## License This project is released under the terms of the [Apache 2.0](LICENSE). +- SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +- SPDX-License-Identifier: Apache-2.0 + + We kindly ask all academic publications employing components of VILLASframework to cite one of the following papers: - A. Monti et al., "[A Global Real-Time Superlab: Enabling High Penetration of Power Electronics in the Electric Grid](https://ieeexplore.ieee.org/document/8458285/)," in IEEE Power Electronics Magazine, vol. 5, no. 3, pp. 35-44, Sept. 2018. diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 0000000..e2e6f22 --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,7 @@ +version = 1 + +[[annotations]] +path = ["doc/pictures/*"] +precedence = "aggregate" +SPDX-FileCopyrightText = "2014-2025 The VILLASframework Authors" +SPDX-License-Identifier = "Apache-2.0" diff --git a/doc/openapi.yaml b/doc/openapi.yaml index b221acc..fdb632c 100644 --- a/doc/openapi.yaml +++ b/doc/openapi.yaml @@ -1,4 +1,7 @@ --- +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + openapi: 3.1.0 info: title: VILLAScontroller API diff --git a/etc/config.yaml b/etc/config.yaml index c1987f0..8c72d13 100644 --- a/etc/config.yaml +++ b/etc/config.yaml @@ -1,4 +1,7 @@ --- +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + broker: url: amqp://villas:Haegiethu0rohtee@k8s.eonerc.rwth-aachen.de:30809/%2F components: diff --git a/etc/config_dpsim.yaml b/etc/config_dpsim.yaml index 59cee7f..e68d9cc 100644 --- a/etc/config_dpsim.yaml +++ b/etc/config_dpsim.yaml @@ -1,4 +1,7 @@ --- +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + broker: url: amqp://villas:Haegiethu0rohtee@k8s.eonerc.rwth-aachen.de:30809/%2F diff --git a/etc/config_k8s.yaml b/etc/config_k8s.yaml index 6c9580f..04d931b 100644 --- a/etc/config_k8s.yaml +++ b/etc/config_k8s.yaml @@ -1,4 +1,7 @@ --- +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + broker: url: amqp://villas:Haegiethu0rohtee@k8s.eonerc.rwth-aachen.de:30809/%2F diff --git a/etc/config_node.yaml b/etc/config_node.yaml index b61159d..e152d02 100644 --- a/etc/config_node.yaml +++ b/etc/config_node.yaml @@ -1,4 +1,7 @@ --- +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + broker: url: amqp://villas:Haegiethu0rohtee@k8s.eonerc.rwth-aachen.de:30809/%2F diff --git a/etc/config_villas.yaml b/etc/config_villas.yaml index 1317139..222b168 100644 --- a/etc/config_villas.yaml +++ b/etc/config_villas.yaml @@ -1,4 +1,7 @@ --- +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + broker: url: amqp://villas:Haegiethu0rohtee@k8s.eonerc.rwth-aachen.de:30809/%2F diff --git a/etc/params_k8s_create.yaml b/etc/params_k8s_create.yaml index 4363bf0..ba20ffb 100644 --- a/etc/params_k8s_create.yaml +++ b/etc/params_k8s_create.yaml @@ -1,4 +1,7 @@ --- +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + name: "kubernetes simulator" location: "ACS lab" realm: "de.rwth-aachen.eonerc.acs" diff --git a/etc/params_k8s_dpsim.yaml b/etc/params_k8s_dpsim.yaml index 5ce3b84..8de32a5 100644 --- a/etc/params_k8s_dpsim.yaml +++ b/etc/params_k8s_dpsim.yaml @@ -1,4 +1,7 @@ --- +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + name: "kubernetes simulator dpsim" location: "slew vm, erc kubernetes" realm: "de.rwth-aachen.eonerc.acs" diff --git a/params/params.yaml b/params/params.yaml index b71024c..2999895 100644 --- a/params/params.yaml +++ b/params/params.yaml @@ -1,4 +1,7 @@ --- +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + name: 'Generic Simulator #1' category: simulator type: generic diff --git a/params/params_k8s.yaml b/params/params_k8s.yaml index da4f74a..e763b04 100644 --- a/params/params_k8s.yaml +++ b/params/params_k8s.yaml @@ -1,4 +1,7 @@ --- +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + name: Kubernetes Job 1 category: simulator type: kubernetes diff --git a/pyproject.toml b/pyproject.toml index 799ee97..a4215cd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + [build-system] requires = ["setuptools>=61", "wheel"] build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py index a6e30fd..4845926 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + from setuptools import setup from glob import glob diff --git a/start.sh b/start.sh index 0e46753..888e9d4 100755 --- a/start.sh +++ b/start.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 function exit_handler() { echo "Stopping port-forwards" diff --git a/tests/__init__.py b/tests/__init__.py index e69de29..a4a6ba5 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -0,0 +1,2 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 diff --git a/tests/kubernetes/Dockerfile b/tests/kubernetes/Dockerfile index 69fe38c..31c3b46 100644 --- a/tests/kubernetes/Dockerfile +++ b/tests/kubernetes/Dockerfile @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + FROM debian ADD entrypoint.sh / diff --git a/tests/kubernetes/entrypoint.sh b/tests/kubernetes/entrypoint.sh index d6e12a3..9a82f56 100644 --- a/tests/kubernetes/entrypoint.sh +++ b/tests/kubernetes/entrypoint.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 sleep_interruptible() { REM=$1 diff --git a/tests/test_config.py b/tests/test_config.py index 8655946..bc5f572 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + from uuid import UUID from villas.controller.config import Config diff --git a/villas-controller.service b/villas-controller.service index 5e5eda2..126f5b2 100644 --- a/villas-controller.service +++ b/villas-controller.service @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + [Unit] Description=VILLAScontroller After=multi-user.target diff --git a/villas/controller/__init__.py b/villas/controller/__init__.py index 3d26edf..be0587d 100644 --- a/villas/controller/__init__.py +++ b/villas/controller/__init__.py @@ -1 +1,4 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + __version__ = "0.4.1" diff --git a/villas/controller/api.py b/villas/controller/api.py index e6a684e..e1cab9f 100644 --- a/villas/controller/api.py +++ b/villas/controller/api.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + import threading import logging import asyncio diff --git a/villas/controller/command.py b/villas/controller/command.py index 7ec06de..3b740d6 100644 --- a/villas/controller/command.py +++ b/villas/controller/command.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + class Command: @staticmethod diff --git a/villas/controller/commands/daemon.py b/villas/controller/commands/daemon.py index 82f18db..2b466d3 100644 --- a/villas/controller/commands/daemon.py +++ b/villas/controller/commands/daemon.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 import logging diff --git a/villas/controller/commands/monitor.py b/villas/controller/commands/monitor.py index 5f496a5..9833697 100644 --- a/villas/controller/commands/monitor.py +++ b/villas/controller/commands/monitor.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + import kombu import time import json diff --git a/villas/controller/commands/simulator.py b/villas/controller/commands/simulator.py index ff16e96..f83b3d8 100644 --- a/villas/controller/commands/simulator.py +++ b/villas/controller/commands/simulator.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + import kombu import socket import yaml diff --git a/villas/controller/component.py b/villas/controller/component.py index 63bce3d..8ee13e8 100644 --- a/villas/controller/component.py +++ b/villas/controller/component.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + import logging import os.path import time diff --git a/villas/controller/components/gateway.py b/villas/controller/components/gateway.py index 6d272c1..1d3f420 100644 --- a/villas/controller/components/gateway.py +++ b/villas/controller/components/gateway.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + from villas.controller.component import Component diff --git a/villas/controller/components/gateways/__init__.py b/villas/controller/components/gateways/__init__.py index e69de29..a4a6ba5 100644 --- a/villas/controller/components/gateways/__init__.py +++ b/villas/controller/components/gateways/__init__.py @@ -0,0 +1,2 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 diff --git a/villas/controller/components/gateways/villas_node.py b/villas/controller/components/gateways/villas_node.py index 19ff2cb..89966d4 100644 --- a/villas/controller/components/gateways/villas_node.py +++ b/villas/controller/components/gateways/villas_node.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + from villas.controller.components.gateway import Gateway diff --git a/villas/controller/components/gateways/villas_relay.py b/villas/controller/components/gateways/villas_relay.py index aae039b..204aea4 100644 --- a/villas/controller/components/gateways/villas_relay.py +++ b/villas/controller/components/gateways/villas_relay.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + from villas.controller.components.gateway import Gateway diff --git a/villas/controller/components/manager.py b/villas/controller/components/manager.py index 1f04ff7..b59250b 100644 --- a/villas/controller/components/manager.py +++ b/villas/controller/components/manager.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + from villas.controller.component import Component from villas.controller.exceptions import SimulationException diff --git a/villas/controller/components/managers/generic.py b/villas/controller/components/managers/generic.py index 084592c..26d7a15 100644 --- a/villas/controller/components/managers/generic.py +++ b/villas/controller/components/managers/generic.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + from villas.controller.components.manager import Manager from villas.controller.component import Component diff --git a/villas/controller/components/managers/kubernetes.py b/villas/controller/components/managers/kubernetes.py index c50d26e..3aafb32 100644 --- a/villas/controller/components/managers/kubernetes.py +++ b/villas/controller/components/managers/kubernetes.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + import os import threading import time diff --git a/villas/controller/components/managers/miob.py b/villas/controller/components/managers/miob.py index 65b5914..10c5381 100644 --- a/villas/controller/components/managers/miob.py +++ b/villas/controller/components/managers/miob.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + import psutil import usb.core diff --git a/villas/controller/components/managers/villas_node.py b/villas/controller/components/managers/villas_node.py index c994283..34f4d36 100644 --- a/villas/controller/components/managers/villas_node.py +++ b/villas/controller/components/managers/villas_node.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + import threading from villas.node.node import Node diff --git a/villas/controller/components/managers/villas_relay.py b/villas/controller/components/managers/villas_relay.py index 4f3bb40..a2f5848 100644 --- a/villas/controller/components/managers/villas_relay.py +++ b/villas/controller/components/managers/villas_relay.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + import threading import requests import os diff --git a/villas/controller/components/simulator.py b/villas/controller/components/simulator.py index 573d985..4f4e20b 100644 --- a/villas/controller/components/simulator.py +++ b/villas/controller/components/simulator.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + import uuid import time import os diff --git a/villas/controller/components/simulators/dpsim.py b/villas/controller/components/simulators/dpsim.py index 5ce2b01..e0f7417 100644 --- a/villas/controller/components/simulators/dpsim.py +++ b/villas/controller/components/simulators/dpsim.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + import dpsim import os diff --git a/villas/controller/components/simulators/dummy.py b/villas/controller/components/simulators/dummy.py index 028ed72..ec127c0 100644 --- a/villas/controller/components/simulators/dummy.py +++ b/villas/controller/components/simulators/dummy.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + import threading from villas.controller.components.simulator import Simulator diff --git a/villas/controller/components/simulators/generic.py b/villas/controller/components/simulators/generic.py index 174ff41..1c9c2cf 100644 --- a/villas/controller/components/simulators/generic.py +++ b/villas/controller/components/simulators/generic.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + import os import sys import threading diff --git a/villas/controller/components/simulators/kubernetes.py b/villas/controller/components/simulators/kubernetes.py index ee53f9b..6795ed8 100644 --- a/villas/controller/components/simulators/kubernetes.py +++ b/villas/controller/components/simulators/kubernetes.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + from __future__ import annotations from typing import TYPE_CHECKING import json diff --git a/villas/controller/components/simulators/rscad.py b/villas/controller/components/simulators/rscad.py index 6c4e3b3..66042e9 100644 --- a/villas/controller/components/simulators/rscad.py +++ b/villas/controller/components/simulators/rscad.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + import socket from villas.controller.components.simulator import Simulator diff --git a/villas/controller/components/simulators/rtlab.py b/villas/controller/components/simulators/rtlab.py index c196c4d..61f2bfd 100644 --- a/villas/controller/components/simulators/rtlab.py +++ b/villas/controller/components/simulators/rtlab.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + from villas.controller.components.simulator import Simulator diff --git a/villas/controller/config.py b/villas/controller/config.py index cf0f50b..1a602ec 100644 --- a/villas/controller/config.py +++ b/villas/controller/config.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + import yaml import argparse import logging diff --git a/villas/controller/controller.py b/villas/controller/controller.py index 177f851..b12cfcc 100644 --- a/villas/controller/controller.py +++ b/villas/controller/controller.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + import time import logging import socket diff --git a/villas/controller/exceptions.py b/villas/controller/exceptions.py index 655a82f..e2fa325 100644 --- a/villas/controller/exceptions.py +++ b/villas/controller/exceptions.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + class SimulationException(Exception): def __init__(self, sim, msg, **kwargs): super().__init__(sim, msg, kwargs) diff --git a/villas/controller/handlers/component.py b/villas/controller/handlers/component.py index cb91e60..8b512d9 100644 --- a/villas/controller/handlers/component.py +++ b/villas/controller/handlers/component.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + import json from tornado.web import HTTPError from http import HTTPStatus diff --git a/villas/controller/handlers/health.py b/villas/controller/handlers/health.py index d8be63e..3d4a24f 100644 --- a/villas/controller/handlers/health.py +++ b/villas/controller/handlers/health.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + from villas.controller.api import RequestHandler diff --git a/villas/controller/handlers/main.py b/villas/controller/handlers/main.py index cbc07d7..3a55e57 100644 --- a/villas/controller/handlers/main.py +++ b/villas/controller/handlers/main.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + from villas.controller.api import RequestHandler diff --git a/villas/controller/main.py b/villas/controller/main.py index 6d2d8f4..3343059 100644 --- a/villas/controller/main.py +++ b/villas/controller/main.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + import logging import argparse import kombu diff --git a/villas/controller/schemas/__init__.py b/villas/controller/schemas/__init__.py index e69de29..a4a6ba5 100644 --- a/villas/controller/schemas/__init__.py +++ b/villas/controller/schemas/__init__.py @@ -0,0 +1,2 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 diff --git a/villas/controller/schemas/manager/__init__.py b/villas/controller/schemas/manager/__init__.py index e69de29..a4a6ba5 100644 --- a/villas/controller/schemas/manager/__init__.py +++ b/villas/controller/schemas/manager/__init__.py @@ -0,0 +1,2 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 diff --git a/villas/controller/schemas/manager/generic/__init__.py b/villas/controller/schemas/manager/generic/__init__.py index e69de29..a4a6ba5 100644 --- a/villas/controller/schemas/manager/generic/__init__.py +++ b/villas/controller/schemas/manager/generic/__init__.py @@ -0,0 +1,2 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 diff --git a/villas/controller/schemas/manager/generic/create-generic.yaml b/villas/controller/schemas/manager/generic/create-generic.yaml index ba9d2d8..f496bbf 100644 --- a/villas/controller/schemas/manager/generic/create-generic.yaml +++ b/villas/controller/schemas/manager/generic/create-generic.yaml @@ -1,4 +1,7 @@ --- +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + $schema: http://json-schema.org/draft-07/schema additionalProperties: true diff --git a/villas/controller/schemas/manager/kubernetes/create-kubernetes.yaml b/villas/controller/schemas/manager/kubernetes/create-kubernetes.yaml index 1a04bfb..e4781c3 100644 --- a/villas/controller/schemas/manager/kubernetes/create-kubernetes.yaml +++ b/villas/controller/schemas/manager/kubernetes/create-kubernetes.yaml @@ -1,4 +1,7 @@ --- +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + $schema: http://json-schema.org/draft-04/schema# type: object diff --git a/villas/controller/schemas/simulator/dpsim/__init__.py b/villas/controller/schemas/simulator/dpsim/__init__.py index e69de29..a4a6ba5 100644 --- a/villas/controller/schemas/simulator/dpsim/__init__.py +++ b/villas/controller/schemas/simulator/dpsim/__init__.py @@ -0,0 +1,2 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 diff --git a/villas/controller/schemas/simulator/dpsim/start-dpsim.yaml b/villas/controller/schemas/simulator/dpsim/start-dpsim.yaml index 4baf91d..06a36ec 100644 --- a/villas/controller/schemas/simulator/dpsim/start-dpsim.yaml +++ b/villas/controller/schemas/simulator/dpsim/start-dpsim.yaml @@ -1,4 +1,7 @@ --- +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + $schema: http://json-schema.org/draft-04/schema# type: object diff --git a/villas/controller/schemas/simulator/dummy/start-dummy.yaml b/villas/controller/schemas/simulator/dummy/start-dummy.yaml index 914736f..100f43a 100644 --- a/villas/controller/schemas/simulator/dummy/start-dummy.yaml +++ b/villas/controller/schemas/simulator/dummy/start-dummy.yaml @@ -1,4 +1,7 @@ --- +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + $schema: http://json-schema.org/draft-07/schema type: object diff --git a/villas/controller/util.py b/villas/controller/util.py index 99ec6d1..cd4b5b8 100644 --- a/villas/controller/util.py +++ b/villas/controller/util.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2014-2025 The VILLASframework Authors +# SPDX-License-Identifier: Apache-2.0 + from copy import deepcopy from collections import abc