Skip to content

Commit

Permalink
OZI.build 1.2.2 - fix length check
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed Aug 23, 2024
1 parent 7aaea14 commit 57e6e3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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.2.1', license : 'apache-2.0')
project('OZI.build', version : '1.2.2', license : 'apache-2.0')
fs = import('fs')
python = import('python').find_installation()
subdir('ozi_build')
Expand Down
2 changes: 1 addition & 1 deletion ozi_build/buildapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def _parse_project_optional_dependencies(self, k: str, v: str):
if any(i not in string.ascii_uppercase + string.ascii_lowercase + '-[],0123456789' for i in v):
raise ValueError('pyproject.toml:project.optional-dependencies has invalid character in nested key "{}"'.format(k))
for j in (name for name in v.strip('[]').split(',')):
if j[0] in string.ascii_uppercase + string.ascii_lowercase:
if len(j) > 0 and j[0] in string.ascii_uppercase + string.ascii_lowercase:
for package in self.__extras.get(j, []):
metadata += 'Requires-Dist: {}; extra=="{}"\n'.format(package, k)
else:
Expand Down

0 comments on commit 57e6e3f

Please sign in to comment.