Do not silently drop markers that fail to evaluate

We are silently dropping requirements that do not parse, do not do this
and bubble the error up.

Change-Id: I5bfce7c7d0be2ccd880e78509856074a09c57166
Closes-Bug: 1554331
This commit is contained in:
Sachi King
2016-03-08 11:15:34 +11:00
parent 09c65298e5
commit 11ffee94fa
4 changed files with 67 additions and 4 deletions

View File

@@ -431,7 +431,13 @@ def setup_cfg_to_setup_kwargs(config, script_args=()):
if pkg_resources.evaluate_marker('(%s)' % env_marker):
extras_key = req_group
except SyntaxError:
pass
log.error(
"Marker evaluation failed, see the following "
"error. For more information see: "
"http://docs.openstack.org/"
"developer/pbr/compatibility.html#evaluate-marker"
)
raise
else:
extras_key = req_group
extras_require.setdefault(extras_key, []).append(requirement)