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 = [