From aeb682afe21cc007fc3c77571013add3b5420751 Mon Sep 17 00:00:00 2001 From: Shaofeng Shi Date: Thu, 18 Apr 2024 14:13:07 +0800 Subject: [PATCH] [#2799] fix(license): add MIT license for Python module (#2960) ### What changes were proposed in this pull request? Correct the wrong header and add the license dependency to project's, as the issue mentioned; ### Why are the changes needed? No big change, just correct the file header and add the MIT license. Fix: #2799 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? No code change --------- Co-authored-by: Jerry Shao --- LICENSE | 7 ++++++ LICENSE.bin | 1 + build.gradle.kts | 4 +++- .../gravitino/utils/exceptions.py | 23 ++++++++++++++++-- .../gravitino/utils/http_client.py | 24 +++++++++++++++++-- licenses/kylinpy.txt | 21 ++++++++++++++++ 6 files changed, 75 insertions(+), 5 deletions(-) create mode 100644 licenses/kylinpy.txt diff --git a/LICENSE b/LICENSE index eab8b763316..f36fefefb08 100644 --- a/LICENSE +++ b/LICENSE @@ -277,3 +277,10 @@ Apache Arrow ./dev/ci/util_free_space.sh + +This product bundles a third-party component under the + MIT License. + + Kyligence/kylinpy + ./clients/client-python/gravitino/utils/exceptions.py + ./clients/client-python/gravitino/utils/http_client.py \ No newline at end of file diff --git a/LICENSE.bin b/LICENSE.bin index fc972c8ed07..60db5658127 100644 --- a/LICENSE.bin +++ b/LICENSE.bin @@ -392,6 +392,7 @@ Janino Common Compiler Protocol Buffers Treelayout + Kyligence/kylinpy This product bundles various third-party components also under the Common Development and Distribution License 1.0 diff --git a/build.gradle.kts b/build.gradle.kts index c70b4fc7cf3..b8a79d08acc 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -540,7 +540,9 @@ tasks.rat { "**/NOTICE.*", "ROADMAP.md", "clients/client-python/.pytest_cache/*", - "clients/client-python/gravitino.egg-info/*" + "clients/client-python/gravitino.egg-info/*", + "clients/client-python/gravitino/utils/exceptions.py", + "clients/client-python/gravitino/utils/http_client.py" ) // Add .gitignore excludes to the Apache Rat exclusion list. diff --git a/clients/client-python/gravitino/utils/exceptions.py b/clients/client-python/gravitino/utils/exceptions.py index 28afc373452..09314a5e0bb 100644 --- a/clients/client-python/gravitino/utils/exceptions.py +++ b/clients/client-python/gravitino/utils/exceptions.py @@ -1,6 +1,25 @@ """ -Copyright 2024 Datastrato Pvt Ltd. -This software is licensed under the Apache License version 2. +MIT License + +Copyright (c) 2016 Dhamu + +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. """ import json diff --git a/clients/client-python/gravitino/utils/http_client.py b/clients/client-python/gravitino/utils/http_client.py index 998f82b8e35..b5219d52e92 100644 --- a/clients/client-python/gravitino/utils/http_client.py +++ b/clients/client-python/gravitino/utils/http_client.py @@ -1,7 +1,27 @@ """ -Copyright 2024 Datastrato Pvt Ltd. -This software is licensed under the Apache License version 2. +MIT License + +Copyright (c) 2016 Dhamu + +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. """ + import logging from urllib.request import Request, build_opener from urllib.parse import urlencode diff --git a/licenses/kylinpy.txt b/licenses/kylinpy.txt new file mode 100644 index 00000000000..580127c7327 --- /dev/null +++ b/licenses/kylinpy.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2016 Dhamu + +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. \ No newline at end of file