diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-06-02 23:59:11 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-06-02 23:59:11 +0000 |
commit | caea5267cb8e1fea3702adbdf6f68fd37d13b3b7 (patch) | |
tree | f06f1da1ab3b6906beca1c3c7222d28ff00766ac /setup.py | |
parent | Adding upstream version 12.2.0. (diff) | |
download | sqlglot-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.py | 19 |
1 files changed, 7 insertions, 12 deletions
@@ -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", |