Gen3SchemaDev 2.3.5__tar.gz → 2.4.0__tar.gz
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.
- {gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/PKG-INFO +5 -2
- {gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/pyproject.toml +2 -2
- {gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/converter.py +9 -8
- {gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/LICENSE +0 -0
- {gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/README.md +0 -0
- {gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/__init__.py +0 -0
- {gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/cli.py +0 -0
- {gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/ddvis.py +0 -0
- {gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/schema/__init__.py +0 -0
- {gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/schema/gen3_template.py +0 -0
- {gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/schema/input_schema.py +0 -0
- {gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/schema/schema_templates/_definitions.yaml +0 -0
- {gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/schema/schema_templates/_settings.yaml +0 -0
- {gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/schema/schema_templates/_terms.yaml +0 -0
- {gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/schema/schema_templates/core_metadata_collection.yaml +0 -0
- {gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/schema/schema_templates/gen3_metaschema.yml +0 -0
- {gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/schema/schema_templates/program.yaml +0 -0
- {gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/schema/schema_templates/project.yaml +0 -0
- {gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/utils.py +0 -0
- {gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/validators/input_validator.py +0 -0
- {gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/validators/metaschema_validator.py +0 -0
- {gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/validators/rule_validator.py +0 -0
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Gen3SchemaDev
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.4.0
|
|
4
4
|
Summary: Tool for data modelling in Gen3
|
|
5
5
|
License: Apache 2.0
|
|
6
6
|
License-File: LICENSE
|
|
7
7
|
Author: JoshuaHarris391
|
|
8
8
|
Author-email: harjo391@gmail.com
|
|
9
|
-
Requires-Python: >=3.
|
|
9
|
+
Requires-Python: >=3.9.5,<4.0
|
|
10
10
|
Classifier: License :: Other/Proprietary License
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
15
|
Classifier: Programming Language :: Python :: 3.13
|
|
13
16
|
Classifier: Programming Language :: Python :: 3.14
|
|
14
17
|
Requires-Dist: check-jsonschema (>=0.34.1,<0.35.0)
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "Gen3SchemaDev"
|
|
3
|
-
version = "2.
|
|
3
|
+
version = "2.4.0"
|
|
4
4
|
description = "Tool for data modelling in Gen3"
|
|
5
5
|
authors = [
|
|
6
6
|
{name = "JoshuaHarris391",email = "harjo391@gmail.com"}
|
|
7
7
|
]
|
|
8
8
|
license = {text = "Apache 2.0"}
|
|
9
9
|
readme = "README.md"
|
|
10
|
-
requires-python = ">=3.
|
|
10
|
+
requires-python = ">=3.9.5,<4.0"
|
|
11
11
|
dependencies = [
|
|
12
12
|
"setuptools>=70.0",
|
|
13
13
|
"gen3-validator (>=2.0.0,<3.0.0)",
|
|
@@ -11,6 +11,8 @@ Expected Data Structure:
|
|
|
11
11
|
- links: List of link objects with attributes: child, parent, multiplicity
|
|
12
12
|
"""
|
|
13
13
|
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
|
|
14
16
|
from dataclasses import dataclass, asdict
|
|
15
17
|
from typing import Protocol, runtime_checkable, Dict, Any, List
|
|
16
18
|
import logging
|
|
@@ -632,21 +634,20 @@ def construct_props(node_name: str, data: DataSourceProtocol) -> dict:
|
|
|
632
634
|
|
|
633
635
|
# if it's an Enum, add the enum values
|
|
634
636
|
if category == "data_file":
|
|
635
|
-
props_dict['core_metadata_collections'] = {"$ref": "_definitions.yaml#/to_one"}
|
|
636
637
|
props_dict['$ref'] = "_definitions.yaml#/data_file_properties"
|
|
637
|
-
|
|
638
|
-
props_dict
|
|
638
|
+
props_dict.setdefault('core_metadata_collections', {"$ref": "_definitions.yaml#/to_one"})
|
|
639
|
+
props_dict.setdefault('data_category', {
|
|
639
640
|
"description": "Broad categorization of the contents of the data file.",
|
|
640
641
|
"enum": ['data_category_1', 'data_category_2', 'data_category_3']
|
|
641
|
-
}
|
|
642
|
-
props_dict
|
|
642
|
+
})
|
|
643
|
+
props_dict.setdefault('data_format', {
|
|
643
644
|
"description": "The format of the data in this data file",
|
|
644
645
|
"enum": ['data_format_1', 'data_format_2', 'data_format_3']
|
|
645
|
-
}
|
|
646
|
-
props_dict
|
|
646
|
+
})
|
|
647
|
+
props_dict.setdefault('data_type', {
|
|
647
648
|
"description": "The type of data in this data file",
|
|
648
649
|
"enum": ['data_type_1', 'data_type_2', 'data_type_3']
|
|
649
|
-
}
|
|
650
|
+
})
|
|
650
651
|
|
|
651
652
|
return props_dict
|
|
652
653
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/schema/schema_templates/_settings.yaml
RENAMED
|
File without changes
|
{gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/schema/schema_templates/_terms.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/schema/schema_templates/program.yaml
RENAMED
|
File without changes
|
{gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/schema/schema_templates/project.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gen3schemadev-2.3.5 → gen3schemadev-2.4.0}/src/gen3schemadev/validators/metaschema_validator.py
RENAMED
|
File without changes
|
|
File without changes
|