Switch to bindep 2.6.0

Change-Id: Ice88bfc7cc45a1b05c2f55d9df92f88fe13fd599
This commit is contained in:
Sam Yaple 2018-02-07 19:48:47 -05:00
parent 9ad4fe0d41
commit 1e7370e22b
No known key found for this signature in database
GPG Key ID: 9329D8A45034DAB9
3 changed files with 2 additions and 57 deletions

View File

@ -1,48 +0,0 @@
50c50,52
< selector = ws '[' profile:p1 (ws profile)*:p2 ']' -> [p1] + p2
---
> profiles = '(' (ws? profile)*:p ws? ')' -> p
> group = profiles | profile
> selector = ws '[' (ws? group)*:p ws? ']' -> p
141c143,147
< for sense, profile in rule[1]:
---
> for group in rule[1]:
> if isinstance(group, list):
> user.append(group)
> continue
> sense, profile = group
161a168,169
> group_found = False
> group_match_found = False
163c171,177
< for sense, profile in partition_rule:
---
> for group in partition_rule:
> if isinstance(group, list):
> group_found = True
> if self._match_all(group, profiles):
> group_match_found = True
> continue
> sense, profile = group
172c186,189
< if not negative and (match_found or not positive):
---
> if not negative:
> if group_match_found or match_found:
> return True
> if not group_found and not positive:
174a192,204
>
> def _match_all(self, partition_rules, profiles):
> """Evaluate rules. Do they all match the profiles?
>
> :return Result True if all profiles match else False
> """
> def matches(sense, profile, profiles):
> return sense if profile in profiles else not sense
>
> for sense, profile in partition_rules:
> if not matches(sense, profile, profiles):
> return False
> return True

View File

@ -51,17 +51,13 @@ if [[ "${PLUGIN}" == "no" ]]; then
$(dirname $0)/create_user.sh
$(dirname $0)/setup_pip.sh
$(dirname $0)/pip_install.sh \
bindep==2.5.0 \
bindep==2.6.0 \
cryptography \
pymysql \
python-memcached \
uwsgi
fi
# NOTE(SamYaple): Remove when bindep>2.5.0 is released
patch /var/lib/openstack/lib/python*/site-packages/bindep/depends.py < /opt/loci/scripts/bindep.depends.patch
rm -f /var/lib/openstack/lib/python*/site-packages/bindep/depends.pyc
if [[ ${PROJECT} == 'nova' ]]; then
$(dirname $0)/pip_install.sh libvirt-python
fi

View File

@ -19,10 +19,7 @@ case ${distro} in
esac
$(dirname $0)/setup_pip.sh
pip install bindep==2.5.0
# NOTE(SamYaple): Remove when bindep>2.5.0 is released
patch /var/lib/openstack/lib/python*/site-packages/bindep/depends.py < /opt/loci/scripts/bindep.depends.patch
rm -f /var/lib/openstack/lib/python*/site-packages/bindep/depends.pyc
pip install bindep==2.6.0
$(dirname $0)/install_packages.sh
$(dirname $0)/clone_project.sh