Skip to content

Commit

Permalink
ci: verify REUSE pipeline configuration
Browse files Browse the repository at this point in the history
docs: add license and copyright headers to files
docs: add REUSE badge to README
ci: integrate REUSE lint in CI/CD pipeline
  • Loading branch information
Hans-Chrstian committed Jun 20, 2024
1 parent a03c293 commit 5b81f18
Show file tree
Hide file tree
Showing 51 changed files with 414 additions and 248 deletions.
6 changes: 6 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# SPDX-FileCopyrightText: 2023 Civity
# SPDX-FileContributor: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only


[report]
omit =
*/site-packages/*
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

# SPDX-FileCopyrightText: 2024 Stichting Health-RI.
# SPDX-FileCopyrightText: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: AGPL-3.0-only

name: Publish and Deploy main

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only

name: Rus Tests

on: push
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# SPDX-FileCopyrightText: 2023 Civity
# SPDX-FileContributor: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only

.ropeproject
node_modules
bower_components
Expand Down
235 changes: 235 additions & 0 deletions LICENSES/AGPL-3.0-only.txt

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-FileCopyrightText: 2024 Stichting Health-RI
# SPDX-FileCopyrightText: 2023 Civity
#
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: AGPL-3.0-only

include README.rst
include LICENSE
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<!--
SPDX-FileCopyrightText: Stichting Health-RI
SPDX-FileCopyrightText: 2023 Civity
SPDX-FileContributor: 2024 Stichting Health-RI
SPDX-License-Identifier: CC-BY-4.0
SPDX-License-Identifier: AGPL-3.0-only
-->

[![Tests](https://github.com/CivityNL/ckanext-fairdatapoint/workflows/Tests/badge.svg?branch=main)](https://github.com/CivityNL/ckanext-fairdatapoint/actions)

[![REUSE status](https://api.reuse.software/badge/github.com/GenomicDataInfrastructure/gdi-userportal-ckanext-fairdatapoint)](https://api.reuse.software/info/github.com/GenomicDataInfrastructure/gdi-userportal-ckanext-fairdatapoint)
[![Tests](https://github.com/GenomicDataInfrastructure/gdi-userportal-ckanext-fairdatapoint/actions/workflows/test.yml/badge.svg)](https://github.com/GenomicDataInfrastructure/gdi-userportal-ckanext-fairdatapoint/actions/workflows/test.yml)

# ckanext-fairdatapoint

Expand Down
3 changes: 1 addition & 2 deletions ckanext/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# SPDX-FileCopyrightText: 2023 Civity
# SPDX-FileContributor: Stichting Health-RI
#
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: AGPL-3.0-only

# encoding: utf-8

Expand Down
14 changes: 0 additions & 14 deletions ckanext/fairdatapoint/assets/webassets.yml

This file was deleted.

46 changes: 0 additions & 46 deletions ckanext/fairdatapoint/dataset.json

This file was deleted.

5 changes: 5 additions & 0 deletions ckanext/fairdatapoint/fair_data_point_main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# SPDX-FileCopyrightText: 2023 Civity
# SPDX-FileContributor: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only

# coding: utf8

from ckanext.fairdatapoint.harvesters.domain.fair_data_point_record_provider import FairDataPointRecordProvider
Expand Down
5 changes: 5 additions & 0 deletions ckanext/fairdatapoint/harvesters/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# SPDX-FileCopyrightText: 2023 Civity
# SPDX-FileContributor: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only

from ckanext.fairdatapoint.harvesters.fair_data_point_civity_harvester import FairDataPointCivityHarvester
7 changes: 4 additions & 3 deletions ckanext/fairdatapoint/harvesters/civity_harvester.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# File original (C) Civity
# File modified by Stichting Health-RI in January 2024 to remove unused code
# All changes are © Stichting Health-RI and are licensed under the AGPLv3 license
# SPDX-FileCopyrightText: 2023 Civity
# SPDX-FileContributor: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only

import cgitb
import json
Expand Down
7 changes: 4 additions & 3 deletions ckanext/fairdatapoint/harvesters/domain/fair_data_point.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# File original (C) Civity
# File modified by Stichting Health-RI in January 2024 to remove a debugging graph-print function
# All changes are © Stichting Health-RI and are licensed under the AGPLv3 license
# SPDX-FileCopyrightText: 2023 Civity
# SPDX-FileContributor: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only

import logging
import requests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# File original (C) Civity
# File modified by Stichting Health-RI in January 2024 to remove custom exception and dependency on
# Civity-specific record provider
# All changes are © Stichting Health-RI and are licensed under the AGPLv3 license
# SPDX-FileCopyrightText: 2023 Civity
# SPDX-FileContributor: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only


import logging
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# File original (C) Civity
# File modified by Stichting Health-RI in January 2024 to remove custom exception and dependency on
# Civity-specific record provider
# All changes are © Stichting Health-RI and are licensed under the AGPLv3 license
# SPDX-FileCopyrightText: 2023 Civity
# SPDX-FileContributor: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only

import logging

Expand Down
5 changes: 5 additions & 0 deletions ckanext/fairdatapoint/harvesters/domain/identifier.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# SPDX-FileCopyrightText: 2023 Civity
# SPDX-FileContributor: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only

SEPARATOR = ';'
KEY_VALUE_SEPARATOR = '='

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# File original (C) Civity
# File modified by Stichting Health-RI to allow for a non-custom exception
# All changes are © Stichting Health-RI and are licensed under the AGPLv3 license
# SPDX-FileCopyrightText: 2023 Civity
# SPDX-FileContributor: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only


from ckanext.fairdatapoint.harvesters.civity_harvester import CivityHarvester
from ckanext.fairdatapoint.harvesters.domain.fair_data_point_record_provider import FairDataPointRecordProvider
from ckanext.fairdatapoint.harvesters.domain.fair_data_point_record_to_package_converter import \
Expand Down
21 changes: 0 additions & 21 deletions ckanext/fairdatapoint/mapping.json

This file was deleted.

6 changes: 6 additions & 0 deletions ckanext/fairdatapoint/plugin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# SPDX-FileCopyrightText: 2023 Civity
# SPDX-FileContributor: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only


import ckan.plugins as plugins
import ckan.plugins.toolkit as toolkit

Expand Down
5 changes: 3 additions & 2 deletions ckanext/fairdatapoint/processors.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SPDX-FileCopyrightText: 2024 Stichting Health-RI
# SPDX-FileCopyrightText: 2023 Civity
# SPDX-FileContributor: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: AGPL-3.0-only

from rdflib import RDF, DCAT
from rdflib.term import Node
Expand Down
6 changes: 3 additions & 3 deletions ckanext/fairdatapoint/profiles.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2024 Civity
# SPDX-FileContributor: Stichting Health-RI
# SPDX-FileCopyrightText: 2023 Civity
# SPDX-FileContributor: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: AGPL-3.0-only

from datetime import datetime, timezone
import re
Expand Down
31 changes: 0 additions & 31 deletions ckanext/fairdatapoint/template.json

This file was deleted.

3 changes: 3 additions & 0 deletions ckanext/fairdatapoint/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-FileCopyrightText: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only AND Apache-2.0
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only

@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only

@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix v: <http://www.w3.org/2006/vcard/ns#> .
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
Expand Down
5 changes: 5 additions & 0 deletions ckanext/fairdatapoint/tests/test_data/contact_point_url.ttl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# SPDX-FileCopyrightText: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only


@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
Expand Down
4 changes: 4 additions & 0 deletions ckanext/fairdatapoint/tests/test_data/contact_point_vcard.ttl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only

@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
Expand Down
4 changes: 4 additions & 0 deletions ckanext/fairdatapoint/tests/test_data/dataset_cbioportal.ttl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only

@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix ldp: <http://www.w3.org/ns/ldp#> .
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only

@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix ldp: <http://www.w3.org/ns/ldp#> .
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only

@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix ldp: <http://www.w3.org/ns/ldp#> .
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Stichting Health-RI
#
# SPDX-License-Identifier: AGPL-3.0-only

@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix ns1: <http://semanticscience.org/resource/> .
Expand Down
Loading

0 comments on commit 5b81f18

Please sign in to comment.