1- from setuptools import find_packages , setup
1+ from setuptools import setup
22
33
44def sqlglotrs_version ():
@@ -9,24 +9,11 @@ def sqlglotrs_version():
99 raise ValueError ("Could not find version in Cargo.toml" )
1010
1111
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
1216setup (
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" ,
3017 extras_require = {
3118 "dev" : [
3219 "duckdb>=0.6" ,
@@ -45,13 +32,4 @@ def sqlglotrs_version():
4532 ],
4633 "rs" : [f"sqlglotrs=={ sqlglotrs_version ()} " ],
4734 },
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- ],
5735)
0 commit comments