Skip to content

Commit

Permalink
Merge pull request #941 from conda/ilan/about
Browse files Browse the repository at this point in the history
add info/about.json
  • Loading branch information
msarahan committed Jun 3, 2016
2 parents 069f1e1 + 2457c8e commit cae2e6c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions conda_build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,15 @@ def create_info_files(m, files, include_recipe=True):
with open(join(config.info_dir, 'index.json'), **mode_dict) as fo:
json.dump(info_index, fo, indent=2, sort_keys=True)

with open(join(config.info_dir, 'about.json'), 'w') as fo:
d = {}
for key in ('home', 'dev_url', 'doc_url', 'license_url',
'license', 'summary', 'description', 'license_family'):
value = m.get_value('about/%s' % key)
if value:
d[key] = value
json.dump(d, fo, indent=2, sort_keys=True)

if include_recipe:
with open(join(config.info_dir, 'recipe.json'), **mode_dict) as fo:
json.dump(m.meta, fo, indent=2, sort_keys=True)
Expand Down

0 comments on commit cae2e6c

Please sign in to comment.