Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import re
from pathlib import Path

from setuptools import find_packages
from setuptools import find_namespace_packages
from setuptools import setup


Expand All @@ -23,8 +23,9 @@ def read(*names, **kwargs):
author="Altimate Inc",
author_email="[email protected]",
url="https://github.com/AltimateAI/datapilot-cli",
packages=find_packages("src"),
packages=find_namespace_packages(where="src"), # Use find_namespace_packages
package_dir={"": "src"},
namespace_packages=["datapilot"],
py_modules=[path.stem for path in Path("src").glob("*.py")],
include_package_data=True,
zip_safe=False,
Expand Down
1 change: 0 additions & 1 deletion src/datapilot/__init__.py

This file was deleted.

7 changes: 7 additions & 0 deletions src/datapilot/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,10 @@ def datapilot():


datapilot.add_command(dbt)

try:
from datapilot.ingestion.cli import ingest

datapilot.add_command(ingest)
except ImportError:
pass