oarepo-runtime 1.5.45__py3-none-any.whl → 1.5.47__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,9 +28,9 @@ def configuration_command(output_file):
28
28
  if output_file == "-":
29
29
  print(
30
30
  json.dumps(
31
- configuration, indent=4, ensure_ascii=False, default=lambda x: str(x)
31
+ configuration, skipkeys=True, indent=4, ensure_ascii=False, default=lambda x: str(x)
32
32
  )
33
33
  )
34
34
  else:
35
35
  with open(output_file, "w") as f:
36
- json.dump(configuration, f, ensure_ascii=False, default=lambda x: str(x))
36
+ json.dump(configuration, f, skipkeys=True, ensure_ascii=False, default=lambda x: str(x))
@@ -15,7 +15,8 @@ def get_record_service_for_record(record):
15
15
  if not record:
16
16
  return None
17
17
  if "OAREPO_PRIMARY_RECORD_SERVICE" in current_app.config:
18
- return current_app.config["OAREPO_PRIMARY_RECORD_SERVICE"][type(record)]
18
+ service_id = current_app.config["OAREPO_PRIMARY_RECORD_SERVICE"][type(record)]
19
+ return current_service_registry.get(service_id)
19
20
  else:
20
21
  return get_record_service_for_record_deprecated(record)
21
22
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: oarepo-runtime
3
- Version: 1.5.45
3
+ Version: 1.5.47
4
4
  Summary: A set of runtime extensions of Invenio repository
5
5
  Description-Content-Type: text/markdown
6
6
  License-File: LICENSE
@@ -12,14 +12,14 @@ Requires-Dist: flask-babelex
12
12
  Requires-Dist: deepmerge
13
13
  Requires-Dist: tqdm
14
14
  Provides-Extra: dev
15
- Requires-Dist: pytest >=7.1.2 ; extra == 'dev'
16
- Requires-Dist: black ; extra == 'dev'
17
- Requires-Dist: isort ; extra == 'dev'
18
- Requires-Dist: autoflake ; extra == 'dev'
19
- Requires-Dist: oarepo-tools ; extra == 'dev'
15
+ Requires-Dist: pytest>=7.1.2; extra == "dev"
16
+ Requires-Dist: black; extra == "dev"
17
+ Requires-Dist: isort; extra == "dev"
18
+ Requires-Dist: autoflake; extra == "dev"
19
+ Requires-Dist: oarepo-tools; extra == "dev"
20
20
  Provides-Extra: tests
21
- Requires-Dist: pytest >=7.1.2 ; extra == 'tests'
22
- Requires-Dist: psutil ; extra == 'tests'
21
+ Requires-Dist: pytest>=7.1.2; extra == "tests"
22
+ Requires-Dist: psutil; extra == "tests"
23
23
 
24
24
  # OARepo runtime
25
25
 
@@ -9,7 +9,7 @@ oarepo_runtime/cli/assets.py,sha256=C9CEwCBGeSF6ztM-T37t0XQ3KoTF0nKlhB6vTRxDt2A,
9
9
  oarepo_runtime/cli/base.py,sha256=94RBTa8TOSPxEyEUmYLGXaWen-XktP2-MIbTtZSlCZo,544
10
10
  oarepo_runtime/cli/cf.py,sha256=W0JEJK2JqKubQw8qtZJxohmADDRUBode4JZAqYLDGvc,339
11
11
  oarepo_runtime/cli/check.py,sha256=AvC5VHAnwmtCd8R-Caj8v6nCAREKjObTdNtLJ24aJO8,4935
12
- oarepo_runtime/cli/configuration.py,sha256=cLXoGDtjuA5uv9ZfYFcH0C4wcadj0qWC3P_E4Bf5-z0,1061
12
+ oarepo_runtime/cli/configuration.py,sha256=_iMmESs2dd1Oif95gxgpnkSxc13ymwr82_sTJfxlhrM,1091
13
13
  oarepo_runtime/cli/fixtures.py,sha256=l6zHpz1adjotrbFy_wcN2TOL8x20i-1jbQmaoEEo-UU,5419
14
14
  oarepo_runtime/cli/index.py,sha256=2dZvXtrph527YIgFTCQ8dIVsza-bZou9HBBzYRWAPTY,8243
15
15
  oarepo_runtime/cli/validate.py,sha256=HpSvHQCGHlrdgdpKix9cIlzlBoJEiT1vACZdMnOUGEY,2827
@@ -25,7 +25,7 @@ oarepo_runtime/datastreams/semi_asynchronous.py,sha256=TJWby2MDKXm5feRocoWB-8Ohs
25
25
  oarepo_runtime/datastreams/synchronous.py,sha256=t5lfnMkLqy3jK5zMl-nIuA0HlMPiHGjwCqZ8XQP-3GM,2595
26
26
  oarepo_runtime/datastreams/transformers.py,sha256=q5KzHPl2kJg7HP1BtKJ7F_UMqg_7L1ZGDX0O7s8D6UI,521
27
27
  oarepo_runtime/datastreams/types.py,sha256=KZjblc3T_UFFW7LrMDmiR8lqVf86V484LAHj6yg05EI,9908
28
- oarepo_runtime/datastreams/utils.py,sha256=PAUVyL6AuD20PtESJcUEXsUeeSnxxKUB9LzxqwAgx9U,3939
28
+ oarepo_runtime/datastreams/utils.py,sha256=GYpVdwMks0GRdz8DBpErdiV_2aJ-3V1uAkOHyz67bZw,4001
29
29
  oarepo_runtime/datastreams/readers/__init__.py,sha256=P1n3llZQ3AFHnSPbeT1VaCJcEtRFz9AbHfjkZv5LG7s,1103
30
30
  oarepo_runtime/datastreams/readers/attachments.py,sha256=A7EC1TqyTHG-go5DIaRotlBSOm6o9hGqAKyVVAceCRU,1956
31
31
  oarepo_runtime/datastreams/readers/excel.py,sha256=CM8lr8mejN7NgoK5TJb1oXpjq0HxklQKMsuj3uqjTjA,3653
@@ -119,9 +119,9 @@ oarepo_runtime/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
119
119
  oarepo_runtime/utils/functools.py,sha256=gKS9YZtlIYcDvdNA9cmYO00yjiXBYV1jg8VpcRUyQyg,1324
120
120
  oarepo_runtime/utils/path.py,sha256=V1NVyk3m12_YLbj7QHYvUpE1wScO78bYsX1LOLeXDkI,3108
121
121
  tests/pkg_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
122
- oarepo_runtime-1.5.45.dist-info/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
123
- oarepo_runtime-1.5.45.dist-info/METADATA,sha256=LcrZLZkyMPiAuNU09nYspzdIG5i1yJXPjE5aYWY-Ki4,4680
124
- oarepo_runtime-1.5.45.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
125
- oarepo_runtime-1.5.45.dist-info/entry_points.txt,sha256=QrlXAKuPDVBinaSh_v3yO9_Nb9ZNmJCJ0VFcCW-z0Jg,327
126
- oarepo_runtime-1.5.45.dist-info/top_level.txt,sha256=bHhlkT1_RQC4IkfTQCqA3iN4KCB6cSFQlsXpQMSP-bE,21
127
- oarepo_runtime-1.5.45.dist-info/RECORD,,
122
+ oarepo_runtime-1.5.47.dist-info/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
123
+ oarepo_runtime-1.5.47.dist-info/METADATA,sha256=YOgDdzTSJSavqQO-wM5t6K5syfnFZfLnf4jgbDjTEdE,4671
124
+ oarepo_runtime-1.5.47.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
125
+ oarepo_runtime-1.5.47.dist-info/entry_points.txt,sha256=QrlXAKuPDVBinaSh_v3yO9_Nb9ZNmJCJ0VFcCW-z0Jg,327
126
+ oarepo_runtime-1.5.47.dist-info/top_level.txt,sha256=bHhlkT1_RQC4IkfTQCqA3iN4KCB6cSFQlsXpQMSP-bE,21
127
+ oarepo_runtime-1.5.47.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (71.1.0)
2
+ Generator: setuptools (72.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5