-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsetup.py
More file actions
57 lines (48 loc) · 1.72 KB
/
setup.py
File metadata and controls
57 lines (48 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
from setuptools import find_packages, setup
VERSION = '0.0.1'
def readme():
with open('README.md', encoding='utf-8') as f:
content = f.read()
return content
def load_requirements(file_list=None):
if file_list is None:
file_list = ['requirements.txt']
if isinstance(file_list, str):
file_list = [file_list]
requirements = []
for file in file_list:
with open(file, encoding="utf-8-sig") as f:
lines = [line.strip() for line in f.readlines() if not line.startswith("#")]
requirements.extend(lines)
return requirements
def main():
setup(
name='cscsql',
author='',
version=VERSION,
description="eval csc sql",
long_description=readme(),
long_description_content_type='text/markdown',
keywords=["LLM", "NL2SQL", "SQL"],
license='Apache License 2.0',
url='https://github.com/CycloneBoy/csc_sql.git',
download_url='',
package_dir={"": "src"},
python_requires=">=3.8.0",
install_requires=load_requirements(),
# extras_require=[],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Natural Language :: Chinese (Simplified)',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
)
if __name__ == "__main__":
main()