From 3a31fc720d69e7e9b8af4a8ae35e8d340dc5baf1 Mon Sep 17 00:00:00 2001 From: ion-elgreco <15728914+ion-elgreco@users.noreply.github.com> Date: Sat, 18 Nov 2023 19:40:58 +0100 Subject: [PATCH] restructure licenses --- python/deltalake/schema.py | 2 +- python/licenses/README.md | 8 ++++++++ python/{LICENSE.txt => licenses/deltalake_license.txt} | 0 .../LICENSE.txt => licenses/polars_license.txt} | 0 python/pyproject.toml | 2 +- 5 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 python/licenses/README.md rename python/{LICENSE.txt => licenses/deltalake_license.txt} (100%) rename python/{deltalake/license_schema_conversion/LICENSE.txt => licenses/polars_license.txt} (100%) diff --git a/python/deltalake/schema.py b/python/deltalake/schema.py index 4b6a631ee6..c79ceb0dfb 100644 --- a/python/deltalake/schema.py +++ b/python/deltalake/schema.py @@ -18,7 +18,7 @@ DataType = Union["PrimitiveType", "MapType", "StructType", "ArrayType"] -### Inspired from Pola-rs repo - licensed with MIT License, see licenses folder.### +### Inspired from Pola-rs repo - licensed with MIT License, see license in python/licenses/polars_license.txt.### def _convert_pa_schema_to_delta( schema: pa.schema, large_dtypes: bool = False ) -> pa.schema: diff --git a/python/licenses/README.md b/python/licenses/README.md new file mode 100644 index 0000000000..7f8f61c9d4 --- /dev/null +++ b/python/licenses/README.md @@ -0,0 +1,8 @@ +# Licenses +Below are described which licenses apply to the deltalake package and to which areas of the source code. + +### deltalake_license.txt (APACHE 2.0 License) +Applies to the full deltalake package source code. + +### polars_license.txt (MIT License) +Applies solely to the `_convert_pa_schema_to_delta` function in `deltalake/schema.py`. \ No newline at end of file diff --git a/python/LICENSE.txt b/python/licenses/deltalake_license.txt similarity index 100% rename from python/LICENSE.txt rename to python/licenses/deltalake_license.txt diff --git a/python/deltalake/license_schema_conversion/LICENSE.txt b/python/licenses/polars_license.txt similarity index 100% rename from python/deltalake/license_schema_conversion/LICENSE.txt rename to python/licenses/polars_license.txt diff --git a/python/pyproject.toml b/python/pyproject.toml index 09a7e4b37c..cb83c7041d 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "maturin" name = "deltalake" description = "Native Delta Lake Python binding based on delta-rs with Pandas integration" readme = "README.md" -license = {file = "LICENSE.txt"} +license = {file = "licenses/deltalake_license.txt"} requires-python = ">=3.8" keywords = ["deltalake", "delta", "datalake", "pandas", "arrow"] classifiers = [