diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e03c2cbd..239b1718 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,7 +38,7 @@ jobs: pip install ruff # Update output format to enable automatic inline annotations. - name: Run Ruff - run: ruff check --output-format=github datafusion + run: ruff check --output-format=github python/ generate-license: runs-on: ubuntu-latest diff --git a/pyproject.toml b/pyproject.toml index d3536051..24bd2961 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,6 +55,7 @@ repository = "https://github.com/apache/arrow-datafusion-python" profile = "black" [tool.maturin] +python-source = "python" module-name = "datafusion._internal" include = [ { path = "Cargo.lock", format = "sdist" } diff --git a/datafusion/__init__.py b/python/datafusion/__init__.py similarity index 100% rename from datafusion/__init__.py rename to python/datafusion/__init__.py diff --git a/datafusion/common.py b/python/datafusion/common.py similarity index 100% rename from datafusion/common.py rename to python/datafusion/common.py diff --git a/datafusion/expr.py b/python/datafusion/expr.py similarity index 100% rename from datafusion/expr.py rename to python/datafusion/expr.py diff --git a/datafusion/functions.py b/python/datafusion/functions.py similarity index 100% rename from datafusion/functions.py rename to python/datafusion/functions.py diff --git a/datafusion/input/__init__.py b/python/datafusion/input/__init__.py similarity index 100% rename from datafusion/input/__init__.py rename to python/datafusion/input/__init__.py diff --git a/datafusion/input/base.py b/python/datafusion/input/base.py similarity index 100% rename from datafusion/input/base.py rename to python/datafusion/input/base.py diff --git a/datafusion/input/location.py b/python/datafusion/input/location.py similarity index 100% rename from datafusion/input/location.py rename to python/datafusion/input/location.py diff --git a/datafusion/object_store.py b/python/datafusion/object_store.py similarity index 100% rename from datafusion/object_store.py rename to python/datafusion/object_store.py diff --git a/datafusion/substrait.py b/python/datafusion/substrait.py similarity index 100% rename from datafusion/substrait.py rename to python/datafusion/substrait.py diff --git a/datafusion/tests/__init__.py b/python/datafusion/tests/__init__.py similarity index 100% rename from datafusion/tests/__init__.py rename to python/datafusion/tests/__init__.py diff --git a/datafusion/tests/conftest.py b/python/datafusion/tests/conftest.py similarity index 100% rename from datafusion/tests/conftest.py rename to python/datafusion/tests/conftest.py diff --git a/datafusion/tests/data_test_context/data.json b/python/datafusion/tests/data_test_context/data.json similarity index 100% rename from datafusion/tests/data_test_context/data.json rename to python/datafusion/tests/data_test_context/data.json diff --git a/datafusion/tests/generic.py b/python/datafusion/tests/generic.py similarity index 100% rename from datafusion/tests/generic.py rename to python/datafusion/tests/generic.py diff --git a/datafusion/tests/test_aggregation.py b/python/datafusion/tests/test_aggregation.py similarity index 100% rename from datafusion/tests/test_aggregation.py rename to python/datafusion/tests/test_aggregation.py diff --git a/datafusion/tests/test_catalog.py b/python/datafusion/tests/test_catalog.py similarity index 100% rename from datafusion/tests/test_catalog.py rename to python/datafusion/tests/test_catalog.py diff --git a/datafusion/tests/test_config.py b/python/datafusion/tests/test_config.py similarity index 100% rename from datafusion/tests/test_config.py rename to python/datafusion/tests/test_config.py diff --git a/datafusion/tests/test_context.py b/python/datafusion/tests/test_context.py similarity index 100% rename from datafusion/tests/test_context.py rename to python/datafusion/tests/test_context.py diff --git a/datafusion/tests/test_dataframe.py b/python/datafusion/tests/test_dataframe.py similarity index 100% rename from datafusion/tests/test_dataframe.py rename to python/datafusion/tests/test_dataframe.py diff --git a/datafusion/tests/test_expr.py b/python/datafusion/tests/test_expr.py similarity index 100% rename from datafusion/tests/test_expr.py rename to python/datafusion/tests/test_expr.py diff --git a/datafusion/tests/test_functions.py b/python/datafusion/tests/test_functions.py similarity index 100% rename from datafusion/tests/test_functions.py rename to python/datafusion/tests/test_functions.py diff --git a/datafusion/tests/test_imports.py b/python/datafusion/tests/test_imports.py similarity index 100% rename from datafusion/tests/test_imports.py rename to python/datafusion/tests/test_imports.py diff --git a/datafusion/tests/test_indexing.py b/python/datafusion/tests/test_indexing.py similarity index 100% rename from datafusion/tests/test_indexing.py rename to python/datafusion/tests/test_indexing.py diff --git a/datafusion/tests/test_input.py b/python/datafusion/tests/test_input.py similarity index 100% rename from datafusion/tests/test_input.py rename to python/datafusion/tests/test_input.py diff --git a/datafusion/tests/test_sql.py b/python/datafusion/tests/test_sql.py similarity index 100% rename from datafusion/tests/test_sql.py rename to python/datafusion/tests/test_sql.py diff --git a/datafusion/tests/test_store.py b/python/datafusion/tests/test_store.py similarity index 100% rename from datafusion/tests/test_store.py rename to python/datafusion/tests/test_store.py diff --git a/datafusion/tests/test_substrait.py b/python/datafusion/tests/test_substrait.py similarity index 100% rename from datafusion/tests/test_substrait.py rename to python/datafusion/tests/test_substrait.py diff --git a/datafusion/tests/test_udaf.py b/python/datafusion/tests/test_udaf.py similarity index 100% rename from datafusion/tests/test_udaf.py rename to python/datafusion/tests/test_udaf.py