Put db requirements to extra requirements
https://www.python.org/dev/peps/pep-0426/#extras-optional-dependencies Python is a great language and it support extra requirements. In our case, it can be used for listing database requirements. This patch adds two separate extra requirements: * psycopg2 as for Postgres database backend * PyMySQL as for MySQL database backend To install Rally with a specific database backend you need just to do execute pip in right way: pip install rally[postgres] or pip install rally[mysql] Change-Id: Ibf816758fc093a65b94e6a2b2c273a073275b393
This commit is contained in:
parent
19b85d4e6d
commit
55c50cadf4
@ -39,6 +39,12 @@ oslo.config.opts =
|
||||
setup-hooks =
|
||||
pbr.hooks.setup_hook
|
||||
|
||||
[extras]
|
||||
mysql =
|
||||
PyMySQL>=0.7.6 # MIT
|
||||
postgres =
|
||||
psycopg2>=2.5 # LGPL/ZPL
|
||||
|
||||
[build_sphinx]
|
||||
all_files = 1
|
||||
build-dir = doc/build
|
||||
|
Loading…
Reference in New Issue
Block a user