File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22.idea
33venv /
44__pycache__ /
5+ * .json
Original file line number Diff line number Diff line change 11__title__ = 'mindsdb_sql_parser'
22__package_name__ = 'mindsdb_sql_parser'
3- __version__ = '0.6.0 '
3+ __version__ = '0.6.1 '
44__description__ = "Mindsdb SQL parser"
55__email__ = "jorge@mindsdb.com"
66__author__ = 'MindsDB Inc'
Original file line number Diff line number Diff line change 11import setuptools
2+ from distutils .command import build as build_module
23
34about = {}
45with open ("mindsdb_sql_parser/__about__.py" ) as fp :
56 exec (fp .read (), about )
67
8+ class Build (build_module .build ):
9+ def run (self ):
10+ from mindsdb_sql_parser .parser import MindsDBParser
11+ try :
12+ MindsDBParser .build_to_file ()
13+ except Exception as e :
14+ print (f'Problem with building syntax. Import might be not efficient: { e } ' )
15+ build_module .build .run (self )
16+
717setuptools .setup (
818 name = about ['__title__' ],
919 version = about ['__version__' ],
1424 author_email = about ['__email__' ],
1525 description = about ['__description__' ],
1626 packages = setuptools .find_packages (exclude = ('tests*' ,)),
27+ package_data = {
28+ about ['__title__' ]: ['*.json' ],
29+ },
1730 classifiers = [
1831 "Programming Language :: Python :: 3" ,
1932 "Operating System :: OS Independent" ,
2033 ],
21- python_requires = ">=3.6"
34+ python_requires = ">=3.6" ,
35+ cmdclass = {
36+ 'sdist' : Build
37+ },
2238)
You can’t perform that action at this time.
0 commit comments