File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22
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.
46
57To run:
68 $ python3 setup.py bdist_wheel
1820dist_dir = project_dir / 'dist'
1921license_dir = project_dir / 'LICENSE'
2022
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 ('*' ))]
2225for wheel in dist_dir .glob ('*.whl' ):
2326 print (f'Checking LICENSE files in: { wheel } ' )
2427 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 ())
2630 if '.dist-info/LICENSE' in path ]
2731 if wheel_license_file_names != license_file_names :
2832 print (f'LICENSE file(s) missing:\n '
You can’t perform that action at this time.
0 commit comments