Skip to content

Commit d7c682d

Browse files
committed
Remove deprecated is_license_text plugin
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent ccc79a4 commit d7c682d

File tree

3 files changed

+11
-103
lines changed

3 files changed

+11
-103
lines changed

CHANGELOG.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,16 @@ License detection:
175175

176176
- See https://github.com/nexB/scancode-toolkit/issues/3049
177177

178-
- Theer is a new ``--get-license-data`` scancode command line option to export
178+
- There is a new ``--get-license-data`` scancode command line option to export
179179
license data in JSON, YAML and HTML, with indexes and a static website for use
180180
in the licensedb web site. This becomes the API way to getr scancode license
181181
data.
182182

183183
See https://github.com/nexB/scancode-toolkit/issues/2738
184184

185+
- The deprecated "--is-license-text" option has been removed.
186+
This is now built-in with the --license-text option and --info
187+
and exposed with the "percentage_of_license_text" attribute.
185188

186189

187190
v31.2.3 - 2022-12-24

src/licensedcode/plugin_license_text.py

Lines changed: 0 additions & 99 deletions
This file was deleted.

tests/licensedcode/test_plugin_license_text.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,12 @@ def test_is_licensing_works():
2929
result_file = test_env.get_temp_file('json')
3030
args = [
3131
'--license', '--license-text',
32-
'--is-license-text', '--info',
32+
'--info',
3333
test_dir, '--json-pp', result_file, '--verbose']
3434
run_scan_click(args)
35-
check_json_scan(test_env.get_test_loc('plugin_license_text/scan.expected.json'),
36-
result_file, remove_file_date=True, regen=REGEN_TEST_FIXTURES)
35+
check_json_scan(
36+
test_env.get_test_loc('plugin_license_text/scan.expected.json'),
37+
result_file,
38+
remove_file_date=True,
39+
regen=REGEN_TEST_FIXTURES,
40+
)

0 commit comments

Comments
 (0)