File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -21,3 +21,4 @@ recursive-include tutorials *
21
21
include versioneer.py
22
22
include lib/matplotlib/_version.py
23
23
include tests.py
24
+ recursive-exclude lib/matplotlib/backends/web_backend/node_modules *
Original file line number Diff line number Diff line change 21
21
dist_dir = project_dir / 'dist'
22
22
license_dir = project_dir / 'LICENSE'
23
23
24
- license_file_names = [ path .name for path in sorted (license_dir .glob ('*' ))]
24
+ license_file_names = { path .name for path in sorted (license_dir .glob ('*' ))}
25
25
for wheel in dist_dir .glob ('*.whl' ):
26
26
print (f'Checking LICENSE files in: { wheel } ' )
27
27
with zipfile .ZipFile (wheel ) as f :
28
- wheel_license_file_names = [ Path (path ).name
28
+ wheel_license_file_names = { Path (path ).name
29
29
for path in sorted (f .namelist ())
30
- if '.dist-info/LICENSE' in path ]
31
- if wheel_license_file_names != license_file_names :
30
+ if '.dist-info/LICENSE' in path }
31
+ if not (len (wheel_license_file_names ) and
32
+ wheel_license_file_names .issuperset (license_file_names )):
32
33
print (f'LICENSE file(s) missing:\n '
33
34
f'{ wheel_license_file_names } !=\n '
34
35
f'{ license_file_names } ' )
You can’t perform that action at this time.
0 commit comments