Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c4892d0

Browse files
committed
Move license_file logic into setup.cfg so that wheel will use it to pull LICENES files into built wheel
1 parent 42bae1f commit c4892d0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

setup.cfg.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Rename this file to setup.cfg to modify Matplotlib's build options.
22

3+
[metadata]
4+
license_files = LICENSE/*
5+
36
[egg_info]
47

58
[libs]

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ def build_extensions(self):
249249
long_description=Path("README.rst").read_text(encoding="utf-8"),
250250
long_description_content_type="text/x-rst",
251251
license="PSF",
252-
license_files=list(map(lambda p: str(p), Path("LICENSE").glob('*'))),
253252
platforms="any",
254253
classifiers=[
255254
'Development Status :: 5 - Production/Stable',

0 commit comments

Comments
 (0)