Skip to content

Latest commit

 

History

History
69 lines (51 loc) · 2.57 KB

README.rst

File metadata and controls

69 lines (51 loc) · 2.57 KB

invenio-swh

Support for onward deposit of software artifacts to Software Heritage.

Development of this Invenio module is being funded through a subgrant from Software Heritage, as a result of a grant given by the Alfred P. Sloan Foundation to increase the coverage of the Software Heritage archive.

The development plan and scope is available as a Google Doc.

Further documentation will be available on https://invenio-swh.readthedocs.io/

Configuration

After installation, the following configuration must be set in the instance:

  • SWH_ENABLED: Enable or disable the integration.
  • SWH_SERVICE_DOCUMENT: The URL of the Software Heritage service document.
  • SWH_COLLECTION_IRI: The IRI of the collection to deposit into.
  • SWH_USERNAME: The username to use to authenticate with Software Heritage service.
  • SWH_PASSWORD: The password to use to authenticate with Software Heritage service.

Lastly, the following command must be run to create the necessary field in the record's search mapping:

PUT <record-index-name>/_mapping
{
    "properties": {
        "swh": {
            "type": "object",
            "properties": {
                "swhid": {
                    "type": "keyword"
                }
            }
        }
    }
}