-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathsetup.py
More file actions
34 lines (32 loc) · 1.24 KB
/
setup.py
File metadata and controls
34 lines (32 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from setuptools import setup
from setuptools_scm import get_version
version = get_version(local_scheme="no-local-version")
setup(
extras_require={
"dev": [
"duckdb>=0.6",
# sqlglot-mypy 1.20+ is the build dep for sqlglotc and only ships
# for py3.10+; on py3.9 just use upstream mypy for type checking.
"sqlglot-mypy >= 1.20.0.post4; python_version >= '3.10'",
"mypy; python_version < '3.10'",
"setuptools_scm",
"pandas",
"pandas-stubs",
"python-dateutil",
"pytz",
"pdoc",
"pre-commit",
"ruff==0.15.6",
"types-python-dateutil",
"types-pytz",
"typing_extensions",
"pyperf",
],
# Compiles from source on the user's machine. Requires Python 3.10+
# because the build dep (sqlglot-mypy 1.20+) dropped 3.9; on 3.9
# `pip install sqlglot[c]` is a no-op and you just get pure-Python sqlglot.
"c": [f"sqlglotc=={version}; python_version >= '3.10'"],
# Deprecated: the Rust tokenizer has been replaced by sqlglotc.
"rs": ["sqlglotrs==0.13.0", f"sqlglotc=={version}; python_version >= '3.10'"],
},
)