Use extras for ldap dependencies

This allows installing ldap dependencies using keystone[ldap].

pbr documentation:

 http://docs.openstack.org/developer/pbr/#environment-markers

Partial-Bug: 1479962
Change-Id: Id8e30bdcc16d99b0fb5dc995665d2ddeba19309f
This commit is contained in:
Brant Knudson 2015-07-30 14:25:29 -05:00
parent 08a5720c4e
commit 87ebedc136
3 changed files with 6 additions and 5 deletions

View File

@ -21,6 +21,11 @@ classifier =
packages =
keystone
[extras]
ldap =
python-ldap>=2.4:python_version=='2.7'
ldappool>=1.0 # MPL
[global]
setup-hooks =
pbr.hooks.setup_hook

View File

@ -11,11 +11,6 @@ python-memcached>=1.56
# Optional dogpile backend: MongoDB
pymongo>=3.0.2
# Optional backend: LDAP
# authenticate against an existing LDAP server
python-ldap>=2.4;python_version=='2.7'
ldappool>=1.0 # MPL
# Testing
# computes code coverage percentages
coverage>=3.6

View File

@ -9,6 +9,7 @@ install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
.[ldap]
commands = bash tools/pretty_tox.sh '{posargs}'
whitelist_externals = bash
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY