File tree 1 file changed +7
-3
lines changed 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
3
- """Check that all .whl files in the dist folder have the correct LICENSE files included.
3
+ """
4
+ Check that all .whl files in the dist folder have the correct LICENSE files
5
+ included.
4
6
5
7
To run:
6
8
$ python3 setup.py bdist_wheel
18
20
dist_dir = project_dir / 'dist'
19
21
license_dir = project_dir / 'LICENSE'
20
22
21
- license_file_names = [Path (path ).name for path in sorted (license_dir .glob ('*' ))]
23
+ license_file_names = [Path (path ).name
24
+ for path in sorted (license_dir .glob ('*' ))]
22
25
for wheel in dist_dir .glob ('*.whl' ):
23
26
print (f'Checking LICENSE files in: { wheel } ' )
24
27
with zipfile .ZipFile (wheel ) as f :
25
- wheel_license_file_names = [Path (path ).name for path in sorted (f .namelist ())
28
+ wheel_license_file_names = [Path (path ).name
29
+ for path in sorted (f .namelist
48C5
())
26
30
if '.dist-info/LICENSE' in path ]
27
31
if wheel_license_file_names != license_file_names :
28
32
print (f'LICENSE file(s) missing:\n '
You can’t perform that action at this time.
0 commit comments