Skip to content

Commit cdd164b

Browse files
committed
Improve README and help documentation
* Add overview section in README and in doc * Use rst for README * Remove copyright years from notices * Use venv subdirectory for virtualenv Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 838f364 commit cdd164b

File tree

6 files changed

+471
-249
lines changed

6 files changed

+471
-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: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
ScanCode LicenseDB
2+
====================
3+
4+
LicenseDB is likely the largest collection of software licenses available on
5+
earth and may be 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+
Git
54+
-----
55+
56+
This git repository contains the full history of the generated HTML and JSON API
57+
documents: https://github.com/nexB/scancode-licensedb
58+
59+
60+
This git repository contains the original and editable source files:
61+
https://github.com/nexB/scancode-toolkit
62+
63+
- for the metadata of a license, for instance at https://github.com/nexB/scancode-toolkit/edit/develop/src/licensedcode/data/licenses/gpl-2.0.yml
64+
65+
- for the text of a license, for instance at https://github.com/nexB/scancode-toolkit/edit/develop/src/licensedcode/data/licenses/gpl-2.0.LICENSE
66+
67+
68+
Support
69+
--------
70+
71+
- Chat with us at: https://gitter.im/aboutcode-org/discuss
72+
- Report issues or ask questions at: https://github.com/nexB/scancode-toolkit/issues and
73+
https://github.com/nexB/scancode-licensedb/issues
74+
- Visit https://www.aboutcode.org/ for more open source and open data projects.
75+
76+
77+
Build
78+
-----
79+
80+
To re/generate the HTML and API content use this command::
81+
82+
$ make build
83+
84+
85+
Upgrade
86+
-------
87+
88+
To upgrade to the latest scancode-toolkit and generate the HTML and API content
89+
run this command::
90+
91+
$ make clean upgrade build publish
92+
93+
94+
License
95+
-------
96+
97+
SPDX-License-Identifier: CC-BY-4.0 AND Apache-2.0
98+
99+
https://github.com/nexB/scancode-licensedb
100+
Copyright (c) nexB Inc. and others.
101+
ScanCode is a trademark of nexB Inc.
102+
103+
ScanCode LicenseDB data is licensed under the Creative Commons Attribution
104+
License 4.0 (CC-BY-4.0).
105+
Some licenses, such as the GNU GENERAL PUBLIC LICENSE, are subject to other licenses.
106+
See the corresponding license text for the specific license conditions.
107+
108+
ScanCode LicenseDB software is licensed under the Apache License version 2.0.
109+
You may not use this software except in compliance with the License.
110+
You may obtain a copy of the License at: http://apache.org/licenses/LICENSE-2.0
111+
Unless required by applicable law or agreed to in writing, software distributed
112+
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
113+
CONDITIONS OF ANY KIND, either express or implied. See the License for the
114+
specific language governing permissions and limitations under the License.
115+
116+
ScanCode LicenseDB is generated with ScanCode Toolkit. The database and its contents
117+
are provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
118+
either express or implied.
119+
No content from ScanCode LicenseDB should be considered or used as legal advice.
120+
Consult an attorney for any legal advice.
121+
122+
Visit https://github.com/nexB/scancode-licensedb for support.
123+
124+
ScanCode Toolkit is a free Software Composition Analysis tool from nexB Inc. and
125+
others.
126+
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)