Skip to content

Commit

Permalink
Merge pull request elementary-data#776 from elementary-data/all-extra
Browse files Browse the repository at this point in the history
Added an 'all' extra.
  • Loading branch information
elongl authored Mar 26, 2023
2 parents 6b483ec + 7bf1e73 commit 2dbe6f5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ WORKDIR $USR_APP_PATH
RUN chmod 777 .

COPY . /app
RUN pip install --no-cache-dir "/app[postgres, snowflake, bigquery, redshift, databricks]"
RUN pip install --no-cache-dir "/app[all]"

ENTRYPOINT ["edr"]
18 changes: 12 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@
# The text of the README file.
README = (HERE / "README.md").read_text()

ADAPTER_EXTRA_REQUIREMENTS = {
"snowflake": ["dbt-snowflake>=0.20,<2.0.0"],
"bigquery": ["dbt-bigquery>=0.20,<2.0.0"],
"redshift": ["dbt-redshift>=0.20,<2.0.0"],
"postgres": ["dbt-postgres>=0.20,<2.0.0"],
"databricks": ["dbt-databricks>=0.20,<2.0.0"],
"spark": ["dbt-spark>=0.20,<2.0.0", "dbt-spark[PyHive]>=0.20,<2.0.0"],
}


setup(
name="elementary-data",
description="Data monitoring and lineage",
Expand Down Expand Up @@ -42,12 +52,8 @@
"packaging>=20.9,<22.0",
],
extras_require={
"snowflake": ["dbt-snowflake>=0.20,<2.0.0"],
"bigquery": ["dbt-bigquery>=0.20,<2.0.0"],
"redshift": ["dbt-redshift>=0.20,<2.0.0"],
"postgres": ["dbt-postgres>=0.20,<2.0.0"],
"databricks": ["dbt-databricks>=0.20,<2.0.0"],
"spark": ["dbt-spark>=0.20,<2.0.0", "dbt-spark[PyHive]>=0.20,<2.0.0"],
**ADAPTER_EXTRA_REQUIREMENTS,
"all": sum(ADAPTER_EXTRA_REQUIREMENTS.values(), []),
},
long_description_content_type="text/markdown",
license="",
Expand Down

0 comments on commit 2dbe6f5

Please sign in to comment.