Skip to content

Commit

Permalink
Fix overriding of the extras_require
Browse files Browse the repository at this point in the history
  • Loading branch information
jozo committed Jun 11, 2021
1 parent f3b1c75 commit 7853fdb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pbr/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ def pbr(dist, attr, value):
if attrs:
# Skips 'options' and 'licence' support which are rarely used; may
# add back in later if demanded

# Merge extras_require if they were provided in distribution
if dist.extras_require:
attrs["extras_require"].update(dist.extras_require)

for key, val in attrs.items():
if hasattr(dist.metadata, 'set_' + key):
getattr(dist.metadata, 'set_' + key)(val)
Expand Down

0 comments on commit 7853fdb

Please sign in to comment.