Skip to content

Commit cfb9140

Browse files
Merge branch 'develop' into improve-license-detection
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
2 parents 4f85513 + 742b20c commit cfb9140

File tree

100 files changed

+753
-51
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+753
-51
lines changed

CHANGELOG.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ v33.0.0 (next next, roadmap)
4646
- Update ABOUT files to adapt the ABOUT File Specification.
4747
See https://github.com/aboutcode-org/scancode-toolkit/issues/4181
4848

49+
- Also return sha1_git checksums for each files with ``--info`` plugin.
50+
https://github.com/aboutcode-org/scancode-toolkit/issues/624
51+
4952

5053
v32.3.3 - 2025-03-06
5154
--------------------

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ jobs:
203203
python_architecture: x64
204204
test_suites:
205205
click_versions: |
206-
for clk_ver in 8.1.3 8.1.2 8.1.1 8.1.0 8.0.4 8.0.3 8.0.2 8.0.1 7.1.2 7.1.1 7.1 6.7;
206+
for clk_ver in 8.2.0 8.2.1 8.1.7 8.1.6 8.1.5 8.1.4 8.1.3 8.1.2 8.1.1 8.1.0 8.0.4 8.0.2 8.0.3 8.0.1 7.1.2 7.1.1 7.1 6.7;
207207
do
208208
venv/bin/pip install click==$clk_ver;
209209
venv/bin/scancode -i samples/ -n3 --json foo.json;

docs/source/cli-reference/output-format.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ following options.
141141
"date": "2019-02-12",
142142
"sha1": "fca4540d490fff36bb90fd801cf9cd8fc695bb17",
143143
"md5": "a980b61c1e8be68d5cdb1236ba6b43e7",
144+
"sha1_git": "d9a10c0d8e868ebf8da0b3dc95bb0be634c34bfe",
144145
"mime_type": "text/x-c++",
145146
"file_type": "C++ source, ASCII text",
146147
"programming_language": "C++",
@@ -481,6 +482,7 @@ Comparing Different ``json`` Output Formats
481482
- size,
482483
- sha1,
483484
- md5,
485+
- sha1_git,
484486
- files_count,
485487
- mime_type,
486488
- file_type,

docs/source/cli-reference/scan-options-post.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,6 +1060,7 @@ To see all plugins available via command line help, use ``--plugins``.
10601060
"sha1": null,
10611061
"md5": null,
10621062
"sha256": null,
1063+
"sha1_git": null,
10631064
"mime_type": null,
10641065
"file_type": null,
10651066
"programming_language": null,

docs/source/cli-reference/synopsis.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ A sample JSON output file structure will look like::
156156
"date": "2019-02-12",
157157
"sha1": "2e07e32c52d607204fad196052d70e3d18fb8636",
158158
"md5": "effc6856ef85a9250fb1a470792b3f38",
159+
"sha1_git": "d9a10c0d8e868ebf8da0b3dc95bb0be634c34bfe",
159160
"mime_type": "text/plain",
160161
"file_type": "ASCII text",
161162
"programming_language": null,

requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ certifi==2024.2.2
88
cffi==1.16.0
99
chardet==5.0.0
1010
charset-normalizer==2.1.0
11-
click==8.1.7
11+
click==8.2.1;python_version>='3.10'
12+
click==8.1.7;python_version<'3.10'
1213
colorama==0.4.5
13-
commoncode==32.2.1
14+
commoncode==32.3.0
1415
construct==2.10.68
1516
container-inspector==31.1.0
1617
cryptography==42.0.5

setup-mini.cfg

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ install_requires =
6767
Beautifulsoup4[chardet] >= 4.13.0
6868
boolean.py >= 4.0
6969
chardet >= 3.0.0
70-
click >= 6.7, !=7.0, !=8.1.8
70+
click >= 6.7, !=7.0, !=8.1.8;python_version<'3.10'
71+
click >= 8.2.0;python_version>='3.10'
7172
colorama >= 0.3.9
72-
commoncode >= 32.2.1
73+
commoncode >= 32.3.0
7374
container-inspector >= 31.0.0
7475
debian-inspector >= 31.1.0
7576
dparse2 >= 0.7.0

setup.cfg

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ install_requires =
6767
Beautifulsoup4[chardet] >= 4.13.0
6868
boolean.py >= 4.0
6969
chardet >= 3.0.0
70-
click >= 6.7, !=7.0, !=8.1.8
70+
click >= 6.7, !=7.0, !=8.1.8;python_version<'3.10'
71+
click >= 8.2.0;python_version>='3.10'
7172
colorama >= 0.3.9
72-
commoncode >= 32.2.1
73+
commoncode >= 32.3.0
7374
container-inspector >= 31.0.0
7475
debian-inspector >= 31.1.0
7576
dparse2 >= 0.7.0

src/licensedcode/data/licenses/code-credit-license-1.0-0.LICENSE renamed to src/licensedcode/data/licenses/code-credit-license-1.0.0.LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
key: code-credit-license-1.0-0
2+
key: code-credit-license-1.0.0
33
short_name: Code Credit License v1.0.0
44
name: Code Credit License v1.0.0
55
category: Permissive
@@ -114,4 +114,4 @@ No contributor can revoke this license.
114114
***As far as the law allows, this software comes as is,
115115
without any warranty or condition, and no contributor
116116
will be liable to anyone for any damages related to this
117-
software or this license, under any kind of legal claim.***
117+
software or this license, under any kind of legal claim.***

src/licensedcode/data/licenses/liliq-r-1.1.LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
key: liliq-r-1.1
33
language: fr
44
short_name: LiLiQ-R-1.1
5-
name: Licence Libre du Québec – Réciprocité version 1.
5+
name: Licence Libre du Québec – Réciprocité version 1.1
66
category: Copyleft Limited
77
owner: Quebec
88
homepage_url: https://opensource.org/licenses/LiLiQ-R-1.1

0 commit comments

Comments
 (0)