Skip to content

Commit c24b295

Browse files
authored
Merge pull request #26 from nexB/use-scancode-option
Use scancode -dump-license-data option
2 parents 88c9010 + cc423e9 commit c24b295

File tree

6,257 files changed

+289941
-12935
lines changed

Some content is hidden

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

6,257 files changed

+289941
-12935
lines changed

.github/workflows/daily-update.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Update LicenseDB with latest updates from scancode-toolkit develop daily
2+
on:
3+
schedule:
4+
- cron: '0 16 * * 0-6'
5+
6+
jobs:
7+
update_licenseDB:
8+
name: Daily LicenseDB Update
9+
runs-on: ubuntu-latest
10+
11+
defaults:
12+
run:
13+
shell: bash
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v1
20+
with:
21+
python-version: 3.8
22+
23+
- name: Give execute access to the script
24+
run: chmod u+x ./etc/scripts/check_commit_run_update.sh
25+
26+
- name: Run script
27+
run: ./etc/scripts/check_commit_run_update.sh
28+
29+
- name: Commit and Push to Publish
30+
run: |
31+
git config --global user.name 'LicenseDB Update GitHub Action'
32+
git config --global user.email '[email protected]'
33+
git commit -am "Automated LicenseDB update with latest from scancode-toolkit develop"
34+
git push

Makefile

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -34,45 +34,36 @@ ACTIVATE=. bin/activate;
3434
BLACK_ARGS=--exclude="docs" .
3535

3636
conf:
37-
@echo "-> Configure the Python venv and install dependencies"
37+
@echo "-> Configure the Python venv, clone and install scancode-toolkit"
3838
${PYTHON_EXE} -m venv venv
39+
@git clone https://github.com/nexB/scancode-toolkit.git
3940
@venv/bin/pip install --upgrade pip
40-
@venv/bin/pip install scancode-toolkit
41+
@venv/bin/pip install -e ./scancode-toolkit/
4142

42-
upgrade:
43-
@echo "-> Configure the Python venv and install dependencies"
44-
@venv/bin/pip install --upgrade scancode-toolkit
43+
restore:
44+
@echo "-> Restoring the repository to a clean state"
45+
git clean -fd
46+
rm -rf scancode-toolkit/
47+
git restore --worktree docs/
4548

4649
clean:
4750
# Remove the whole content of docs/ except for the CNAME file
51+
# Remove the whole content of scancode-toolkit/
4852
find docs/* ! -name 'CNAME' -exec git rm -r {} +
49-
50-
isort:
51-
@echo "-> Apply isort changes to ensure proper imports ordering"
52-
@venv/bin/pip install isort==5.6.4
53-
@venv/bin/isort app.py
54-
55-
black:
56-
@echo "-> Apply black code formatter"
57-
@venv/bin/pip install black==20.8b1 isort
58-
@venv/bin/black ${BLACK_ARGS}
59-
60-
valid: isort black
53+
find scancode-toolkit/* -exec git rm -r {} +
6154

6255
html:
6356
@echo "-> Generate the HTML content"
64-
@venv/bin/python app.py
65-
@echo "-> Copy the static assets"
66-
@cp -R static/ docs/static/
57+
@venv/bin/scancode-license-data --path docs/
6758
@echo "Available at docs/index.html"
6859

6960
build: conf html
7061

7162
publish:
7263
@echo "-> Add changes to git"
7364
@git add .
74-
git commit -m "Upgrade ScanCode-toolkit to latest version"
65+
git commit -m "Upgrade with latest updates from ScanCode-toolkit develop"
7566
@echo "-> Push changes to main repo"
7667
@git push
7768

78-
.PHONY: conf clean isort black valid html build publish
69+
.PHONY: conf clean html build publish

README.rst

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ Browse
2828
The web site is published at: https://scancode-licensedb.aboutcode.org/
2929
You can search the licenses by name, key and other attributes.
3030

31+
This is updated daily by a GitHub action with updates from scancode-toolkit
32+
develop, if any.
33+
3134

3235
API
3336
------
@@ -51,7 +54,9 @@ license details and texts using this license key as an identifier:
5154

5255

5356
This index and the static website is also available offline with ScanCode Toolkit as a
54-
command line option `--get-license-data`.
57+
console script available at configure/install. Sample command::
58+
59+
scancode-license-data --path PATH
5560

5661

5762
Git
@@ -82,16 +87,7 @@ Build
8287

8388
To re/generate the HTML and API content use this command::
8489

85-
$ make build
86-
87-
88-
Upgrade
89-
-------
90-
91-
To upgrade to the latest scancode-toolkit and generate the HTML and API content
92-
run this command::
93-
94-
$ make clean upgrade build publish
90+
$ make restore conf html
9591

9692

9793
License

app.py

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

docs/389-exception.LICENSE

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,49 @@
1+
---
2+
key: 389-exception
3+
short_name: 389 Directory Server Exception to GPL 2.0
4+
name: 389 Directory Server Exception to GPL 2.0
5+
category: Copyleft Limited
6+
owner: Fedora
7+
homepage_url: https://spdx.org/licenses/389-exception.html
8+
is_exception: yes
9+
spdx_license_key: 389-exception
10+
text_urls:
11+
- http://www.directory.fedora.redhat.com/wiki/GPL_Exception_License_Text
12+
other_urls:
13+
- http://directory.fedoraproject.org/wiki/GPL_Exception_License_Text
14+
- http://www.gnu.org/licenses/gpl-2.0.txt
15+
- https://web.archive.org/web/20080828121337/http://directory.fedoraproject.org/wiki/GPL_Exception_License_Text
16+
standard_notice: |
17+
This Program is free software; you can redistribute it and/or modify it
18+
under the terms of the GNU General Public License as published by the Free
19+
Software Foundation; version 2 of the License.
20+
This Program is distributed in the hope that it will be useful, but WITHOUT
21+
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
22+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
23+
more details.
24+
You should have received a copy of the GNU General Public License along
25+
with this Program; if not, write to the Free Software Foundation, Inc., 59
26+
Temple Place, Suite 330, Boston, MA 02111-1307 USA.
27+
In addition, as a special exception, Red Hat, Inc. gives You the additional
28+
right to link the code of this Program with code not covered under the GNU
29+
General Public License ("Non-GPL Code") and to distribute linked
30+
combinations including the two, subject to the limitations in this
31+
paragraph. Non-GPL Code permitted under this exception must only link to
32+
the code of this Program through those well defined interfaces identified
33+
in the file named EXCEPTION found in the source code files (the "Approved
34+
Interfaces"). The files of Non-GPL Code may instantiate templates or use
35+
macros or inline functions from the Approved Interfaces without causing the
36+
resulting work to be covered by the GNU General Public License. Only Red
37+
Hat, Inc. may make changes or additions to the list of Approved Interfaces.
38+
You must obey the GNU General Public License in all respects for all of the
39+
Program code and other code used in conjunction with the Program except the
40+
Non-GPL Code covered by this exception. If you modify this file, you may
41+
extend this exception to your version of the file, but you are not
42+
obligated to do so. If you do not wish to provide this exception without
43+
modification, you must delete this exception statement from your version
44+
and license this file solely under the GPL without exception.
45+
---
46+
147
In addition, as a special exception, Red Hat, Inc. gives You the additional
248
right to link the code of this Program with code not covered under the GNU
349
General Public License ("Non-GPL Code") and to distribute linked combinations

docs/389-exception.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
<dd>
134134

135135
<ul class="list-style-none">
136-
<li><a href="http://directory.fedoraproject.org/wiki/GPL_Exception_License_Text" rel="noopener" target="_blank">http://directory.fedoraproject.org/wiki/GPL_Exception_License_Text</a></li><li><a href="http://www.gnu.org/licenses/gpl-2.0.txt" rel="noopener" target="_blank">http://www.gnu.org/licenses/gpl-2.0.txt</a></li>
136+
<li><a href="http://directory.fedoraproject.org/wiki/GPL_Exception_License_Text" rel="noopener" target="_blank">http://directory.fedoraproject.org/wiki/GPL_Exception_License_Text</a></li><li><a href="http://www.gnu.org/licenses/gpl-2.0.txt" rel="noopener" target="_blank">http://www.gnu.org/licenses/gpl-2.0.txt</a></li><li><a href="https://web.archive.org/web/20080828121337/http://directory.fedoraproject.org/wiki/GPL_Exception_License_Text" rel="noopener" target="_blank">https://web.archive.org/web/20080828121337/http://directory.fedoraproject.org/wiki/GPL_Exception_License_Text</a></li>
137137
</ul>
138138

139139
</dd>
@@ -203,7 +203,8 @@
203203
<a href="https://www.aboutcode.org/" target="_blank">AboutCode</a>
204204
</p>
205205
<p>Designed and built by <a href="https://www.nexb.com/" target="_blank">nexB</a>. Licensed under the <a href="cc-by-4.0.html">Creative Commons Attribution License 4.0 (CC-BY-4.0)</a>.</p>
206-
<p>Generated with <a href="https://github.com/nexB/scancode-toolkit" target="_blank">ScanCode toolkit</a> 31.1.1 on Sep 05, 2022.</p>
206+
<p>Generated with <a href="https://github.com/nexB/scancode-toolkit" target="_blank">ScanCode toolkit</a> 32.0.0rc1 on Jan 12, 2023.</p>
207+
<p>This is updated daily automatically with latest updates from the develop branch of scancode-toolkit, if any.</p>
207208
</footer>
208209
</div>
209210

docs/389-exception.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,19 @@
1-
{"key": "389-exception", "short_name": "389 Directory Server Exception to GPL 2.0", "name": "389 Directory Server Exception to GPL 2.0", "category": "Copyleft Limited", "owner": "Fedora", "homepage_url": "https://spdx.org/licenses/389-exception.html", "is_exception": true, "spdx_license_key": "389-exception", "text_urls": ["http://www.directory.fedora.redhat.com/wiki/GPL_Exception_License_Text"], "other_urls": ["http://directory.fedoraproject.org/wiki/GPL_Exception_License_Text", "http://www.gnu.org/licenses/gpl-2.0.txt"], "standard_notice": "This Program is free software; you can redistribute it and/or modify it\nunder the terms of the GNU General Public License as published by the Free\nSoftware Foundation; version 2 of the License.\nThis Program is distributed in the hope that it will be useful, but WITHOUT\nANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\nFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\nmore details.\nYou should have received a copy of the GNU General Public License along\nwith this Program; if not, write to the Free Software Foundation, Inc., 59\nTemple Place, Suite 330, Boston, MA 02111-1307 USA.\nIn addition, as a special exception, Red Hat, Inc. gives You the additional\nright to link the code of this Program with code not covered under the GNU\nGeneral Public License (\"Non-GPL Code\") and to distribute linked\ncombinations including the two, subject to the limitations in this\nparagraph. Non-GPL Code permitted under this exception must only link to\nthe code of this Program through those well defined interfaces identified\nin the file named EXCEPTION found in the source code files (the \"Approved\nInterfaces\"). The files of Non-GPL Code may instantiate templates or use\nmacros or inline functions from the Approved Interfaces without causing the\nresulting work to be covered by the GNU General Public License. Only Red\nHat, Inc. may make changes or additions to the list of Approved Interfaces.\nYou must obey the GNU General Public License in all respects for all of the\nProgram code and other code used in conjunction with the Program except the\nNon-GPL Code covered by this exception. If you modify this file, you may\nextend this exception to your version of the file, but you are not\nobligated to do so. If you do not wish to provide this exception without\nmodification, you must delete this exception statement from your version\nand license this file solely under the GPL without exception.\n"}
1+
{
2+
"key": "389-exception",
3+
"short_name": "389 Directory Server Exception to GPL 2.0",
4+
"name": "389 Directory Server Exception to GPL 2.0",
5+
"category": "Copyleft Limited",
6+
"owner": "Fedora",
7+
"homepage_url": "https://spdx.org/licenses/389-exception.html",
8+
"is_exception": true,
9+
"spdx_license_key": "389-exception",
10+
"text_urls": [
11+
"http://www.directory.fedora.redhat.com/wiki/GPL_Exception_License_Text"
12+
],
13+
"other_urls": [
14+
"http://directory.fedoraproject.org/wiki/GPL_Exception_License_Text",
15+
"http://www.gnu.org/licenses/gpl-2.0.txt",
16+
"https://web.archive.org/web/20080828121337/http://directory.fedoraproject.org/wiki/GPL_Exception_License_Text"
17+
],
18+
"standard_notice": "This Program is free software; you can redistribute it and/or modify it\nunder the terms of the GNU General Public License as published by the Free\nSoftware Foundation; version 2 of the License.\nThis Program is distributed in the hope that it will be useful, but WITHOUT\nANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\nFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\nmore details.\nYou should have received a copy of the GNU General Public License along\nwith this Program; if not, write to the Free Software Foundation, Inc., 59\nTemple Place, Suite 330, Boston, MA 02111-1307 USA.\nIn addition, as a special exception, Red Hat, Inc. gives You the additional\nright to link the code of this Program with code not covered under the GNU\nGeneral Public License (\"Non-GPL Code\") and to distribute linked\ncombinations including the two, subject to the limitations in this\nparagraph. Non-GPL Code permitted under this exception must only link to\nthe code of this Program through those well defined interfaces identified\nin the file named EXCEPTION found in the source code files (the \"Approved\nInterfaces\"). The files of Non-GPL Code may instantiate templates or use\nmacros or inline functions from the Approved Interfaces without causing the\nresulting work to be covered by the GNU General Public License. Only Red\nHat, Inc. may make changes or additions to the list of Approved Interfaces.\nYou must obey the GNU General Public License in all respects for all of the\nProgram code and other code used in conjunction with the Program except the\nNon-GPL Code covered by this exception. If you modify this file, you may\nextend this exception to your version of the file, but you are not\nobligated to do so. If you do not wish to provide this exception without\nmodification, you must delete this exception statement from your version\nand license this file solely under the GPL without exception.\n"
19+
}

docs/389-exception.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ text_urls:
1111
other_urls:
1212
- http://directory.fedoraproject.org/wiki/GPL_Exception_License_Text
1313
- http://www.gnu.org/licenses/gpl-2.0.txt
14+
- https://web.archive.org/web/20080828121337/http://directory.fedoraproject.org/wiki/GPL_Exception_License_Text
1415
standard_notice: |
1516
This Program is free software; you can redistribute it and/or modify it
1617
under the terms of the GNU General Public License as published by the Free

docs/3com-microcode.LICENSE

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
---
2+
key: 3com-microcode
3+
short_name: 3Com Microcode
4+
name: 3Com Microcode
5+
category: Permissive
6+
owner: HP - Hewlett Packard
7+
notes: this is a Linux firmware BSD-like license with some weird extra terms
8+
spdx_license_key: LicenseRef-scancode-3com-microcode
9+
---
110

211
Redistribution and use in source and binary forms of the
312
microcode software are permitted provided that the following conditions
@@ -26,4 +35,4 @@ MICROCODE SOFTWARE WILL NOT CREATE OR GIVE GROUNDS FOR A LICENSE BY
2635
IMPLICATION, ESTOPPEL, OR OTHERWISE IN ANY INTELLECTUAL PROPERTY RIGHTS
2736
(PATENT, COPYRIGHT, TRADE SECRET, MASK WORK, OR OTHER PROPRIETARY RIGHT)
2837
EMBODIED IN ANY OTHER 3COM HARDWARE OR SOFTWARE EITHER SOLELY OR IN
29-
COMBINATION WITH THE MICROCODE SOFTWARE
38+
COMBINATION WITH THE MICROCODE SOFTWARE

0 commit comments

Comments
 (0)