feat(importer): added new importer provider - #1115
Closed
callumlewis05 wants to merge 2 commits into
Closed
Annotations
3 errors and 11 warnings
|
Run tests
Process completed with exit code 1.
|
|
Run tests:
cds_ils/importer/providers/gobi/rules/document.py#L0
isort-check
from cds_ils.importer.providers.cds.helpers.parsers import clean_val
from cds_ils.importer.providers.gobi.gobi import model
from cds_ils.importer.providers.utils import _get_correct_ils_contributor_role, rreplace
-
# REQUIRED FIELDS
|
|
Run tests:
cds_ils/importer/providers/gobi/rules/document.py#L0
Black format check
--- /home/runner/work/cds-ils/cds-ils/cds_ils/importer/providers/gobi/rules/document.py 2026-08-19 13:37:49.087946+00:00
+++ /home/runner/work/cds-ils/cds-ils/cds_ils/importer/providers/gobi/rules/document.py 2026-08-19 13:43:22.379270+00:00
@@ -21,10 +21,11 @@
from cds_ils.importer.providers.utils import _get_correct_ils_contributor_role, rreplace
# REQUIRED FIELDS
+
@model.over("alternative_identifiers", "^001")
@filter_list_values
def recid(self, key, value):
"""Record Identifier."""
self["provider_recid"] = value
@@ -88,10 +89,11 @@
"publisher": clean_val("b", value, str).rstrip(","),
}
# EITEM fields
+
@model.over("_eitem", "^85640")
@out_strip
def eitem(self, key, value):
"""Translate included eitems."""
@@ -107,10 +109,11 @@
_eitem.update({"urls": urls})
return _eitem
# OPTIONAL FIELDS
+
@model.over("identifiers", "^020__")
@filter_list_values
def identifiers(self, key, value):
"""Translate identifiers.
@@ -224,6 +227,6 @@
"value": isbn_value,
"material": "PRINT_VERSION",
}
if isbn not in _identifiers:
_identifiers.append(isbn)
- return _identifiers
\ No newline at end of file
+ return _identifiers
|
|
Complete job
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-python@v5. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/invenio_query_parser/walkers/match_unit.py#L27
Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/invenio_query_parser/walkers/match_unit.py#L27
Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/marshmallow/fields.py#L1302
The 'missing' argument to fields is deprecated. Use 'load_default' instead.
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/webargs/__init__.py#L13
distutils Version classes are deprecated. Use packaging.version instead.
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/webargs/compat.py#L8
distutils Version classes are deprecated. Use packaging.version instead.
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/webargs/compat.py#L8
The '__version__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'importlib.metadata.version("marshmallow")' instead.
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
|
background
wait
wait-all
cancel
parallel
Loading