-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (34 loc) · 1.02 KB
/
setup.py
File metadata and controls
39 lines (34 loc) · 1.02 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
import setuptools
from distutils.command import build as build_module
about = {}
with open("mindsdb_sql_parser/__about__.py") as fp:
exec(fp.read(), about)
class Build(build_module.build):
def run(self):
from mindsdb_sql_parser.parser import MindsDBParser
try:
MindsDBParser.build_to_file()
except Exception as e:
print(f'Problem with building syntax. Import might be not efficient: {e}')
setuptools.setup(
name=about['__title__'],
version=about['__version__'],
url=about['__github__'],
download_url=about['__pypi__'],
license=about['__license__'],
author=about['__author__'],
author_email=about['__email__'],
description=about['__description__'],
packages=setuptools.find_packages(exclude=('tests*',)),
package_data={
about['__title__']: ['*.json'],
},
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
python_requires=">=3.10",
cmdclass={
'build': Build
},
)