summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-02 23:59:11 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-02 23:59:11 +0000
commitcaea5267cb8e1fea3702adbdf6f68fd37d13b3b7 (patch)
treef06f1da1ab3b6906beca1c3c7222d28ff00766ac /setup.py
parentAdding upstream version 12.2.0. (diff)
downloadsqlglot-caea5267cb8e1fea3702adbdf6f68fd37d13b3b7.tar.xz
sqlglot-caea5267cb8e1fea3702adbdf6f68fd37d13b3b7.zip
Adding upstream version 15.0.0.upstream/15.0.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--setup.py19
1 files changed, 7 insertions, 12 deletions
diff --git a/setup.py b/setup.py
index 8d8a923..cffaead 100644
--- a/setup.py
+++ b/setup.py
@@ -1,18 +1,7 @@
from setuptools import find_packages, setup
-version = (
- open("sqlglot/__init__.py")
- .read()
- .split("__version__ = ")[-1]
- .split("\n")[0]
- .strip("")
- .strip("'")
- .strip('"')
-)
-
setup(
name="sqlglot",
- version=version,
description="An easily customizable SQL parser and transpiler",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
@@ -22,11 +11,17 @@ setup(
license="MIT",
packages=find_packages(include=["sqlglot", "sqlglot.*"]),
package_data={"sqlglot": ["py.typed"]},
+ use_scm_version={
+ "write_to": "sqlglot/_version.py",
+ "fallback_version": "0.0.0",
+ "local_scheme": "no-local-version",
+ },
+ setup_requires=["setuptools_scm"],
extras_require={
"dev": [
"autoflake",
"black",
- "duckdb",
+ "duckdb>=0.6",
"isort",
"mypy>=0.990",
"pandas",