structurize 2.18.2__tar.gz → 2.19.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.
- {structurize-2.18.2/structurize.egg-info → structurize-2.19.0}/PKG-INFO +1 -1
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/_version.py +3 -3
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/avrotocsharp.py +21 -2
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/avrotojava.py +16 -6
- structurize-2.19.0/avrotize/cddltostructure.py +1841 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/commands.json +226 -0
- structurize-2.19.0/avrotize/constants.py +72 -0
- structurize-2.19.0/avrotize/dependencies/cpp/vcpkg/vcpkg.json +19 -0
- structurize-2.19.0/avrotize/dependencies/typescript/node22/package.json +16 -0
- structurize-2.19.0/avrotize/dependency_version.py +432 -0
- structurize-2.19.0/avrotize/structuretocddl.py +597 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/structuretocsharp.py +311 -21
- structurize-2.19.0/avrotize/structuretojava.py +853 -0
- {structurize-2.18.2 → structurize-2.19.0/structurize.egg-info}/PKG-INFO +1 -1
- {structurize-2.18.2 → structurize-2.19.0}/structurize.egg-info/SOURCES.txt +24 -0
- structurize-2.18.2/avrotize/constants.py +0 -5
- {structurize-2.18.2 → structurize-2.19.0}/.gitignore +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/LICENSE +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/MANIFEST.in +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/README.md +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/__init__.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/__main__.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/asn1toavro.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/avrotize.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/avrotocpp.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/avrotocsv.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/avrotodatapackage.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/avrotodb.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/avrotogo.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/avrotographql.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/avrotoiceberg.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/avrotojs.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/avrotojsons.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/avrotojstruct.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/avrotokusto.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/avrotomd.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/avrotools.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/avrotoparquet.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/avrotoproto.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/avrotopython.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/avrotorust.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/avrotots.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/avrotoxsd.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/common.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/csvtoavro.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/datapackagetoavro.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/dependency_resolver.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/jsonstoavro.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/jsonstostructure.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/jstructtoavro.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/kstructtoavro.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/kustotoavro.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/parquettoavro.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/proto2parser.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/proto3parser.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/prototoavro.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/structuretocpp.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/structuretocsv.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/structuretodatapackage.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/structuretodb.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/structuretogo.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/structuretographql.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/structuretoiceberg.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/structuretojsons.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/structuretokusto.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/structuretomd.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/structuretoproto.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/structuretopython.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/structuretorust.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/structuretots.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/structuretoxsd.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/avrotize/xsdtoavro.py +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/build.ps1 +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/build.sh +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/pyproject.toml +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/setup.cfg +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/structurize.egg-info/dependency_links.txt +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/structurize.egg-info/entry_points.txt +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/structurize.egg-info/requires.txt +0 -0
- {structurize-2.18.2 → structurize-2.19.0}/structurize.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: structurize
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.19.0
|
|
4
4
|
Summary: Tools to convert from and to JSON Structure from various other schema languages.
|
|
5
5
|
Author-email: Clemens Vasters <clemensv@microsoft.com>
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '2.
|
|
32
|
-
__version_tuple__ = version_tuple = (2,
|
|
31
|
+
__version__ = version = '2.19.0'
|
|
32
|
+
__version_tuple__ = version_tuple = (2, 19, 0)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'geec8f9840'
|
|
@@ -9,6 +9,15 @@ from typing import Any, Dict, List, Tuple, Union, cast
|
|
|
9
9
|
import uuid
|
|
10
10
|
|
|
11
11
|
from avrotize.common import build_flat_type_dict, inline_avro_references, is_generic_avro_type, pascal, process_template
|
|
12
|
+
from avrotize.constants import (
|
|
13
|
+
CSHARP_AVRO_VERSION,
|
|
14
|
+
NEWTONSOFT_JSON_VERSION,
|
|
15
|
+
SYSTEM_TEXT_JSON_VERSION,
|
|
16
|
+
SYSTEM_MEMORY_DATA_VERSION,
|
|
17
|
+
NUNIT_VERSION,
|
|
18
|
+
NUNIT_ADAPTER_VERSION,
|
|
19
|
+
MSTEST_SDK_VERSION,
|
|
20
|
+
)
|
|
12
21
|
import glob
|
|
13
22
|
|
|
14
23
|
JsonNode = Dict[str, 'JsonNode'] | List['JsonNode'] | str | None
|
|
@@ -957,7 +966,14 @@ class AvroToCSharp:
|
|
|
957
966
|
avro_annotation=self.avro_annotation,
|
|
958
967
|
system_xml_annotation=self.system_xml_annotation,
|
|
959
968
|
system_text_json_annotation=self.system_text_json_annotation,
|
|
960
|
-
newtonsoft_json_annotation=self.newtonsoft_json_annotation
|
|
969
|
+
newtonsoft_json_annotation=self.newtonsoft_json_annotation,
|
|
970
|
+
CSHARP_AVRO_VERSION=CSHARP_AVRO_VERSION,
|
|
971
|
+
NEWTONSOFT_JSON_VERSION=NEWTONSOFT_JSON_VERSION,
|
|
972
|
+
SYSTEM_TEXT_JSON_VERSION=SYSTEM_TEXT_JSON_VERSION,
|
|
973
|
+
SYSTEM_MEMORY_DATA_VERSION=SYSTEM_MEMORY_DATA_VERSION,
|
|
974
|
+
NUNIT_VERSION=NUNIT_VERSION,
|
|
975
|
+
NUNIT_ADAPTER_VERSION=NUNIT_ADAPTER_VERSION,
|
|
976
|
+
MSTEST_SDK_VERSION=MSTEST_SDK_VERSION))
|
|
961
977
|
if not glob.glob(os.path.join(output_dir, "test", "*.csproj")):
|
|
962
978
|
csproj_test_file = os.path.join(
|
|
963
979
|
output_dir, "test", f"{pascal(project_name)}.Test.csproj")
|
|
@@ -971,7 +987,10 @@ class AvroToCSharp:
|
|
|
971
987
|
avro_annotation=self.avro_annotation,
|
|
972
988
|
system_xml_annotation=self.system_xml_annotation,
|
|
973
989
|
system_text_json_annotation=self.system_text_json_annotation,
|
|
974
|
-
newtonsoft_json_annotation=self.newtonsoft_json_annotation
|
|
990
|
+
newtonsoft_json_annotation=self.newtonsoft_json_annotation,
|
|
991
|
+
NUNIT_VERSION=NUNIT_VERSION,
|
|
992
|
+
NUNIT_ADAPTER_VERSION=NUNIT_ADAPTER_VERSION,
|
|
993
|
+
MSTEST_SDK_VERSION=MSTEST_SDK_VERSION))
|
|
975
994
|
|
|
976
995
|
self.output_dir = output_dir
|
|
977
996
|
for avro_schema in (avs for avs in schema if isinstance(avs, dict)):
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
import json
|
|
5
5
|
import os
|
|
6
6
|
from typing import Dict, List, Tuple, Union
|
|
7
|
-
from avrotize.constants import AVRO_VERSION, JACKSON_VERSION, JDK_VERSION
|
|
7
|
+
from avrotize.constants import (AVRO_VERSION, JACKSON_VERSION, JDK_VERSION,
|
|
8
|
+
JUNIT_VERSION, MAVEN_COMPILER_VERSION, MAVEN_SUREFIRE_VERSION)
|
|
8
9
|
|
|
9
10
|
from avrotize.common import pascal, camel, is_generic_avro_type, inline_avro_references, build_flat_type_dict
|
|
10
11
|
|
|
@@ -46,13 +47,13 @@ POM_CONTENT = """<?xml version="1.0" encoding="UTF-8"?>
|
|
|
46
47
|
<dependency>
|
|
47
48
|
<groupId>org.junit.jupiter</groupId>
|
|
48
49
|
<artifactId>junit-jupiter-api</artifactId>
|
|
49
|
-
<version>
|
|
50
|
+
<version>{JUNIT_VERSION}</version>
|
|
50
51
|
<scope>test</scope>
|
|
51
52
|
</dependency>
|
|
52
53
|
<dependency>
|
|
53
54
|
<groupId>org.junit.jupiter</groupId>
|
|
54
55
|
<artifactId>junit-jupiter-engine</artifactId>
|
|
55
|
-
<version>
|
|
56
|
+
<version>{JUNIT_VERSION}</version>
|
|
56
57
|
<scope>test</scope>
|
|
57
58
|
</dependency>
|
|
58
59
|
</dependencies>
|
|
@@ -61,7 +62,7 @@ POM_CONTENT = """<?xml version="1.0" encoding="UTF-8"?>
|
|
|
61
62
|
<plugin>
|
|
62
63
|
<groupId>org.apache.maven.plugins</groupId>
|
|
63
64
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
64
|
-
<version>
|
|
65
|
+
<version>{MAVEN_COMPILER_VERSION}</version>
|
|
65
66
|
<configuration>
|
|
66
67
|
<compilerArgs>
|
|
67
68
|
<arg>-Xmaxerrs</arg>
|
|
@@ -72,7 +73,7 @@ POM_CONTENT = """<?xml version="1.0" encoding="UTF-8"?>
|
|
|
72
73
|
<plugin>
|
|
73
74
|
<groupId>org.apache.maven.plugins</groupId>
|
|
74
75
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
75
|
-
<version>
|
|
76
|
+
<version>{MAVEN_SUREFIRE_VERSION}</version>
|
|
76
77
|
<configuration>
|
|
77
78
|
<useSystemClassLoader>false</useSystemClassLoader>
|
|
78
79
|
</configuration>
|
|
@@ -2092,7 +2093,16 @@ class AvroToJava:
|
|
|
2092
2093
|
groupid = '.'.join(package_elements[:-1]) if len(package_elements) > 1 else package_elements[0]
|
|
2093
2094
|
artifactid = package_elements[-1]
|
|
2094
2095
|
with open(pom_path, 'w', encoding='utf-8') as file:
|
|
2095
|
-
file.write(POM_CONTENT.format(
|
|
2096
|
+
file.write(POM_CONTENT.format(
|
|
2097
|
+
groupid=groupid,
|
|
2098
|
+
artifactid=artifactid,
|
|
2099
|
+
AVRO_VERSION=AVRO_VERSION,
|
|
2100
|
+
JACKSON_VERSION=JACKSON_VERSION,
|
|
2101
|
+
JDK_VERSION=JDK_VERSION,
|
|
2102
|
+
JUNIT_VERSION=JUNIT_VERSION,
|
|
2103
|
+
MAVEN_COMPILER_VERSION=MAVEN_COMPILER_VERSION,
|
|
2104
|
+
MAVEN_SUREFIRE_VERSION=MAVEN_SUREFIRE_VERSION,
|
|
2105
|
+
PACKAGE=self.base_package))
|
|
2096
2106
|
output_dir = os.path.join(
|
|
2097
2107
|
output_dir, "src/main/java".replace('/', os.sep))
|
|
2098
2108
|
if not os.path.exists(output_dir):
|