Skip to content

Commit 1a1037b

Browse files
Merge pull request #450 from nexB/249-update-purldb-docs
Update purldb-toolkit and related README files #249
2 parents 46604e4 + e19f5cc commit 1a1037b

File tree

10 files changed

+563
-109
lines changed

10 files changed

+563
-109
lines changed

README.rst

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The purldb
22
==========
3-
This repo consists of four main tools:
3+
This repo consists of these main tools:
44

55
- PackageDB that is the reference model (based on ScanCode toolkit)
66
that contains package data with purl (Package URLs) being a first
@@ -10,6 +10,8 @@ This repo consists of four main tools:
1010
matching
1111
- MatchCode.io that provides package matching functionalities for codebases
1212
- ClearCode that contains utilities to mine Clearlydefined for package data
13+
- purldb-toolkit CLI utility and library to use the PurlDB, its API and various
14+
related libraries.
1315

1416
These are designed to be used first for reference such that one can query for
1517
packages by purl and validate purl existence.
@@ -191,37 +193,3 @@ To run PurlDB and Matchcode.io with Docker:
191193

192194
docker compose -f docker-compose.yml up -d
193195
docker compose -f docker-compose.matchcodeio.yml up -d
194-
195-
Funding
196-
-------
197-
198-
This project was funded through the NGI Assure Fund https://nlnet.nl/assure, a
199-
fund established by NLnet https://nlnet.nl/ with financial support from the
200-
European Commission's Next Generation Internet programme, under the aegis of DG
201-
Communications Networks, Content and Technology under grant agreement No 957073.
202-
203-
This project is also funded through grants from the Google Summer of Code
204-
program, continuing support and sponsoring from nexB Inc. and generous
205-
donations from multiple sponsors.
206-
207-
208-
License
209-
-------
210-
211-
Copyright (c) nexB Inc. and others. All rights reserved.
212-
213-
purldb is a trademark of nexB Inc.
214-
215-
SPDX-License-Identifier: Apache-2.0 AND CC-BY-SA-4.0
216-
217-
purldb software is licensed under the Apache License version 2.0.
218-
219-
purldb data is licensed collectively under CC-BY-SA-4.0.
220-
221-
See https://www.apache.org/licenses/LICENSE-2.0 for the license text.
222-
223-
See https://creativecommons.org/licenses/by-sa/4.0/legalcode for the license text.
224-
225-
See https://github.com/nexB/purldb for support or download.
226-
227-
See https://aboutcode.org for more information about nexB OSS projects.

docs/scripts/sphinx_build_link_check.sh

100644100755
File mode changed.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Contirbute
2-
===========
1+
Contribute
2+
==========
33

44
Documentation to support code and documentation contributions
55
to purldb.

docs/source/how-to-guides/index.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ How-To-Guides
22
=============
33

44
Here are the various how-to guides across various purldb projects to guide you
5-
thourgh specifica use cases:
6-
7-
- Code matching with Matchcode
8-
- Getting symbols from a package (or a PURL)
5+
through specific use cases:
96

107
.. toctree::
118
:maxdepth: 2

docs/source/index.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,16 @@ How-To documents explain how to accomplish specific tasks.
6565

6666
----
6767

68+
Miscellaneous
69+
-------------
70+
71+
.. toctree::
72+
:maxdepth: 2
73+
74+
miscellaneous/index
75+
76+
----
77+
6878

6979
Indices and tables
7080
==================

docs/source/miscellaneous/funding.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Funding
2+
=======
3+
4+
This project was funded through the NGI Assure Fund https://nlnet.nl/assure, a
5+
fund established by NLnet https://nlnet.nl/ with financial support from the
6+
European Commission's Next Generation Internet programme, under the aegis of DG
7+
Communications Networks, Content and Technology under grant agreement No 957073.
8+
9+
This project is also funded through grants from the Google Summer of Code
10+
program, continuing support and sponsoring from nexB Inc. and generous
11+
donations from multiple sponsors.

docs/source/miscellaneous/index.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Miscellaneous
2+
=============
3+
4+
.. toctree::
5+
:maxdepth: 2
6+
7+
testing
8+
funding
9+
license

docs/source/miscellaneous/license.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
License
2+
=======
3+
4+
Copyright (c) nexB Inc. and others. All rights reserved.
5+
6+
purldb is a trademark of nexB Inc.
7+
8+
SPDX-License-Identifier: Apache-2.0 AND CC-BY-SA-4.0
9+
10+
purldb software is licensed under the Apache License version 2.0.
11+
12+
purldb data is licensed collectively under CC-BY-SA-4.0.
13+
14+
See https://www.apache.org/licenses/LICENSE-2.0 for the license text.
15+
16+
See https://creativecommons.org/licenses/by-sa/4.0/legalcode for the license text.
17+
18+
See https://github.com/nexB/purldb for support or download.
19+
20+
See https://aboutcode.org for more information about nexB OSS projects.

docs/source/miscellaneous/testing.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Testing
2+
=======
3+
4+
PURLdb
5+
------
6+
7+
Run all PURLdb tests
8+
~~~~~~~~~~~~~~~~~~~~
9+
10+
.. code-block:: console
11+
12+
make test
13+
14+
15+
purldb-toolkit
16+
--------------
17+
18+
Run all purldb-toolkit non-live tests (i.e., no live network calls)
19+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20+
21+
.. code-block:: console
22+
23+
DJANGO_SETTINGS_MODULE=purldb_project.settings pytest -vvs purldb-toolkit/tests/test_purlcli.py
24+
25+
26+
Run all purldb-toolkit live tests (i.e., check actual API endpoints etc.)
27+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28+
29+
.. code-block:: console
30+
31+
DJANGO_SETTINGS_MODULE=purldb_project.settings pytest -vvs purldb-toolkit/tests/test_purlcli_live.py --run_live_fetch

0 commit comments

Comments
 (0)