File tree Expand file tree Collapse file tree 3 files changed +18
-10
lines changed Expand file tree Collapse file tree 3 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,17 @@ Currently available features:
23
23
Installation
24
24
------------
25
25
26
- The ** testcontainers** module is available from PyPi at:
26
+ The ** testcontainers** module is available from PyPI at:
27
27
28
28
* https://pypi.python.org/pypi/testcontainers
29
29
30
- and can be installed using `` pip `` .
30
+ and can be installed using `` pip `` , depending on which containers you need:
31
31
32
- pip install testcontainers
32
+ pip install testcontainers[mysql]
33
+ pip install testcontainers[postgresql]
34
+ pip install testcontainers[selenium]
35
+ # or with multiple
36
+ pip install testcontainers[mysql,postgresql,selenium]
33
37
34
38
Basic usage
35
39
-----------
Original file line number Diff line number Diff line change @@ -21,11 +21,15 @@ Installation
21
21
The testcontainers module is available from PyPi at:
22
22
23
23
https://pypi.python.org/pypi/testcontainers
24
- and can be installed using pip.
24
+ and can be installed using pip, depending on which containers you need:
25
25
26
26
::
27
27
28
- pip install testcontainers
28
+ pip install testcontainers[mysql]
29
+ pip install testcontainers[postgresql]
30
+ pip install testcontainers[selenium]
31
+ # or with multiple
32
+ pip install testcontainers[mysql,postgresql,selenium]
29
33
30
34
31
35
Compatibility
Original file line number Diff line number Diff line change 38
38
'Operating System :: MacOS' ,
39
39
],
40
40
install_requires = [
41
- 'selenium==2.53.1' ,
42
41
'docker' ,
43
42
'wrapt' ,
44
- 'pymysql' ,
45
- 'sqlalchemy' ,
46
- 'psycopg2' ,
47
43
'crayons' ,
48
44
'blindspin' ,
49
- 'pymysql'
50
45
],
46
+ extras_require = {
47
+ 'mysql' : ['sqlalchemy' , 'pymysql' ],
48
+ 'postgresql' : ['sqlalchemy' , 'psycopg2' ],
49
+ 'selenium' : ['selenium==2.53.1' ],
50
+ }
51
51
)
You can’t perform that action at this time.
0 commit comments