@autorest/python 6.41.2 → 6.41.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.
@@ -1,5 +1,18 @@
1
1
  {% macro wrap_model_string(doc_string, wrap_string, suffix_string="") %}
2
- {% set original_result = doc_string | wordwrap(width=95, break_long_words=False, break_on_hyphens=False, wrapstring=wrap_string) %}
2
+ {%- set lines = doc_string.split('\n') -%}
3
+ {%- set processed_lines = [] -%}
4
+ {%- for line in lines -%}
5
+ {%- set stripped = line.strip() -%}
6
+ {%- if stripped.startswith('* ') -%}
7
+ {%- set bullet_with_indent = ' ' + stripped -%}
8
+ {%- set wrapped = bullet_with_indent | wordwrap(width=95, break_long_words=False, break_on_hyphens=False, wrapstring=wrap_string + ' ') -%}
9
+ {%- set _ = processed_lines.append(wrapped) -%}
10
+ {%- elif stripped -%}
11
+ {%- set wrapped = line | wordwrap(width=95, break_long_words=False, break_on_hyphens=False, wrapstring=wrap_string) -%}
12
+ {%- set _ = processed_lines.append(wrapped) -%}
13
+ {%- endif -%}
14
+ {%- endfor -%}
15
+ {%- set original_result = processed_lines | join('\n') -%}
3
16
  {% set list_result = original_result.split('\n') %}
4
17
  {% for line in list_result %}
5
18
  {% set prefix = "" if loop.index == 1 else " " %}
@@ -1,4 +1,18 @@
1
- {% macro wrap_string(string, wrapstring, width=95) %}{{ string | replace("\\", "\\\\") | wordwrap(width=width, break_long_words=False, break_on_hyphens=False, wrapstring=wrapstring)}}{% endmacro %}
1
+ {% macro wrap_string(string, wrapstring, width=95) %}
2
+ {%- set lines = string.split('\n') -%}
3
+ {%- set processed_lines = [] -%}
4
+ {%- for line in lines -%}
5
+ {%- set stripped = line.strip() -%}
6
+ {%- if stripped.startswith('* ') -%}
7
+ {%- set bullet_with_indent = stripped -%}
8
+ {%- set wrapped = bullet_with_indent | wordwrap(width=width, break_long_words=False, break_on_hyphens=False, wrapstring=wrapstring + ' ') -%}
9
+ {%- set _ = processed_lines.append(wrapped) -%}
10
+ {%- elif stripped -%}
11
+ {%- set wrapped = line | wordwrap(width=width, break_long_words=False, break_on_hyphens=False, wrapstring=wrapstring) -%}
12
+ {%- set _ = processed_lines.append(wrapped) -%}
13
+ {%- endif -%}
14
+ {%- endfor -%}
15
+ {{ processed_lines | join('\n') | replace("\\", "\\\\") }}{%- endmacro %}
2
16
 
3
17
  {% macro description(builder, serializer) %}
4
18
  {% set example_template = serializer.example_template(builder) %}
@@ -94,7 +94,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"}
94
94
  [tool.setuptools.packages.find]
95
95
  exclude = [
96
96
  "tests*",
97
+ "generated_tests*",
97
98
  "samples*",
99
+ "generated_samples*",
98
100
  "doc*",
99
101
  {% for pkgutil_name in pkgutil_names %}
100
102
  "{{ pkgutil_name }}",
@@ -1,5 +1,18 @@
1
1
  {% macro wrap_model_string(doc_string, wrap_string, suffix_string="") %}
2
- {% set original_result = doc_string | wordwrap(width=95, break_long_words=False, break_on_hyphens=False, wrapstring=wrap_string) %}
2
+ {%- set lines = doc_string.split('\n') -%}
3
+ {%- set processed_lines = [] -%}
4
+ {%- for line in lines -%}
5
+ {%- set stripped = line.strip() -%}
6
+ {%- if stripped.startswith('* ') -%}
7
+ {%- set bullet_with_indent = ' ' + stripped -%}
8
+ {%- set wrapped = bullet_with_indent | wordwrap(width=95, break_long_words=False, break_on_hyphens=False, wrapstring=wrap_string + ' ') -%}
9
+ {%- set _ = processed_lines.append(wrapped) -%}
10
+ {%- elif stripped -%}
11
+ {%- set wrapped = line | wordwrap(width=95, break_long_words=False, break_on_hyphens=False, wrapstring=wrap_string) -%}
12
+ {%- set _ = processed_lines.append(wrapped) -%}
13
+ {%- endif -%}
14
+ {%- endfor -%}
15
+ {%- set original_result = processed_lines | join('\n') -%}
3
16
  {% set list_result = original_result.split('\n') %}
4
17
  {% for line in list_result %}
5
18
  {% set prefix = "" if loop.index == 1 else " " %}
@@ -1,4 +1,18 @@
1
- {% macro wrap_string(string, wrapstring, width=95) %}{{ string | replace("\\", "\\\\") | wordwrap(width=width, break_long_words=False, break_on_hyphens=False, wrapstring=wrapstring)}}{% endmacro %}
1
+ {% macro wrap_string(string, wrapstring, width=95) %}
2
+ {%- set lines = string.split('\n') -%}
3
+ {%- set processed_lines = [] -%}
4
+ {%- for line in lines -%}
5
+ {%- set stripped = line.strip() -%}
6
+ {%- if stripped.startswith('* ') -%}
7
+ {%- set bullet_with_indent = stripped -%}
8
+ {%- set wrapped = bullet_with_indent | wordwrap(width=width, break_long_words=False, break_on_hyphens=False, wrapstring=wrapstring + ' ') -%}
9
+ {%- set _ = processed_lines.append(wrapped) -%}
10
+ {%- elif stripped -%}
11
+ {%- set wrapped = line | wordwrap(width=width, break_long_words=False, break_on_hyphens=False, wrapstring=wrapstring) -%}
12
+ {%- set _ = processed_lines.append(wrapped) -%}
13
+ {%- endif -%}
14
+ {%- endfor -%}
15
+ {{ processed_lines | join('\n') | replace("\\", "\\\\") }}{%- endmacro %}
2
16
 
3
17
  {% macro description(builder, serializer) %}
4
18
  {% set example_template = serializer.example_template(builder) %}
@@ -94,7 +94,9 @@ readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"}
94
94
  [tool.setuptools.packages.find]
95
95
  exclude = [
96
96
  "tests*",
97
+ "generated_tests*",
97
98
  "samples*",
99
+ "generated_samples*",
98
100
  "doc*",
99
101
  {% for pkgutil_name in pkgutil_names %}
100
102
  "{{ pkgutil_name }}",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autorest/python",
3
- "version": "6.41.2",
3
+ "version": "6.41.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.19.0",
22
+ "@typespec/http-client-python": "~0.19.1",
23
23
  "@autorest/system-requirements": "~1.0.2",
24
24
  "fs-extra": "~11.2.0",
25
25
  "tsx": "~4.19.1"