-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
38 lines (30 loc) · 1019 Bytes
/
setup.py
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
from setuptools import setup, find_packages, Command
class run_tests(Command):
"""Runs all "PYTHON" tests under $/tests folder
"""
description = "run all tests"
user_options = [] # distutils complains if this is not here.
def __init__(self, *args):
self.args = args[0] # so we can pass it to other classes
Command.__init__(self, *args)
def initialize_options(self): # distutils wants this
pass
def finalize_options(self): # this too
pass
def run(self):
#TODO: Implemet tsetse
#NOTE:
from sql_tools.tests.run_tests import run_all_tests
run_all_tests()
setup(
name='sql_tools',
version='0.0.5',
description='Mysql utilities',
author='M.A-Hilaly',
author_email='hilalyamine@gmail.com',
cmdclass={'test' : run_tests},
packages=find_packages(exclude=('docs', '.circleci')),
package_data={'sql_tools': ['config/mysql_conf.ini']},
include_package_data=True,
zip_safe=False,
)