Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#2799] fix(license): add MIT license for Python module (#2960)

Shaofeng Shiaeb682afe21c
diff --git a/LICENSE b/LICENSE
index eab8b76331..f36fefefb0 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 fc972c8ed0..60db565812 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 c70b4fc7cf..b8a79d08ac 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 28afc37345..09314a5e0b 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 998f82b8e3..b5219d52e9 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 0000000000..580127c732
--- /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