1 Star 0 Fork 0

mylovextt/sqlglot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 1.73 KB
一键复制 编辑 原始数据 按行查看 历史
tobymao 提交于 1年前 . woops
from setuptools import find_packages, setup
def sqlglotrs_version():
with open("sqlglotrs/Cargo.toml") as fd:
for line in fd.readlines():
if line.strip().startswith("version"):
return line.split("=")[1].strip().strip('"')
raise ValueError("Could not find version in Cargo.toml")
setup(
name="sqlglot",
description="An easily customizable SQL parser and transpiler",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url="https://github.com/tobymao/sqlglot",
author="Toby Mao",
author_email="toby.mao@gmail.com",
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"],
python_requires=">=3.7",
extras_require={
"dev": [
"duckdb>=0.6",
"mypy",
"pandas",
"pandas-stubs",
"pyspark",
"python-dateutil",
"pdoc",
"pre-commit",
"ruff==0.3.2",
"types-python-dateutil",
"typing_extensions",
"maturin>=1.4,<2.0",
],
"rs": [f"sqlglotrs=={sqlglotrs_version()}"],
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: SQL",
"Programming Language :: Python :: 3 :: Only",
],
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mylovextt/sqlglot.git
git@gitee.com:mylovextt/sqlglot.git
mylovextt
sqlglot
sqlglot
main

搜索帮助