Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added support for license_file defined in PEP639 #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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