-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.py
57 lines (47 loc) · 1.57 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# -*- coding: UTF-8 -*-
import os
from setuptools import setup
from setuptools.command.test import test
from codecs import open
setup_dir = os.path.abspath(os.path.dirname(__file__))
def read(file_name):
return open(os.path.join(setup_dir, file_name), 'r', encoding='utf-8').read()
class Test(test):
def run_tests(self):
import unittest
test_loader = unittest.defaultTestLoader
test_runner = unittest.TextTestRunner()
test_suite = test_loader.discover(setup_dir)
test_runner.run(test_suite)
setup(
name='py_mybatis',
version='0.1.0',
author='dushitaoyuan',
author_email='[email protected]',
url='https://github.com/dushitaoyuan/py_mybatis.git',
description='python mybatis',
long_description=read('README.md'),
long_description_content_type='text/markdown',
keywords='mybatis py_mybatis dynamic sql orm',
packages=['py_mybatis'],
include_package_data=True,
install_requires=[
'sqlparse>=0.2.4',
'DBUtils>=1.3',
'PyMySQL>=0.9.3'
],
license='Apache 2.0',
zip_safe=False,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
cmdclass={'test': Test}
)