File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 9
9
- DB=mysql57
10
10
- DB=mysql56
11
11
install :
12
- - " pip install ."
13
- - " pip install nose"
12
+ # Needs a newer version of pip to do the pip installation line
13
+ - pip install pip --upgrade
14
+ - pip install .[test] nose
14
15
cache : apt
15
16
before_script :
16
17
- env | grep DB
Original file line number Diff line number Diff line change 8
8
9
9
import sys
10
10
11
- install_requires = ['pymysql' ]
11
+ tests_require = []
12
12
13
- # add unittest2 to install_requires for python < 2.7
13
+ # add unittest2 to tests_require for python < 2.7
14
14
if sys .version_info < (2 , 7 ):
15
- install_requires .append ("unittest2" )
15
+ tests_require .append ("unittest2" )
16
16
17
17
18
18
class TestCommand (Command ):
@@ -49,5 +49,6 @@ def run(self):
49
49
"pymysqlreplication.constants" ,
50
50
"pymysqlreplication.tests" ],
51
51
cmdclass = {"test" : TestCommand },
52
- install_requires = install_requires ,
52
+ extras_require = {'test' : tests_require },
53
+ install_requires = ['pymysql' ],
53
54
)
You can’t perform that action at this time.
0 commit comments