diff options
| author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2023-01-19 12:21:01 +0000 |
|---|---|---|
| committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2023-01-19 12:21:01 +0000 |
| commit | 9b8f44fd786efc9d20280aea2234693640016404 (patch) | |
| tree | 5103d363712ce7524f65d9942a97db0551c6e1b4 /setuptools | |
| parent | bad92728cfa4f608bc4c47d9a64ffa9cc225e93d (diff) | |
| download | python-setuptools-git-9b8f44fd786efc9d20280aea2234693640016404.tar.gz | |
Ensure file referenced by 'license.file' in pyproject.toml is added to sdist
Diffstat (limited to 'setuptools')
| -rw-r--r-- | setuptools/config/_apply_pyprojecttoml.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/setuptools/config/_apply_pyprojecttoml.py b/setuptools/config/_apply_pyprojecttoml.py index 22388e4f..c805e639 100644 --- a/setuptools/config/_apply_pyprojecttoml.py +++ b/setuptools/config/_apply_pyprojecttoml.py @@ -164,6 +164,7 @@ def _license(dist: "Distribution", val: dict, root_dir: _Path): if "file" in val: _set_config(dist, "license", expand.read_files([val["file"]], root_dir)) + dist._referenced_files.add(val["file"]) else: _set_config(dist, "license", val["text"]) |
