-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.cfg
189 lines (160 loc) · 9.29 KB
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
[metadata]
name = oarepo-model-builder
version = 4.0.102
description = A utility library that generates OARepo required data model files from a JSON specification file
authors = Miroslav Bauer <[email protected]>, Miroslav Simek <[email protected]>
readme = README.md
long_description = file:README.md
long_description_content_type = text/markdown
[options]
python = >=3.12
install_requires =
ConfigUpdater>=3.1.1,<4.0.0
Faker>11.3.0
Jinja2>=3.0.3,<4.0.0
PyYAML>=6.0,<7.0
black>23
click>=7.1
deepdiff>=5.6.0,<6.0.0
isort>=5.10.1,<6.0.0
json5>=0.9.6,<0.10.0
jsonpointer>=2.2,<3.0
lazy-object-proxy>=1.7.1,<2.0.0
libcst>=0.3.19
tomlkit>=0.7.2
importlib_metadata>=4.0.0
marshmallow>=3.22.0
marshmallow-union
marshmallow-oneofschema
autoflake
frozendict
packages = find:
[options.packages.find]
exclude =
tests
[options.extras_require]
devs =
pytest>=7.1.2
black
isort
tests =
pytest>=7.1.2
[options.package_data]
* = *.json, *.rst, *.md, *.json5, *.jinja2
[options.entry_points]
console_scripts =
oarepo-compile-model = oarepo_model_builder.cli:run
oarepo-merge = oarepo_model_builder.merger:merger
# model schemas are generic, same for all profiles
oarepo_model_builder.validation =
builtin-validation = oarepo_model_builder.validation.registration:validators
oarepo.model_schemas =
date = oarepo_model_builder.validation.schemas:date.json5
opensearch = oarepo_model_builder.validation.schemas:opensearch.json5
es-strings = oarepo_model_builder.validation.schemas:es_strings.json5
facets = oarepo_model_builder.validation.schemas:facets.json5
faker = oarepo_model_builder.validation.schemas:faker.json5
mapping = oarepo_model_builder.validation.schemas:mapping.json5
marshmallow = oarepo_model_builder.validation.schemas:marshmallow.json5
jsonschema = oarepo_model_builder.validation.schemas:jsonschema.json5
modelschema = oarepo_model_builder.validation.schemas:model.json5
plugins = oarepo_model_builder.validation.schemas:plugins.json5
settings = oarepo_model_builder.validation.schemas:settings.json5
sort = oarepo_model_builder.validation.schemas:sort.json5
model-settings = oarepo_model_builder.validation.schemas:model_properties.json5
extend = oarepo_model_builder.validation.schemas:extend.json5
expandable-fields = oarepo_model_builder.validation.schemas:expandable_fields.json5
datatypes = oarepo_model_builder.validation.schemas:datatypes.json5
# loaders are generic
oarepo_model_builder.loaders =
json = oarepo_model_builder.loaders:json_loader
json5 = oarepo_model_builder.loaders:json_loader
yaml = oarepo_model_builder.loaders:yaml_loader
yml = oarepo_model_builder.loaders:yaml_loader
oarepo_model_builder.datatypes =
0100-default-datatypes = oarepo_model_builder.datatypes:DEFAULT_DATATYPES
oarepo_model_builder.datatypes.components =
0100-default-datatypes = oarepo_model_builder.datatypes.components:DEFAULT_COMPONENTS
# models are generic, same for all profiles
oarepo.models =
invenio = oarepo_model_builder.builtin_models:invenio.json
doi = oarepo_model_builder.builtin_models:doi.json
oaipmh = oarepo_model_builder.builtin_models:oaipmh.json
# outputs are generic, profile independent
oarepo_model_builder.outputs =
cfg = oarepo_model_builder.outputs.cfg:CFGOutput
diff = oarepo_model_builder.outputs.diff:DiffOutput
json = oarepo_model_builder.outputs.json:JSONOutput
jsonschema = oarepo_model_builder.outputs.jsonschema:JSONSchemaOutput
mapping = oarepo_model_builder.outputs.mapping:MappingOutput
python = oarepo_model_builder.outputs.python:PythonOutput
text = oarepo_model_builder.outputs.text:TextOutput
toml = oarepo_model_builder.outputs.toml:TOMLOutput
yaml = oarepo_model_builder.outputs.yaml:YAMLOutput
# templates are generic, not per profile
oarepo_model_builder.templates =
99-base_generic_templates = oarepo_model_builder.builders
99-base_invenio_templates = oarepo_model_builder.invenio
oarepo_model_builder.profiles =
record = oarepo_model_builder.profiles.record:RecordProfile
####
#### Model profile
####
oarepo_model_builder.builders.record.inherit =
0100-model = oarepo_model_builder.builders.base
oarepo_model_builder.builders.record =
0020-jsonschema = oarepo_model_builder.builders.jsonschema:JSONSchemaBuilder
0030-mapping = oarepo_model_builder.builders.mapping:MappingBuilder
0105-invenio_record_pid_provider = oarepo_model_builder.invenio.invenio_record_pid_provider:InvenioRecordPIDProviderBuilder
0200-invenio_record_permissions = oarepo_model_builder.invenio.invenio_record_permissions:InvenioRecordPermissionsBuilder
0300-invenio_record_search_facets = oarepo_model_builder.invenio.invenio_record_facets:InvenioRecordSearchFacetsBuilder
0305-invenio_record_search_options = oarepo_model_builder.invenio.invenio_record_search_options:InvenioRecordSearchOptionsBuilder
0340-invenio_record_dumper = oarepo_model_builder.invenio.invenio_record_dumper:InvenioRecordDumperBuilder
0350-edtf_interval-dumper = oarepo_model_builder.invenio.edtf_interval_dumper:EDTFIntervalDumperBuilder
0910-invenio_record_metadata_alembic_setup_cfg = oarepo_model_builder.invenio.invenio_record_metadata_alembic_setup_cfg:InvenioRecordMetadataAlembicSetupCfgBuilder
0940-invenio_record_search_setup_cfg = oarepo_model_builder.invenio.invenio_record_search_setup_cfg:InvenioRecordSearchSetupCfgBuilder
0950-invenio_record_jsonschemas_setup_cfg = oarepo_model_builder.invenio.invenio_record_jsonschemas_setup_cfg:InvenioRecordJSONSchemasSetupCfgBuilder
1030-invenio_script_sample_data = oarepo_model_builder.invenio.invenio_script_sample_data:SampleDataBuilder
1050-invenio_version = oarepo_model_builder.invenio.invenio_version:InvenioVersionBuilder
2000-model_saver = oarepo_model_builder.builders.model_saver:ModelSaverBuilder
2010-model_registration = oarepo_model_builder.builders.model_saver:ModelRegistrationBuilder
2020-invenio_record_item = oarepo_model_builder.invenio.invenio_record_item:InvenioRecordItemBuilder
2030-invenio_record_list = oarepo_model_builder.invenio.invenio_record_list:InvenioRecordListBuilder
oarepo_model_builder.builders.base =
0050-setup-cfg = oarepo_model_builder.builders.setup_cfg:SetupCfgBuilder
0060-setup-py = oarepo_model_builder.builders.setup_py:SetupPyBuilder
0070-pyproject-toml = oarepo_model_builder.builders.pyproject_toml:PyprojectTOMLBuilder
0100-python_structure = oarepo_model_builder.builders.python_structure:PythonStructureBuilder
0110-invenio_record = oarepo_model_builder.invenio.invenio_record:InvenioRecordBuilder
0120-invenio_record_metadata = oarepo_model_builder.invenio.invenio_record_metadata:InvenioRecordMetadataBuilder
0130-invenio_record_marshmallow = oarepo_model_builder.invenio.invenio_record_marshmallow:InvenioRecordMarshmallowBuilder
0140-invenio_record_ui_marshmallow = oarepo_model_builder.invenio.invenio_record_ui_marshmallow:InvenioRecordUIMarshmallowBuilder
0310-invenio_record_service_config = oarepo_model_builder.invenio.invenio_record_service_config:InvenioRecordServiceConfigBuilder
0320-invenio_record_service = oarepo_model_builder.invenio.invenio_record_service:InvenioRecordServiceBuilder
0400-invenio_record_resource_config = oarepo_model_builder.invenio.invenio_record_resource_config:InvenioRecordResourceConfigBuilder
0410-invenio_record_resource = oarepo_model_builder.invenio.invenio_record_resource:InvenioRecordResourceBuilder
0420-invenio_api_views = oarepo_model_builder.invenio.invenio_api_views:InvenioAPIViewsBuilder
0421-invenio_app_views = oarepo_model_builder.invenio.invenio_app_views:InvenioAPPViewsBuilder
0430-ui_serializer = oarepo_model_builder.invenio.invenio_record_ui_serializer:InvenioRecordUISerializerBuilder
0500-invenio_config = oarepo_model_builder.invenio.invenio_config:InvenioConfigBuilder
0600-invenio_ext = oarepo_model_builder.invenio.invenio_ext:InvenioExtBuilder
0605-invenio_ext_resource = oarepo_model_builder.invenio.invenio_ext_resource:InvenioExtResourceBuilder
0610-invenio_ext_setup_cfg = oarepo_model_builder.invenio.invenio_ext_setup_cfg:InvenioExtSetupCfgBuilder
0700-invenio_proxies = oarepo_model_builder.invenio.invenio_proxies:InvenioProxiesBuilder
0920-invenio_record_metadata_models_setup_cfg = oarepo_model_builder.invenio.invenio_record_metadata_models_setup_cfg:InvenioRecordMetadataModelsSetupCfgBuilder
0930-invenio_resource_setup_cfg = oarepo_model_builder.invenio.invenio_record_resource_setup_cfg:InvenioRecordResourceSetupCfgBuilder
####
#### Extended schema profile
####
oarepo_model_builder.loaders.extend =
0100-extract_record = oarepo_model_builder.loaders.extend:extract_extended_record
0200-add_record_to_included_data = oarepo_model_builder.loaders.extend:add_record_to_included_data
1000-modify-marshmallow = oarepo_model_builder.loaders.extend:extend_modify_marshmallow
oarepo_model_builder.loaders.post.extend =
1000-modify-marshmallow = oarepo_model_builder.loaders.extend:post_extend_modify_marshmallow
oarepo_model_builder.settings =
1000-python = oarepo_model_builder.settngs:python.json
2000-opensearch = oarepo_model_builder.settngs:opensearch.json
[tool:pytest]
testpaths =
tests