Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
python-version: [3.14]
db-service: [postgresql14]
search-service: [opensearch2]

Expand Down
1 change: 1 addition & 0 deletions cds_ils/circulation/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# under the terms of the MIT License; see LICENSE file for more details.

"""Loan indexer APIs."""

from flask import current_app
from invenio_app_ils.proxies import current_app_ils
from invenio_pidstore.errors import PIDDeletedError
Expand Down
1 change: 1 addition & 0 deletions cds_ils/circulation/serializers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# under the terms of the MIT License; see LICENSE file for more details.

"""Loan serializers."""

from invenio_app_ils.circulation.serializers.csv import LoanCSVSerializer
from invenio_app_ils.records.schemas.json import ILSRecordSchemaJSONV1
from invenio_app_ils.records.serializers import record_responsify_no_etag
Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/XMLRecordLoader.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS RecordDumpLoader module."""

import importlib_metadata

from cds_ils.importer.errors import RecordNotDeletable, UnknownProvider
Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS Importer base module."""

from cds_ils.importer.overdo import CdsIlsOverdo


Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/documents/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS Importer module."""

from invenio_app_ils.proxies import current_app_ils
from invenio_search.engine import dsl

Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/documents/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS Importer documents module."""

import datetime
import uuid
from copy import deepcopy
Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS Importer exception handlers module."""

from invenio_app_ils.errors import (
IlsValidationError,
RecordHasReferencesError,
Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS Importer module."""

import time
from copy import deepcopy

Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/json/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-IlS JSON Importer views module."""

from flask import abort, current_app, request
from invenio_app_ils.permissions import need_permissions
from invenio_app_ils.proxies import current_app_ils
Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/loaders/jsonschemas/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""Importer loader."""

from flask import current_app
from marshmallow import Schema, fields, validate
from werkzeug.local import LocalProxy
Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/parse_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS Importer xml parser module."""

from flask import current_app
from lxml import etree

Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/providers/cds/cds.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS CDS Importer module."""

from copy import deepcopy

from cds_ils.importer.base_model import Base
Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/providers/cds/document_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS Document Importer module."""

from flask import current_app
from invenio_pidstore.models import PersistentIdentifier

Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/providers/cds/helpers/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS MARCXML rules utils."""

import functools

from dojson.errors import IgnoreKey
Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/providers/cds/ignore_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS CDS Importer ignored fields."""

CDS_IGNORE_FIELDS = {
"003",
"003___",
Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/providers/cds/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS CDS Importer."""

from flask import current_app
from invenio_app_ils.proxies import current_app_ils
from invenio_pidstore.errors import PersistentIdentifierError, PIDDoesNotExistError
Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/providers/cds/rules/journal.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS MARCXML Journal rules."""

import datetime

from dojson.errors import IgnoreKey
Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/providers/cds/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# under the terms of the MIT License; see LICENSE file for more details.

"""CDS Importer Records utils."""

from flask import current_app


Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/providers/ebl/ebl.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS EBL Importer."""

from copy import deepcopy

from cds_ils.importer.base_model import Base
Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/providers/gobi/gobi.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# CDS-ILS is free software; you can redistribute it and/or modify it under
# the terms of the MIT License; see LICENSE file for more details.
"""CDS-ILS GOBI model."""

from copy import deepcopy

from cds_ils.importer.base_model import Base
Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/providers/gobi/ignore_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# CDS-ILS is free software; you can redistribute it and/or modify it under
# the terms of the MIT License; see LICENSE file for more details.
"""CDS-ILS Gobi Importer ignore fields."""

GOBI_IGNORE_FIELDS = {
"005",
"006",
Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/providers/safari/safari.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS EBL Importer."""

from copy import deepcopy

from cds_ils.importer.base_model import Base
Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/providers/snv/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS CDS Importer."""

from cds_ils.importer.importer import Importer


Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/providers/springer/rules/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS Springer Importer rules."""

import re

from dojson.errors import IgnoreKey
Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/providers/springer/springer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS Springer model."""

from copy import deepcopy

from cds_ils.importer.base_model import Base
Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/serializers/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""Importer response serializers."""

import json

from flask import abort, current_app
Expand Down
1 change: 1 addition & 0 deletions cds_ils/importer/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS Importer tasks."""

import datetime

from celery import shared_task
Expand Down
1 change: 1 addition & 0 deletions cds_ils/ldap/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS ldap Client."""

import ldap
from flask import current_app

Expand Down
1 change: 1 addition & 0 deletions cds_ils/ldap/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS ldap exceptions."""

import sys


Expand Down
1 change: 0 additions & 1 deletion cds_ils/ldap/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

"""Ldap tasks."""


from celery import shared_task
from celery.utils.log import get_task_logger
from flask import current_app
Expand Down
1 change: 1 addition & 0 deletions cds_ils/ldap/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS ldap serializers."""

from functools import partial

from invenio_accounts.models import User
Expand Down
1 change: 1 addition & 0 deletions cds_ils/literature/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS literature API."""

from invenio_pidstore.resolver import Resolver


Expand Down
1 change: 1 addition & 0 deletions cds_ils/migrator/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# under the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS migrator."""

from datetime import date

MIGRATION_DOCUMENT_PID = "L1t3r-4tUr3"
Expand Down
1 change: 1 addition & 0 deletions cds_ils/migrator/default_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# under the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS migrator."""

import uuid

from invenio_app_ils.documents.api import DOCUMENT_PID_TYPE
Expand Down
1 change: 1 addition & 0 deletions cds_ils/migrator/items/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# under the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS migrator."""

import logging

from flask import current_app
Expand Down
1 change: 1 addition & 0 deletions cds_ils/migrator/relations/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# under the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS migrator API."""

import logging

import click
Expand Down
1 change: 1 addition & 0 deletions cds_ils/migrator/series/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS migrator module."""

from cds_dojson.overdo import OverdoBase

serial_marc21 = OverdoBase(entry_point_models="cds_ils.migrator.serial_model")
Expand Down
1 change: 1 addition & 0 deletions cds_ils/migrator/series/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# under the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS migrator API."""

import logging
from copy import deepcopy

Expand Down
1 change: 1 addition & 0 deletions cds_ils/migrator/series/xml_series_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# under the terms of the MIT License; see LICENSE file for more details.

"""CDS Migrator Records loader."""

import logging
import uuid

Expand Down
1 change: 1 addition & 0 deletions cds_ils/migrator/xml_to_json_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# under the terms of the MIT License; see LICENSE file for more details.

"""CDS Migrator Records MARCXML to JSON dump."""

import logging

import arrow
Expand Down
1 change: 1 addition & 0 deletions cds_ils/minters.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS minters."""

from invenio_pidstore.models import PersistentIdentifier, PIDStatus


Expand Down
1 change: 1 addition & 0 deletions cds_ils/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS oauth overrides."""

from flask import current_app, flash, g, redirect
from invenio_oauthclient.contrib.cern_openid import get_resource
from invenio_oauthclient.errors import OAuthCERNRejectedAccountError
Expand Down
1 change: 1 addition & 0 deletions cds_ils/series/serializers/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# under the terms of the MIT License; see LICENSE file for more details.

"""Series JSON serializers."""

from invenio_app_ils.literature.serializers.custom_fields import field_cover_metadata
from invenio_records_rest.serializers.json import JSONSerializer

Expand Down
1 change: 1 addition & 0 deletions cds_ils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""Utils for modules."""

from flask import current_app


Expand Down
8 changes: 3 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ platforms = any
url = https://github.com/CERNDocumentServer/cds-ils
classifiers =
Development Status :: 5 - Production/Stable
Programming Language :: Python :: 3.14

[options]
include_package_data = True
packages = find:
python_requires = >=3.6
python_requires = >=3.14
zip_safe = False
install_requires =
fuzzywuzzy>=0.18.0
python-ldap>=3.4.0,<3.5.0
invenio-app-ils[lorem,opensearch2]>=8.0.0,<9.0.0
invenio-app-ils[lorem,opensearch2]>=9.0.0,<10.0.0
sentry-sdk>=1.45,<2.0.0
# invenio-xrootd requires it
fs>=2.0.10,<3.0
Expand Down Expand Up @@ -127,9 +128,6 @@ invenio_pidstore.minters =
cds_ils.importer.import_json_transformers =
cds = cds_ils.importer.json.rdm.transform:RDMToILSTransform

[bdist_wheel]
universal = 1

[pydocstyle]
add_ignore = D401

Expand Down
1 change: 1 addition & 0 deletions tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# the terms of the MIT License; see LICENSE file for more details.

"""CDS-ILS Test helpers module."""

import json
import os
import uuid
Expand Down Expand Up @@ -57,5 +58,5 @@
)
record = cls.create(obj, record_uuid)
recs.append(record)
db.session.commit()

Check warning on line 61 in tests/helpers.py

View workflow job for this annotation

GitHub Actions / Python (3.14, postgresql14, opensearch2)

nested transaction already deassociated from connection
return recs
Loading
Loading