forked from PyMySQL/PyMySQL
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
44 lines (36 loc) · 1.06 KB
/
Copy pathsetup.py
File metadata and controls
44 lines (36 loc) · 1.06 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
try:
fromsetuptoolsimportsetup, Command
exceptImportError:
fromdistutils.coreimportsetup, Command
importsys
classTestCommand(Command):
user_options= [ ]
definitialize_options(self):
pass
deffinalize_options(self):
pass
defrun(self):
'''
Finds all the tests modules in tests/, and runs them.
'''
frompymysqlimporttests
importunittest
unittest.main(tests, argv=sys.argv[:1])
version_tuple=__import__('pymysql').VERSION
ifversion_tuple[2] isnotNone:
version="%d.%d_%s"%version_tuple
else:
version="%d.%d"%version_tuple[:2]
setup(
name="PyMySQL",
version=version,
url='https://github.com/petehunt/PyMySQL/',
author='yutaka.matsubara',
author_email='yutaka.matsubara@gmail.com',
maintainer='Pete Hunt',
maintainer_email='floydophone@gmail.com',
description='Pure Python MySQL Driver ',
license="MIT",
packages= ['pymysql', 'pymysql.constants', 'pymysql.tests'],
cmdclass= {'test': TestCommand},
)