Commit 4e567d8 1 parent 92b7dae commit 4e567d8 Copy full SHA for 4e567d8
File tree 10 files changed +849
-21
lines changed
unpacked_sdist/prefer-egg-info-pkg-info
unpacked_wheel/metadata-2.3
beartype-0.19.0.dist-info
10 files changed +849
-21
lines changed Original file line number Diff line number Diff line change @@ -1642,10 +1642,10 @@ def get_declared_license(metainfo):
1642
1642
# TODO: We should make the declared license as it is, this should be
1643
1643
# updated in scancode to parse a pure string
1644
1644
lic = get_attribute (metainfo , 'License' )
1645
-
1646
- license_file = None
1647
- if lic and 'file' in lic :
1648
- license_file = lic .pop ('file' )
1645
+ license_file = get_attribute ( metainfo , 'License-File' )
1646
+ if not license_file and lic :
1647
+ if isinstance ( lic , dict ) and 'file' in lic . keys () :
1648
+ license_file = lic .pop ('file' )
1649
1649
1650
1650
if lic and not lic == 'UNKNOWN' :
1651
1651
if 'text' in lic :
Original file line number Diff line number Diff line change 187
187
"Documentation" : " https://click.palletsprojects.com/" ,
188
188
"Changes" : " https://click.palletsprojects.com/changes/" ,
189
189
"Twitter" : " https://twitter.com/PalletsTeam" ,
190
- "Chat" : " https://discord.gg/pallets"
190
+ "Chat" : " https://discord.gg/pallets" ,
191
+ "license_file" : " LICENSE.rst"
191
192
},
192
193
"repository_homepage_url" : " https://pypi.org/project/click" ,
193
194
"repository_download_url" : " https://pypi.org/packages/source/c/click/click-8.0.4.tar.gz" ,
717
718
"Documentation" : " https://click.palletsprojects.com/" ,
718
719
"Changes" : " https://click.palletsprojects.com/changes/" ,
719
720
"Twitter" : " https://twitter.com/PalletsTeam" ,
720
- "Chat" : " https://discord.gg/pallets"
721
+ "Chat" : " https://discord.gg/pallets" ,
722
+ "license_file" : " LICENSE.rst"
721
723
},
722
724
"dependencies" : [
723
725
{
Original file line number Diff line number Diff line change 93
93
"source_packages" : [],
94
94
"is_private" : false ,
95
95
"is_virtual" : false ,
96
- "extra_data" : {},
96
+ "extra_data" : {
97
+ "license_file" : " apache-2.0.LICENSE"
98
+ },
97
99
"repository_homepage_url" : " https://pypi.org/project/scancode-toolkit" ,
98
100
"repository_download_url" : " https://pypi.org/packages/source/s/scancode-toolkit/scancode-toolkit-31.0.0b1.tar.gz" ,
99
101
"api_data_url" : " https://pypi.org/pypi/scancode-toolkit/31.0.0b1/json" ,
207
209
"file_references" : [],
208
210
"is_private" : false ,
209
211
"is_virtual" : false ,
210
- "extra_data" : {},
212
+ "extra_data" : {
213
+ "license_file" : " apache-2.0.LICENSE"
214
+ },
211
215
"dependencies" : [],
212
216
"repository_homepage_url" : " https://pypi.org/project/scancode-toolkit" ,
213
217
"repository_download_url" : " https://pypi.org/packages/source/s/scancode-toolkit/scancode-toolkit-31.0.0b1.tar.gz" ,
Original file line number Diff line number Diff line change 103
103
"is_virtual" : false ,
104
104
"extra_data" : {
105
105
"Documentation" : " https://pip.pypa.io" ,
106
- "Changelog" : " https://pip.pypa.io/en/stable/news/"
106
+ "Changelog" : " https://pip.pypa.io/en/stable/news/" ,
107
+ "license_file" : " LICENSE.txt"
107
108
},
108
109
"repository_homepage_url" : " https://pypi.org/project/pip" ,
109
110
"repository_download_url" : " https://pypi.org/packages/source/p/pip/pip-22.0.4.tar.gz" ,
264
265
"is_virtual" : false ,
265
266
"extra_data" : {
266
267
"Documentation" : " https://pip.pypa.io" ,
267
- "Changelog" : " https://pip.pypa.io/en/stable/news/"
268
+ "Changelog" : " https://pip.pypa.io/en/stable/news/" ,
269
+ "license_file" : " LICENSE.txt"
268
270
},
269
271
"dependencies" : [],
270
272
"repository_homepage_url" : " https://pypi.org/project/pip" ,
1111
1113
"is_virtual" : false ,
1112
1114
"extra_data" : {
1113
1115
"Documentation" : " https://pip.pypa.io" ,
1114
- "Changelog" : " https://pip.pypa.io/en/stable/news/"
1116
+ "Changelog" : " https://pip.pypa.io/en/stable/news/" ,
1117
+ "license_file" : " LICENSE.txt"
1115
1118
},
1116
1119
"dependencies" : [],
1117
1120
"repository_homepage_url" : " https://pypi.org/project/pip" ,
Original file line number Diff line number Diff line change 93
93
"is_virtual" : false ,
94
94
"extra_data" : {
95
95
"Documentation" : " https://pip.pypa.io" ,
96
- "Changelog" : " https://pip.pypa.io/en/stable/news/"
96
+ "Changelog" : " https://pip.pypa.io/en/stable/news/" ,
97
+ "license_file" : " LICENSE.txt"
97
98
},
98
99
"dependencies" : [],
99
100
"repository_homepage_url" : " https://pypi.org/project/pip" ,
409
410
"notice_text" : null ,
410
411
"source_packages" : [],
411
412
"file_references" : [],
413
+ "is_private" : false ,
414
+ "is_virtual" : false ,
412
415
"extra_data" : {
413
416
"Documentation" : " https://pip.pypa.io" ,
414
417
"Changelog" : " https://pip.pypa.io/en/stable/news/"
415
418
},
416
- "is_private" : false ,
417
- "is_virtual" : false ,
418
419
"dependencies" : [],
419
420
"repository_homepage_url" : " https://pypi.org/project/pip" ,
420
421
"repository_download_url" : null ,
793
794
"is_virtual" : false ,
794
795
"extra_data" : {
795
796
"Documentation" : " https://pip.pypa.io" ,
796
- "Changelog" : " https://pip.pypa.io/en/stable/news/"
797
+ "Changelog" : " https://pip.pypa.io/en/stable/news/" ,
798
+ "license_file" : " LICENSE.txt"
797
799
},
798
800
"dependencies" : [],
799
801
"repository_homepage_url" : " https://pypi.org/project/pip" ,
Original file line number Diff line number Diff line change 103
103
"is_virtual" : false ,
104
104
"extra_data" : {
105
105
"Documentation" : " https://pip.pypa.io" ,
106
- "Changelog" : " https://pip.pypa.io/en/stable/news/"
106
+ "Changelog" : " https://pip.pypa.io/en/stable/news/" ,
107
+ "license_file" : " LICENSE.txt"
107
108
},
108
109
"repository_homepage_url" : " https://pypi.org/project/pip" ,
109
110
"repository_download_url" : " https://pypi.org/packages/source/p/pip/pip-22.0.4.tar.gz" ,
518
519
"is_virtual" : false ,
519
520
"extra_data" : {
520
521
"Documentation" : " https://pip.pypa.io" ,
521
- "Changelog" : " https://pip.pypa.io/en/stable/news/"
522
+ "Changelog" : " https://pip.pypa.io/en/stable/news/" ,
523
+ "license_file" : " LICENSE.txt"
522
524
},
523
525
"dependencies" : [],
524
526
"repository_homepage_url" : " https://pypi.org/project/pip" ,
1660
1662
"is_virtual" : false ,
1661
1663
"extra_data" : {
1662
1664
"Documentation" : " https://pip.pypa.io" ,
1663
- "Changelog" : " https://pip.pypa.io/en/stable/news/"
1665
+ "Changelog" : " https://pip.pypa.io/en/stable/news/" ,
1666
+ "license_file" : " LICENSE.txt"
1664
1667
},
1665
1668
"dependencies" : [],
1666
1669
"repository_homepage_url" : " https://pypi.org/project/pip" ,
Original file line number Diff line number Diff line change 107
107
"extra_data" : {
108
108
"Documentation" : " https://docs.celeryproject.org/en/latest/index.html" ,
109
109
"Changelog" : " https://docs.celeryproject.org/en/stable/changelog.html" ,
110
- "Funding" : " https://opencollective.com/celery"
110
+ "Funding" : " https://opencollective.com/celery" ,
111
+ "license_file" : " LICENSE"
111
112
},
112
113
"repository_homepage_url" : " https://pypi.org/project/celery" ,
113
114
"repository_download_url" : " https://pypi.org/packages/source/c/celery/celery-5.2.7.tar.gz" ,
1336
1337
"extra_data" : {
1337
1338
"Documentation" : " https://docs.celeryproject.org/en/latest/index.html" ,
1338
1339
"Changelog" : " https://docs.celeryproject.org/en/stable/changelog.html" ,
1339
- "Funding" : " https://opencollective.com/celery"
1340
+ "Funding" : " https://opencollective.com/celery" ,
1341
+ "license_file" : " LICENSE"
1340
1342
},
1341
1343
"dependencies" : [],
1342
1344
"repository_homepage_url" : " https://pypi.org/project/celery" ,
7339
7341
"extra_data" : {
7340
7342
"Documentation" : " https://docs.celeryproject.org/en/latest/index.html" ,
7341
7343
"Changelog" : " https://docs.celeryproject.org/en/stable/changelog.html" ,
7342
- "Funding" : " https://opencollective.com/celery"
7344
+ "Funding" : " https://opencollective.com/celery" ,
7345
+ "license_file" : " LICENSE"
7343
7346
},
7344
7347
"dependencies" : [
7345
7348
{
You can’t perform that action at this time.
0 commit comments