Skip to content

Commit

Permalink
global: import parsers from inspire-schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrc authored and drjova committed Aug 26, 2024
1 parent c1dd620 commit 2e1f29f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 17 deletions.
2 changes: 1 addition & 1 deletion backend/inspirehep/editor/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
from flask import Blueprint, current_app, make_response, request
from flask_login import current_user
from inspire_schemas.api import load_schema
from inspire_schemas.parsers.author_xml import AuthorXMLParser
from inspire_utils.dedupers import dedupe_list
from inspire_utils.parsers.author_xml import AuthorXMLParser
from invenio_db import db
from invenio_records.models import RecordMetadata
from invenio_records_rest.utils import set_headers_for_record_caching_and_concurrency
Expand Down
4 changes: 2 additions & 2 deletions backend/inspirehep/records/api/literature.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
from inspire_json_merger.api import merge
from inspire_schemas.api import validate
from inspire_schemas.builders import LiteratureBuilder
from inspire_schemas.parsers.arxiv import ArxivParser
from inspire_schemas.parsers.crossref import CrossrefParser
from inspire_schemas.utils import is_arxiv, normalize_arxiv
from inspire_utils.parsers.arxiv import ArxivParser
from inspire_utils.parsers.crossref import CrossrefParser
from inspire_utils.record import get_value
from invenio_db import db
from jsonschema import ValidationError
Expand Down
27 changes: 15 additions & 12 deletions backend/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Flask = ">=1.0.2"
msgpack = "==0.6.2"

python = ">=3.11,<3.12"
inspire-schemas = "^61.5.25"
inspire-utils = "^3.0.58"
inspire-schemas = "^61.5.32"
inspire-utils = "^3.0.61"
inspire-service-orcid = {git = "https://github.com/inspirehep/inspire-service-orcid.git", rev = "1a0e762e58bc9cac65f7665b9831993c017fd8bb"}
inspire-json-merger = "^11.0.37"

Expand Down Expand Up @@ -98,6 +98,7 @@ invenio-records-rest = {git = "https://github.com/inspirehep/invenio-records-res
Werkzeug = "2.1.0"
SQLAlchemy = "^1.3.13"
opensearch-py = "2.2.0"
parsel = "^1.9.1"

[tool.poetry.dev-dependencies]
coverage = {version = "^7.0.0", extras = ["toml"]}
Expand Down

0 comments on commit 2e1f29f

Please sign in to comment.