1
- from setuptools import find_packages , setup
1
+ from setuptools import setup
2
2
3
3
4
4
def sqlglotrs_version ():
@@ -9,24 +9,11 @@ def sqlglotrs_version():
9
9
raise ValueError ("Could not find version in Cargo.toml" )
10
10
11
11
12
+ # Everything is defined in pyproject.toml except the extras because for the [rs] extra we need to dynamically
13
+ # read the sqlglotrs version. [dev] has to be specified here as well because you cant specify some extras groups
14
+ # dynamically and others statically, it has to be either all dynamic or all static
15
+ # ref: https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html#dynamic-metadata
12
16
setup (
13
- name = "sqlglot" ,
14
- description = "An easily customizable SQL parser and transpiler" ,
15
- long_description = open ("README.md" ).read (),
16
- long_description_content_type = "text/markdown" ,
17
- url = "https://github.com/tobymao/sqlglot" ,
18
- author = "Toby Mao" ,
19
-
20
- license = "MIT" ,
21
- packages = find_packages (include = ["sqlglot" , "sqlglot.*" ]),
22
- package_data = {"sqlglot" : ["py.typed" ]},
23
- use_scm_version = {
24
- "write_to" : "sqlglot/_version.py" ,
25
- "fallback_version" : "0.0.0" ,
26
- "local_scheme" : "no-local-version" ,
27
- },
28
- setup_requires = ["setuptools_scm" ],
29
- python_requires = ">=3.7" ,
30
17
extras_require = {
31
18
"dev" : [
32
19
"duckdb>=0.6" ,
@@ -45,13 +32,4 @@ def sqlglotrs_version():
45
32
],
46
33
"rs" : [f"sqlglotrs=={ sqlglotrs_version ()} " ],
47
34
},
48
- classifiers = [
49
- "Development Status :: 5 - Production/Stable" ,
50
- "Intended Audience :: Developers" ,
51
- "Intended Audience :: Science/Research" ,
52
- "License :: OSI Approved :: MIT License" ,
53
- "Operating System :: OS Independent" ,
54
- "Programming Language :: SQL" ,
55
- "Programming Language :: Python :: 3 :: Only" ,
56
- ],
57
35
)
0 commit comments