Skip to content

Update purldb-toolkit and related README files #249 #450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 3 additions & 35 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The purldb
==========
This repo consists of four main tools:
This repo consists of these main tools:

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

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

docker compose -f docker-compose.yml up -d
docker compose -f docker-compose.matchcodeio.yml up -d

Funding
-------

This project was funded through the NGI Assure Fund https://nlnet.nl/assure, a
fund established by NLnet https://nlnet.nl/ with financial support from the
European Commission's Next Generation Internet programme, under the aegis of DG
Communications Networks, Content and Technology under grant agreement No 957073.

This project is also funded through grants from the Google Summer of Code
program, continuing support and sponsoring from nexB Inc. and generous
donations from multiple sponsors.


License
-------

Copyright (c) nexB Inc. and others. All rights reserved.

purldb is a trademark of nexB Inc.

SPDX-License-Identifier: Apache-2.0 AND CC-BY-SA-4.0

purldb software is licensed under the Apache License version 2.0.

purldb data is licensed collectively under CC-BY-SA-4.0.

See https://www.apache.org/licenses/LICENSE-2.0 for the license text.

See https://creativecommons.org/licenses/by-sa/4.0/legalcode for the license text.

See https://github.com/nexB/purldb for support or download.

See https://aboutcode.org for more information about nexB OSS projects.
Empty file modified docs/scripts/sphinx_build_link_check.sh
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions docs/source/getting-started/contribute.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Contirbute
===========
Contribute
==========

Documentation to support code and documentation contributions
to purldb.
5 changes: 1 addition & 4 deletions docs/source/how-to-guides/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ How-To-Guides
=============

Here are the various how-to guides across various purldb projects to guide you
thourgh specifica use cases:

- Code matching with Matchcode
- Getting symbols from a package (or a PURL)
through specific use cases:

.. toctree::
:maxdepth: 2
Expand Down
10 changes: 10 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ How-To documents explain how to accomplish specific tasks.

----

Miscellaneous
-------------

.. toctree::
:maxdepth: 2

miscellaneous/index

----


Indices and tables
==================
Expand Down
11 changes: 11 additions & 0 deletions docs/source/miscellaneous/funding.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Funding
=======

This project was funded through the NGI Assure Fund https://nlnet.nl/assure, a
fund established by NLnet https://nlnet.nl/ with financial support from the
European Commission's Next Generation Internet programme, under the aegis of DG
Communications Networks, Content and Technology under grant agreement No 957073.

This project is also funded through grants from the Google Summer of Code
program, continuing support and sponsoring from nexB Inc. and generous
donations from multiple sponsors.
9 changes: 9 additions & 0 deletions docs/source/miscellaneous/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Miscellaneous
=============

.. toctree::
:maxdepth: 2

testing
funding
license
20 changes: 20 additions & 0 deletions docs/source/miscellaneous/license.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
License
=======

Copyright (c) nexB Inc. and others. All rights reserved.

purldb is a trademark of nexB Inc.

SPDX-License-Identifier: Apache-2.0 AND CC-BY-SA-4.0

purldb software is licensed under the Apache License version 2.0.

purldb data is licensed collectively under CC-BY-SA-4.0.

See https://www.apache.org/licenses/LICENSE-2.0 for the license text.

See https://creativecommons.org/licenses/by-sa/4.0/legalcode for the license text.

See https://github.com/nexB/purldb for support or download.

See https://aboutcode.org for more information about nexB OSS projects.
31 changes: 31 additions & 0 deletions docs/source/miscellaneous/testing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Testing
=======

PURLdb
------

Run all PURLdb tests
~~~~~~~~~~~~~~~~~~~~

.. code-block:: console

make test


purldb-toolkit
--------------

Run all purldb-toolkit non-live tests (i.e., no live network calls)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: console

DJANGO_SETTINGS_MODULE=purldb_project.settings pytest -vvs purldb-toolkit/tests/test_purlcli.py


Run all purldb-toolkit live tests (i.e., check actual API endpoints etc.)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: console

DJANGO_SETTINGS_MODULE=purldb_project.settings pytest -vvs purldb-toolkit/tests/test_purlcli_live.py --run_live_fetch
Loading
Loading