From 7d032a3fa1303c6c59d035925bede4aa9f2e00f3 Mon Sep 17 00:00:00 2001 From: Al Date: Mon, 8 Jul 2024 16:20:41 +0200 Subject: [PATCH] fix: remove license (#34) * fix: remove license * chore: minor tweaks in .gitattributes * chore: hiding copier answers file --- .../{ => .algokit}/.copier-answers.yml | 0 .../production_react_netlify/LICENSE | 21 ------------------- .../{ => .algokit}/.copier-answers.yml | 0 .../production_react_vercel/LICENSE | 21 ------------------- .../{ => .algokit}/.copier-answers.yml | 0 examples/production_react/LICENSE | 21 ------------------- .../{ => .algokit}/.copier-answers.yml | 0 examples/starter_react/LICENSE | 21 ------------------- .../{{ _copier_conf.answers_file }}.jinja | 0 template_content/LICENSE | 21 ------------------- ...use_workspace %}.gitattributes{% endif %}} | 0 tests/test_custom_answers.py | 2 +- tests/test_templates.py | 2 +- 13 files changed, 2 insertions(+), 107 deletions(-) rename examples/cloud_provider/production_react_netlify/{ => .algokit}/.copier-answers.yml (100%) delete mode 100644 examples/cloud_provider/production_react_netlify/LICENSE rename examples/cloud_provider/production_react_vercel/{ => .algokit}/.copier-answers.yml (100%) delete mode 100644 examples/cloud_provider/production_react_vercel/LICENSE rename examples/production_react/{ => .algokit}/.copier-answers.yml (100%) delete mode 100644 examples/production_react/LICENSE rename examples/starter_react/{ => .algokit}/.copier-answers.yml (100%) delete mode 100644 examples/starter_react/LICENSE rename template_content/{ => .algokit}/{{ _copier_conf.answers_file }}.jinja (100%) delete mode 100644 template_content/LICENSE rename template_content/{.gitattributes => {% if not use_workspace %}.gitattributes{% endif %}} (100%) diff --git a/examples/cloud_provider/production_react_netlify/.copier-answers.yml b/examples/cloud_provider/production_react_netlify/.algokit/.copier-answers.yml similarity index 100% rename from examples/cloud_provider/production_react_netlify/.copier-answers.yml rename to examples/cloud_provider/production_react_netlify/.algokit/.copier-answers.yml diff --git a/examples/cloud_provider/production_react_netlify/LICENSE b/examples/cloud_provider/production_react_netlify/LICENSE deleted file mode 100644 index b39bcd6..0000000 --- a/examples/cloud_provider/production_react_netlify/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 Algorand Foundation - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/examples/cloud_provider/production_react_vercel/.copier-answers.yml b/examples/cloud_provider/production_react_vercel/.algokit/.copier-answers.yml similarity index 100% rename from examples/cloud_provider/production_react_vercel/.copier-answers.yml rename to examples/cloud_provider/production_react_vercel/.algokit/.copier-answers.yml diff --git a/examples/cloud_provider/production_react_vercel/LICENSE b/examples/cloud_provider/production_react_vercel/LICENSE deleted file mode 100644 index b39bcd6..0000000 --- a/examples/cloud_provider/production_react_vercel/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 Algorand Foundation - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/examples/production_react/.copier-answers.yml b/examples/production_react/.algokit/.copier-answers.yml similarity index 100% rename from examples/production_react/.copier-answers.yml rename to examples/production_react/.algokit/.copier-answers.yml diff --git a/examples/production_react/LICENSE b/examples/production_react/LICENSE deleted file mode 100644 index b39bcd6..0000000 --- a/examples/production_react/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 Algorand Foundation - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/examples/starter_react/.copier-answers.yml b/examples/starter_react/.algokit/.copier-answers.yml similarity index 100% rename from examples/starter_react/.copier-answers.yml rename to examples/starter_react/.algokit/.copier-answers.yml diff --git a/examples/starter_react/LICENSE b/examples/starter_react/LICENSE deleted file mode 100644 index b39bcd6..0000000 --- a/examples/starter_react/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 Algorand Foundation - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/template_content/{{ _copier_conf.answers_file }}.jinja b/template_content/.algokit/{{ _copier_conf.answers_file }}.jinja similarity index 100% rename from template_content/{{ _copier_conf.answers_file }}.jinja rename to template_content/.algokit/{{ _copier_conf.answers_file }}.jinja diff --git a/template_content/LICENSE b/template_content/LICENSE deleted file mode 100644 index b39bcd6..0000000 --- a/template_content/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 Algorand Foundation - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/template_content/.gitattributes b/template_content/{% if not use_workspace %}.gitattributes{% endif %} similarity index 100% rename from template_content/.gitattributes rename to template_content/{% if not use_workspace %}.gitattributes{% endif %} diff --git a/tests/test_custom_answers.py b/tests/test_custom_answers.py index 2bdd812..f4c64d6 100644 --- a/tests/test_custom_answers.py +++ b/tests/test_custom_answers.py @@ -113,7 +113,7 @@ def run_init( if result.returncode: return result # if successful, normalize .copier-answers.yml to make observing diffs easier - copier_answers = Path(copy_to / ".copier-answers.yml") + copier_answers = Path(copy_to / ".algokit" / ".copier-answers.yml") content = copier_answers.read_text("utf-8") content = commit_pattern.sub("_commit: ", content) content = src_path_pattern.sub("_src_path: ", content) diff --git a/tests/test_templates.py b/tests/test_templates.py index a213a1a..69ef20e 100644 --- a/tests/test_templates.py +++ b/tests/test_templates.py @@ -113,7 +113,7 @@ def run_init( if result.returncode: return result # if successful, normalize .copier-answers.yml to make observing diffs easier - copier_answers = Path(copy_to / ".copier-answers.yml") + copier_answers = Path(copy_to / ".algokit" / ".copier-answers.yml") content = copier_answers.read_text("utf-8") content = commit_pattern.sub("_commit: ", content) content = src_path_pattern.sub("_src_path: ", content)