Skip to content
Merged
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
5 changes: 3 additions & 2 deletions datacite/jsonutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# This file is part of DataCite.
#
# Copyright (C) 2016 CERN.
# Copyright (C) 2025 Graz University of Technology.
#
# DataCite is free software; you can redistribute it and/or modify it
# under the terms of the Revised BSD License; see LICENSE file for
Expand All @@ -12,7 +13,7 @@

import json

from jsonschema import RefResolver, validate
from jsonresolver.contrib.jsonschema import RefResolverBase
from jsonschema.validators import validator_for


Expand All @@ -25,5 +26,5 @@ def validator_factory(schema_filename):
validator_cls.check_schema(schema)

return validator_cls(
schema, resolver=RefResolver("file:{}".format(schema_filename), schema)
schema, resolver=RefResolverBase("file:{}".format(schema_filename), schema)
)
6 changes: 4 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# Copyright (C) 2015, 2016 CERN.
# Copyright (C) 2024, California Institute of Technology
# Copyright (C) 2026 Graz University of Technology.
#
# DataCite is free software; you can redistribute it and/or modify it
# under the terms of the Revised BSD License; see LICENSE file for
Expand Down Expand Up @@ -30,7 +31,8 @@ include_package_data = True
packages = find:
zip_safe = False
python_requires = >=3.9
install_requires =
install_requires =
jsonresolver>=0.5.0
jsonschema>=3.0.0
lxml>=4.5.2
requests>=2.12.2
Expand All @@ -42,7 +44,7 @@ tests =
responses>=0.10.6
mock>=1.3.0
pytest-invenio>=1.4.0
pytest-black-ng>=0.4.0
pytest-black>=0.6.0
datacite[docs]
docs = Sphinx>=4.5.0
all = datacite[tests]
Expand Down
Loading