diff --git a/dar/README.md b/dar/README.md index 6645129..1075084 100644 --- a/dar/README.md +++ b/dar/README.md @@ -1,3 +1,7 @@ -# Darrell Analytics Runner (dar) +# Darrell -A CLI tool for orchestrating dbt and Evidence BI. \ No newline at end of file +## What is Darrell? +An open source analytics stack for nimble data teams that wraps dbt and Evidence BI. + +## How does it work? +More details coming soon. \ No newline at end of file diff --git a/dar/dar/install.py b/dar/dar/install.py index 6d2e3b3..0ce47ae 100644 --- a/dar/dar/install.py +++ b/dar/dar/install.py @@ -4,7 +4,7 @@ @click.command() @click.option('--path', default='analytics', help='Path to create the analytics directory') -def install_analytics(path): +def setup(path): """Install and set up the analytics environment""" # Create analytics directory os.makedirs(path, exist_ok=True) @@ -12,7 +12,7 @@ def install_analytics(path): # Install dbt click.echo("Installing dbt...") - subprocess.run(["pip", "install", "dbt-core", "dbt-postgres"]) + subprocess.run(["pip", "install", "dbt-core", "dbt-duckdb"]) # Initialize dbt project click.echo("Initializing dbt project...") @@ -23,9 +23,15 @@ def install_analytics(path): subprocess.run(["npx", "degit", "evidence-dev/template", "reports"]) subprocess.run(["npm", "--prefix", "./reports", "install"]) - # Create additional directories - dirs = ['analyses', 'docs', 'macros', 'seeds', 'snapshots', 'tests'] + # Create additional directories in analytics directory + dirs = ['data', 'scripts'] for dir_name in dirs: + os.makedirs(os.path.join(path, dir_name), exist_ok=True) os.makedirs(dir_name, exist_ok=True) - click.echo("Analytics environment set up successfully!") + click.echo("Analytics folder set up successfully!") + + ## Make 'site' directory at same level as 'analytics' directory + os.makedirs('site', exist_ok=True) + + click.echo("Site folder set up successfully!") diff --git a/dar/setup.py b/dar/setup.py index 3576e3d..6125787 100644 --- a/dar/setup.py +++ b/dar/setup.py @@ -4,14 +4,14 @@ long_description = fh.read() setup( - name="dar", + name="Darrell", version="0.1.0", - author="Your Name", - author_email="your.email@example.com", - description="Darrell Analytics Runner: dbt and Evidence BI orchestrator", + author="Chris Davis", + author_email="chris@bootstrapital.com", + description="Darrell - Open Source Analytics Stack", long_description=long_description, long_description_content_type="text/markdown", - url="https://github.com/yourusername/dar", + url="https://github.com/bootstrapital/darrell", packages=find_packages(), install_requires=[ "click", @@ -29,9 +29,9 @@ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", ], - python_requires=">=3.7", + python_requires=">=3.9", )