Uh oh!
There was an error while loading. Please reload this page.
This repository was archived by the owner on Jun 19, 2024. It is now read-only.
forked from julien-duponchelle/python-mysql-replication
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
54 lines (41 loc) · 1.26 KB
/
Copy pathsetup.py
File metadata and controls
54 lines (41 loc) · 1.26 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
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
fromsetuptoolsimportsetup, Command
exceptImportError:
fromdistutils.coreimportsetup, Command
importsys
tests_require= []
# add unittest2 to tests_require for python < 2.7
ifsys.version_info< (2, 7):
tests_require.append("unittest2")
classTestCommand(Command):
user_options= []
definitialize_options(self):
pass
deffinalize_options(self):
pass
defrun(self):
"""
Finds all the tests modules in tests/, and runs them.
"""
frompymysqlreplicationimporttests
importunittest
unittest.main(tests, argv=sys.argv[:1])
version="0.21"
setup(
name="mysql-replication",
version=version,
url="https://github.com/noplay/python-mysql-replication",
author="Julien Duponchelle",
author_email="julien@duponchelle.info",
description=("Pure Python Implementation of MySQL replication protocol "
"build on top of PyMYSQL."),
license="Apache 2",
packages=["pymysqlreplication",
"pymysqlreplication.constants",
"pymysqlreplication.tests"],
cmdclass={"test": TestCommand},
extras_require={'test': tests_require},
install_requires=['pymysql'],
)