-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
70 lines (66 loc) · 2.01 KB
/
setup.py
File metadata and controls
70 lines (66 loc) · 2.01 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
58
59
60
61
62
63
64
65
66
67
68
69
70
# -*- coding: utf-8 -*-
# 23/02/07
# create by: snower
import sys
import os
from setuptools import find_packages, setup
version = "0.1.29"
if os.path.exists("README.md"):
if sys.version_info[0] >= 3:
try:
with open("README.md", encoding="utf-8") as fp:
long_description = fp.read()
except Exception as e:
print("Waring: " + str(e))
long_description = 'https://github.com/snower/syncany-sql'
else:
try:
with open("README.md") as fp:
long_description = fp.read()
except Exception as e:
print("Waring: " + str(e))
long_description = 'https://github.com/snower/syncany-sql'
else:
long_description = 'https://github.com/snower/syncany-sql'
setup(
name='syncanysql',
version=version,
url='https://github.com/snower/syncany-sql',
author='snower',
author_email='sujian199@gmail.com',
license='MIT',
packages=find_packages(exclude=['*tests*']),
zip_safe=False,
install_requires=[
"pyyaml>=6.0",
"sqlglot>=11.5.5,<12",
"syncany>=0.2.30",
'Pygments>=2.14.0',
'prompt-toolkit>=3.0.36',
"rich>=9.11.1",
],
extras_require={
"pymongo": ['pymongo>=3.6.1'],
"pymysql": ['PyMySQL>=0.8.1'],
"openpyxl": ["openpyxl>=2.5.0"],
"postgresql": ["psycopg2>=2.8.6"],
"elasticsearch": ["elasticsearch>=6.3.1"],
"influxdb": ["influxdb>=5.3.1"],
"clickhouse": ["clickhouse_driver>=0.1.5"],
"redis": ["redis>=3.5.3"],
"requests": ["requests>=2.22.0"],
"pymssql": ['pymssql>=2.2.7'],
"prql-python": ["prql-python>=0.11.1"],
},
package_data={
'': ['README.md'],
},
entry_points={
'console_scripts': [
'syncany-sql = syncanysql.main:main',
],
},
description='Simple and easy-to-use sql execution engine',
long_description=long_description,
long_description_content_type='text/markdown'
)