Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move SQL dependencies to extra #531

Merged
merged 1 commit into from
Jan 7, 2024
Merged
Changes from all 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
30 changes: 13 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

from fugue_version import __version__

SQL_DEPENDENCIES = [
"qpd>=0.4.4",
"fugue-sql-antlr>=0.2.0",
"sqlglot",
"jinja2",
]

with open("README.md") as f:
_text = ["# Fugue"] + f.read().splitlines()[1:]
LONG_DESCRIPTION = "\n".join(_text)
Expand Down Expand Up @@ -33,19 +40,9 @@ def get_version() -> str:
install_requires=[
"triad>=0.9.3",
"adagio>=0.2.4",
# sql dependencies
"qpd>=0.4.4",
"fugue-sql-antlr>=0.2.0",
"sqlglot",
"jinja2",
],
extras_require={
"sql": [
"qpd>=0.4.4",
"fugue-sql-antlr>=0.2.0",
"sqlglot",
"jinja2",
],
"sql": SQL_DEPENDENCIES,
"cpp_sql_parser": ["fugue-sql-antlr[cpp]>=0.2.0"],
"spark": ["pyspark>=3.1.1"],
"dask": [
Expand All @@ -54,17 +51,16 @@ def get_version() -> str:
"pandas>=2.0.2",
],
"ray": ["ray[data]>=2.4.0", "duckdb>=0.5.0", "pyarrow>=6.0.1"],
"duckdb": [
"duckdb": SQL_DEPENDENCIES
+ [
"duckdb>=0.5.0",
"numpy",
],
"polars": ["polars"],
"ibis": ["ibis-framework>=3.2.0,<6"],
"ibis": SQL_DEPENDENCIES + ["ibis-framework>=3.2.0,<6"],
"notebook": ["notebook", "jupyterlab", "ipython>=7.10.0"],
"all": [
"sqlglot",
"jinja2",
"fugue-sql-antlr[cpp]>=0.2.0",
"all": SQL_DEPENDENCIES
+ [
"pyspark>=3.1.1",
"dask[distributed,dataframe]>=2023.5.0",
"dask-sql",
Expand Down
Loading