@autorest/python 6.28.2 → 6.28.3
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.
- package/generator/build/lib/pygen/codegen/templates/macros.jinja2 +3 -2
- package/generator/build/lib/pygen/codegen/templates/model_dpg.py.jinja2 +2 -4
- package/generator/build/lib/pygen/codegen/templates/model_msrest.py.jinja2 +2 -6
- package/generator/component-detection-pip-report.json +6 -3
- package/generator/dev_requirements.txt +1 -11
- package/generator/dist/pygen-0.1.0-py3-none-any.whl +0 -0
- package/generator/pygen/codegen/templates/macros.jinja2 +3 -2
- package/generator/pygen/codegen/templates/model_dpg.py.jinja2 +2 -4
- package/generator/pygen/codegen/templates/model_msrest.py.jinja2 +2 -6
- package/package.json +2 -2
- package/scripts/__pycache__/venvtools.cpython-310.pyc +0 -0
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
{% set original_result = doc_string | wordwrap(width=95, break_long_words=False, break_on_hyphens=False, wrapstring=wrap_string) %}
|
|
3
3
|
{% set list_result = original_result.split('\n') %}
|
|
4
4
|
{% for line in list_result %}
|
|
5
|
+
{% set prefix = "" if loop.index == 1 else " " %}
|
|
5
6
|
{% set suffix = suffix_string if list_result | length == loop.index %}
|
|
6
7
|
{% if line | length > 120 %}
|
|
7
|
-
{{ line + " # pylint: disable=line-too-long" }}{{ suffix }}
|
|
8
|
+
{{ prefix }}{{ line + " # pylint: disable=line-too-long" }}{{ suffix }}
|
|
8
9
|
{% else %}
|
|
9
|
-
{{ line }}{{ suffix }}
|
|
10
|
+
{{ prefix }}{{ line }}{{ suffix }}
|
|
10
11
|
{% endif %}
|
|
11
12
|
{% endfor %}
|
|
12
13
|
{% endmacro %}
|
|
@@ -22,9 +22,7 @@
|
|
|
22
22
|
{% if model.properties != None %}
|
|
23
23
|
{% for p in model.properties %}
|
|
24
24
|
{% for line in serializer.variable_documentation_string(p) %}
|
|
25
|
-
|
|
26
|
-
{{ macros.wrap_model_string(doc_string, '\n ') -}}
|
|
27
|
-
{% endfor %}
|
|
25
|
+
{{ macros.wrap_model_string(line, '\n ') -}}
|
|
28
26
|
{% endfor %}
|
|
29
27
|
{% endfor %}
|
|
30
28
|
{% endif %}
|
|
@@ -37,7 +35,7 @@
|
|
|
37
35
|
{{ serializer.declare_property(p) }}
|
|
38
36
|
{% set prop_description = p.description(is_operation_file=False).replace('"', '\\"') %}
|
|
39
37
|
{% if prop_description %}
|
|
40
|
-
"""{{ macros.wrap_model_string(prop_description, '\n
|
|
38
|
+
"""{{ macros.wrap_model_string(prop_description, '\n ', '\"\"\"') -}}
|
|
41
39
|
{% endif %}
|
|
42
40
|
{% endfor %}
|
|
43
41
|
|
|
@@ -21,9 +21,7 @@
|
|
|
21
21
|
{% if model.properties != None %}
|
|
22
22
|
{% for p in model.properties %}
|
|
23
23
|
{% for line in serializer.variable_documentation_string(p) %}
|
|
24
|
-
|
|
25
|
-
{{ macros.wrap_model_string(doc_string, '\n ') -}}
|
|
26
|
-
{% endfor %}
|
|
24
|
+
{{ macros.wrap_model_string(line, '\n ') -}}
|
|
27
25
|
{% endfor %}
|
|
28
26
|
{% endfor %}
|
|
29
27
|
{% endif %}
|
|
@@ -75,9 +73,7 @@
|
|
|
75
73
|
{% for p in model.properties %}
|
|
76
74
|
{% if p.is_input %}
|
|
77
75
|
{% for line in serializer.input_documentation_string(p) %}
|
|
78
|
-
|
|
79
|
-
{{ macros.wrap_model_string(doc_string, '\n ') -}}
|
|
80
|
-
{% endfor %}
|
|
76
|
+
{{ macros.wrap_model_string(line, '\n ') -}}
|
|
81
77
|
{% endfor %}
|
|
82
78
|
{% endif %}
|
|
83
79
|
{% endfor %}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1",
|
|
3
|
-
"pip_version": "
|
|
3
|
+
"pip_version": "25.0",
|
|
4
4
|
"install": [
|
|
5
5
|
{
|
|
6
6
|
"download_info": {
|
|
@@ -30,6 +30,9 @@
|
|
|
30
30
|
"management"
|
|
31
31
|
],
|
|
32
32
|
"author_email": "Python Packaging Authority <distutils-sig@python.org>",
|
|
33
|
+
"license_file": [
|
|
34
|
+
"LICENSE"
|
|
35
|
+
],
|
|
33
36
|
"classifier": [
|
|
34
37
|
"Development Status :: 5 - Production/Stable",
|
|
35
38
|
"Intended Audience :: Developers",
|
|
@@ -123,9 +126,9 @@
|
|
|
123
126
|
"implementation_version": "3.8.10",
|
|
124
127
|
"os_name": "posix",
|
|
125
128
|
"platform_machine": "x86_64",
|
|
126
|
-
"platform_release": "5.15.0-
|
|
129
|
+
"platform_release": "5.15.0-1079-azure",
|
|
127
130
|
"platform_system": "Linux",
|
|
128
|
-
"platform_version": "#
|
|
131
|
+
"platform_version": "#88~20.04.1-Ubuntu SMP Fri Jan 17 18:28:29 UTC 2025",
|
|
129
132
|
"python_full_version": "3.8.10",
|
|
130
133
|
"platform_python_implementation": "CPython",
|
|
131
134
|
"python_version": "3.8",
|
|
Binary file
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
{% set original_result = doc_string | wordwrap(width=95, break_long_words=False, break_on_hyphens=False, wrapstring=wrap_string) %}
|
|
3
3
|
{% set list_result = original_result.split('\n') %}
|
|
4
4
|
{% for line in list_result %}
|
|
5
|
+
{% set prefix = "" if loop.index == 1 else " " %}
|
|
5
6
|
{% set suffix = suffix_string if list_result | length == loop.index %}
|
|
6
7
|
{% if line | length > 120 %}
|
|
7
|
-
{{ line + " # pylint: disable=line-too-long" }}{{ suffix }}
|
|
8
|
+
{{ prefix }}{{ line + " # pylint: disable=line-too-long" }}{{ suffix }}
|
|
8
9
|
{% else %}
|
|
9
|
-
{{ line }}{{ suffix }}
|
|
10
|
+
{{ prefix }}{{ line }}{{ suffix }}
|
|
10
11
|
{% endif %}
|
|
11
12
|
{% endfor %}
|
|
12
13
|
{% endmacro %}
|
|
@@ -22,9 +22,7 @@
|
|
|
22
22
|
{% if model.properties != None %}
|
|
23
23
|
{% for p in model.properties %}
|
|
24
24
|
{% for line in serializer.variable_documentation_string(p) %}
|
|
25
|
-
|
|
26
|
-
{{ macros.wrap_model_string(doc_string, '\n ') -}}
|
|
27
|
-
{% endfor %}
|
|
25
|
+
{{ macros.wrap_model_string(line, '\n ') -}}
|
|
28
26
|
{% endfor %}
|
|
29
27
|
{% endfor %}
|
|
30
28
|
{% endif %}
|
|
@@ -37,7 +35,7 @@
|
|
|
37
35
|
{{ serializer.declare_property(p) }}
|
|
38
36
|
{% set prop_description = p.description(is_operation_file=False).replace('"', '\\"') %}
|
|
39
37
|
{% if prop_description %}
|
|
40
|
-
"""{{ macros.wrap_model_string(prop_description, '\n
|
|
38
|
+
"""{{ macros.wrap_model_string(prop_description, '\n ', '\"\"\"') -}}
|
|
41
39
|
{% endif %}
|
|
42
40
|
{% endfor %}
|
|
43
41
|
|
|
@@ -21,9 +21,7 @@
|
|
|
21
21
|
{% if model.properties != None %}
|
|
22
22
|
{% for p in model.properties %}
|
|
23
23
|
{% for line in serializer.variable_documentation_string(p) %}
|
|
24
|
-
|
|
25
|
-
{{ macros.wrap_model_string(doc_string, '\n ') -}}
|
|
26
|
-
{% endfor %}
|
|
24
|
+
{{ macros.wrap_model_string(line, '\n ') -}}
|
|
27
25
|
{% endfor %}
|
|
28
26
|
{% endfor %}
|
|
29
27
|
{% endif %}
|
|
@@ -75,9 +73,7 @@
|
|
|
75
73
|
{% for p in model.properties %}
|
|
76
74
|
{% if p.is_input %}
|
|
77
75
|
{% for line in serializer.input_documentation_string(p) %}
|
|
78
|
-
|
|
79
|
-
{{ macros.wrap_model_string(doc_string, '\n ') -}}
|
|
80
|
-
{% endfor %}
|
|
76
|
+
{{ macros.wrap_model_string(line, '\n ') -}}
|
|
81
77
|
{% endfor %}
|
|
82
78
|
{% endif %}
|
|
83
79
|
{% endfor %}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autorest/python",
|
|
3
|
-
"version": "6.28.
|
|
3
|
+
"version": "6.28.3",
|
|
4
4
|
"description": "The Python extension for generators in AutoRest.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"homepage": "https://github.com/Azure/autorest.python/blob/main/README.md",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@typespec/http-client-python": "~0.6.
|
|
22
|
+
"@typespec/http-client-python": "~0.6.10",
|
|
23
23
|
"@autorest/system-requirements": "~1.0.2",
|
|
24
24
|
"fs-extra": "~11.2.0",
|
|
25
25
|
"tsx": "~4.19.1"
|
|
Binary file
|