Skip to content

Commit

Permalink
added support for license_file defined in PEP639
Browse files Browse the repository at this point in the history
  • Loading branch information
mboisson committed Aug 17, 2021
1 parent f8f8ca9 commit 949f198
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion wheelfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ class MetaData:
classifier is used, this parameter may be omitted or used to specify the
particular version of the intended legal text.
license_file
The License-File is a string that is a path, relative to``.dist-info``,
to a license file. The license file content MUST be UTF-8 encoded text.
home_page
URL of the home page for this distribution (project).
Expand Down Expand Up @@ -338,7 +342,8 @@ def __init__(self, *, name: str, version: Union[str, Version],
requires_externals: Optional[List[str]] = None,
provides_extras: Optional[List[str]] = None,
provides_dists: Optional[List[str]] = None,
obsoletes_dists: Optional[List[str]] = None
obsoletes_dists: Optional[List[str]] = None,
license_files: Optional[List[str]] = None,
):
# self.metadata_version = '2.1' by property
self.name = name
Expand Down Expand Up @@ -373,6 +378,7 @@ def __init__(self, *, name: str, version: Union[str, Version],
self.provides_extras = provides_extras or []
self.provides_dists = provides_dists or []
self.obsoletes_dists = obsoletes_dists or []
self.license_files = license_files or []

__slots__ = _slots_from_params(__init__)

Expand Down

0 comments on commit 949f198

Please sign in to comment.