Add SPDX short license identifier to all Python files
continuous-integration/drone/push Build is passing Details

See: https://spdx.github.io/spdx-spec/appendix-V-using-SPDX-short-identifiers-in-source-files/
This commit is contained in:
Alan Orth 2021-03-22 13:42:42 +02:00
parent d814f1c4f0
commit 0650c5985e
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
10 changed files with 19 additions and 17 deletions

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-3.0-only
import json
import math

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-3.0-only
import os
# Check if Solr connection information was provided in the environment

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-3.0-only
import falcon
import psycopg2
import psycopg2.extras

View File

@ -1,23 +1,7 @@
# SPDX-License-Identifier: GPL-3.0-only
#
# indexer.py
#
# Copyright 2018 Alan Orth.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# ---
#
# Connects to a DSpace Solr statistics core and ingests views and downloads for
# communities, collections, and items into a PostgreSQL database.
#

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-3.0-only
import requests
from .config import SOLR_SERVER

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-3.0-only
import datetime
import json
import re

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-3.0-only
import json
from unittest.mock import patch

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-3.0-only
import json
from unittest.mock import patch

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-3.0-only
import pytest
from falcon import testing

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-3.0-only
import json
from unittest.mock import patch