Skip to content

Commit 88c9010

Browse files
authored
Merge pull request #23 from nexB/improve-help-and-doc
Improve help and doc #22
2 parents 044bbae + b4ebc6b commit 88c9010

File tree

6 files changed

+475
-249
lines changed

6 files changed

+475
-249
lines changed

Makefile

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: CC-BY-4.0 AND Apache-2.0
22
#
33
# https://github.com/nexB/scancode-licensedb
4-
# Copyright 2020 nexB Inc. and others.
4+
# Copyright (c) nexB Inc. and others.
55
# ScanCode is a trademark of nexB Inc.
66
#
77
# ScanCode LicenseDB data is licensed under the Creative Commons Attribution
@@ -35,32 +35,33 @@ BLACK_ARGS=--exclude="docs" .
3535

3636
conf:
3737
@echo "-> Configure the Python venv and install dependencies"
38-
${PYTHON_EXE} -m venv .
39-
@${ACTIVATE} pip install scancode-toolkit
38+
${PYTHON_EXE} -m venv venv
39+
@venv/bin/pip install --upgrade pip
40+
@venv/bin/pip install scancode-toolkit
4041

4142
upgrade:
4243
@echo "-> Configure the Python venv and install dependencies"
43-
@${ACTIVATE} pip install --upgrade scancode-toolkit
44+
@venv/bin/pip install --upgrade scancode-toolkit
4445

4546
clean:
4647
# Remove the whole content of docs/ except for the CNAME file
4748
find docs/* ! -name 'CNAME' -exec git rm -r {} +
4849

4950
isort:
5051
@echo "-> Apply isort changes to ensure proper imports ordering"
51-
@${ACTIVATE} pip install isort==5.6.4
52-
bin/isort app.py
52+
@venv/bin/pip install isort==5.6.4
53+
@venv/bin/isort app.py
5354

5455
black:
5556
@echo "-> Apply black code formatter"
56-
@${ACTIVATE} pip install black==20.8b1 isort
57-
bin/black ${BLACK_ARGS}
57+
@venv/bin/pip install black==20.8b1 isort
58+
@venv/bin/black ${BLACK_ARGS}
5859

5960
valid: isort black
6061

6162
html:
6263
@echo "-> Generate the HTML content"
63-
@bin/python app.py
64+
@venv/bin/python app.py
6465
@echo "-> Copy the static assets"
6566
@cp -R static/ docs/static/
6667
@echo "Available at docs/index.html"

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
SPDX-License-Identifier: CC-BY-4.0 AND Apache-2.0
22

33
https://github.com/nexB/scancode-licensedb
4-
Copyright 2020 nexB Inc. and others.
4+
Copyright (c) nexB Inc. and others.
55
ScanCode is a trademark of nexB Inc.
66

77
ScanCode LicenseDB data is licensed under the Creative Commons Attribution

README.md

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

README.rst

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
ScanCode LicenseDB
2+
====================
3+
4+
LicenseDB is likely the largest collection of software licenses available on
5+
Earth and maybe beyond.
6+
7+
LicenseDB is a free and open database of mostly all the software licenses, in
8+
particular all the open-source software licenses, with over 2000 curated licenses
9+
texts and their metadata.
10+
11+
LicenseDB is built from the ScanCode Toolkit license dataset. ScanCode Toolkit
12+
is a leading open source code scanner and license detection engine.
13+
14+
LicenseDB is an essential reference license resource for license compliance and
15+
SBOMs. LicenseDB includes all the SPDX and OSI licenses together with an extended
16+
curated collection of other licenses and license metadata. These licenses are
17+
carefully reviewed and curated and continusouly updated by an open community of
18+
contributors.
19+
20+
LicenseDB is available as a web site, an JSON or YAML API and a git repository
21+
making it easy to reuse and integrate in tools that need a database of reference
22+
software licenses.
23+
24+
25+
Browse
26+
------
27+
28+
The web site is published at: https://scancode-licensedb.aboutcode.org/
29+
You can search the licenses by name, key and other attributes.
30+
31+
32+
API
33+
------
34+
35+
The index is available at either:
36+
37+
- as JSON: https://scancode-licensedb.aboutcode.org/index.json
38+
- as YAML: https://scancode-licensedb.aboutcode.org/index.yml
39+
40+
The index contains a list of the license keys with key metadata and links to the
41+
license details and texts using this license key as an identifier:
42+
43+
- as JSON: https://scancode-licensedb.aboutcode.org/<license key>.json
44+
for instance: https://scancode-licensedb.aboutcode.org/gpl-2.0.json
45+
46+
- as YAML: https://scancode-licensedb.aboutcode.org/<license key>.yml
47+
for instance: https://scancode-licensedb.aboutcode.org/gpl-2.0.yml
48+
49+
- as text for the full license text: https://scancode-licensedb.aboutcode.org/<license key>.LICENSE
50+
for instance: https://scancode-licensedb.aboutcode.org/gpl-2.0.LICENSE
51+
52+
53+
This index and the static website is also available offline with ScanCode Toolkit as a
54+
command line option `--get-license-data`.
55+
56+
57+
Git
58+
-----
59+
60+
This git repository contains the full history of the generated HTML and JSON API
61+
documents: https://github.com/nexB/scancode-licensedb
62+
63+
64+
This git repository contains the original and editable source files:
65+
https://github.com/nexB/scancode-toolkit
66+
67+
- for the text of a license and the metadata of a license as YAML frontmatter, for instance at
68+
https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/gpl-2.0.LICENSE
69+
70+
71+
Support
72+
--------
73+
74+
- Chat with us at: https://gitter.im/aboutcode-org/discuss
75+
- Report issues or ask questions at: https://github.com/nexB/scancode-toolkit/issues and
76+
https://github.com/nexB/scancode-licensedb/issues
77+
- Visit https://www.aboutcode.org/ for more open source and open data projects.
78+
79+
80+
Build
81+
-----
82+
83+
To re/generate the HTML and API content use this command::
84+
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
95+
96+
97+
License
98+
-------
99+
100+
SPDX-License-Identifier: CC-BY-4.0 AND Apache-2.0
101+
102+
https://github.com/nexB/scancode-licensedb
103+
Copyright (c) nexB Inc. and others.
104+
ScanCode is a trademark of nexB Inc.
105+
106+
ScanCode LicenseDB data is licensed under the Creative Commons Attribution
107+
License 4.0 (CC-BY-4.0).
108+
Some licenses, such as the GNU GENERAL PUBLIC LICENSE, are subject to other licenses.
109+
See the corresponding license text for the specific license conditions.
110+
111+
ScanCode LicenseDB software is licensed under the Apache License version 2.0.
112+
You may not use this software except in compliance with the License.
113+
You may obtain a copy of the License at: http://apache.org/licenses/LICENSE-2.0
114+
Unless required by applicable law or agreed to in writing, software distributed
115+
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
116+
CONDITIONS OF ANY KIND, either express or implied. See the License for the
117+
specific language governing permissions and limitations under the License.
118+
119+
ScanCode LicenseDB is generated with ScanCode Toolkit. The database and its contents
120+
are provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
121+
either express or implied.
122+
No content from ScanCode LicenseDB should be considered or used as legal advice.
123+
Consult an attorney for any legal advice.
124+
125+
Visit https://github.com/nexB/scancode-licensedb for support.
126+
127+
ScanCode Toolkit is a free Software Composition Analysis tool from nexB Inc. and
128+
others.
129+
Visit https://github.com/nexB/scancode-toolkit for support and download.

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: CC-BY-4.0 AND Apache-2.0
22
#
33
# https://github.com/nexB/scancode-licensedb
4-
# Copyright 2020 nexB Inc. and others.
4+
# Copyright (c) nexB Inc. and others.
55
# ScanCode is a trademark of nexB Inc.
66
#
77
# ScanCode LicenseDB data is licensed under the Creative Commons Attribution

0 commit comments

Comments
 (0)