Skip to content

Commit

Permalink
dings
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
  • Loading branch information
jkowalleck committed Jun 9, 2024
1 parent d3c84d2 commit ce4a503
Show file tree
Hide file tree
Showing 13 changed files with 7,536 additions and 464 deletions.
2 changes: 1 addition & 1 deletion cyclonedx_py/_internal/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def make_argument_parser(**kwargs: Any) -> 'ArgumentParser':
action='store_true',
dest='pep639',
help='Enable license gathering according to PEP 639 '
'(improving license clarity with better package metadata)\n'
'(improving license clarity with better package metadata).\n'
'The behaviour may change during the draft development of the PEP.')
p.add_argument('--gather-license-texts',
action='store_true',
Expand Down
2 changes: 1 addition & 1 deletion cyclonedx_py/_internal/utils/pep639.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def dist2licenses(
continue
content_type = guess_type(mlfile)[0] or AttachedText.DEFAULT_CONTENT_TYPE
encoding = None
if content_type.startswith('text/'):
if not content_type.startswith('text/'):
mlfile_c, encoding = b64encode(bytes(mlfile_c, 'utf-8')).decode('ascii'), Encoding.BASE_64
yield DisjunctiveLicense(
name=f'declared license file: {mlfile}',
Expand Down
1,241 changes: 1,219 additions & 22 deletions tests/_data/snapshots/environment/pep639-texts_with-extras_1.1.xml.bin

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1,241 changes: 1,219 additions & 22 deletions tests/_data/snapshots/environment/pep639-texts_with-extras_1.2.xml.bin

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1,241 changes: 1,219 additions & 22 deletions tests/_data/snapshots/environment/pep639-texts_with-extras_1.3.xml.bin

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1,241 changes: 1,219 additions & 22 deletions tests/_data/snapshots/environment/pep639-texts_with-extras_1.4.xml.bin

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1,241 changes: 1,219 additions & 22 deletions tests/_data/snapshots/environment/pep639-texts_with-extras_1.5.xml.bin

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1,241 changes: 1,219 additions & 22 deletions tests/_data/snapshots/environment/pep639-texts_with-extras_1.6.xml.bin

Large diffs are not rendered by default.

0 comments on commit ce4a503

Please sign in to comment.