Skip to content

Commit

Permalink
fix: project.optional_dependencies is parsed into wheel METADATA
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed Aug 22, 2024
1 parent a68c9b0 commit 6933ce8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project('OZI.build', version : '1.1.0', license : 'apache-2.0')
project('OZI.build', version : '1.1.1', license : 'apache-2.0')
fs = import('fs')
python = import('python').find_installation()
subdir('ozi_build')
Expand Down
6 changes: 6 additions & 0 deletions ozi_build/buildapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def __init__(self, builddir=None):
self.__entry_points = config['tool']['ozi-build'].get(
'entry-points', []
)
self.__extras = config.get('project', {}).get('optional_dependencies', {})
self.installed = []
self.options = []
self.builddir = None
Expand Down Expand Up @@ -211,6 +212,11 @@ def get_metadata(self):
vals = self.get(key, [])
for val in vals:
res += '{}: {}\n'.format(mdata_key, val)
for k, v in self.__extras.items():
res += "Provides-Extra: {}\n".format(k)
if isinstance(v, list):
for i in v:
res += 'Requires-Dist: {}; extra=="{}"\n'.format(i, k)

description = ''
description_content_type = 'text/plain'
Expand Down

0 comments on commit 6933ce8

Please sign in to comment.