local-web-services-python-sdk 0.1.2__tar.gz → 0.1.3__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.
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/PKG-INFO +1 -1
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/pyproject.toml +1 -1
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/src/lws_testing/_discovery/hcl.py +19 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/.github/workflows/ci.yml +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/.github/workflows/publish.yml +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/.gitignore +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/Makefile +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/README.md +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/src/lws_testing/__init__.py +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/src/lws_testing/_builders/__init__.py +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/src/lws_testing/_builders/chaos.py +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/src/lws_testing/_builders/iam.py +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/src/lws_testing/_builders/mock.py +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/src/lws_testing/_discovery/__init__.py +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/src/lws_testing/_discovery/cdk.py +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/src/lws_testing/_logs.py +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/src/lws_testing/_resources/__init__.py +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/src/lws_testing/_resources/dynamodb.py +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/src/lws_testing/_resources/s3.py +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/src/lws_testing/_resources/sqs.py +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/src/lws_testing/_transport/__init__.py +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/src/lws_testing/_transport/inprocess.py +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/src/lws_testing/fixtures.py +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/src/lws_testing/session.py +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/tests/__init__.py +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/tests/unit/__init__.py +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/tests/unit/test_session_imports.py +0 -0
- {local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/tests/unit/test_session_lifecycle.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: local-web-services-python-sdk
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: Python testing SDK for local-web-services — in-process pytest fixtures and boto3 helpers
|
|
5
5
|
Project-URL: Homepage, https://local-web-services.github.io/www
|
|
6
6
|
Project-URL: Repository, https://github.com/local-web-services/local-web-services-sdk-python
|
|
@@ -14,6 +14,8 @@ _RESOURCE_HEADER = re.compile(
|
|
|
14
14
|
_ATTR_STR = re.compile(r'^\s*(?P<key>\w+)\s*=\s*"(?P<value>[^"]*)"')
|
|
15
15
|
# Matches a simple key = value (unquoted booleans / numbers)
|
|
16
16
|
_ATTR_BARE = re.compile(r"^\s*(?P<key>\w+)\s*=\s*(?P<value>\S+)")
|
|
17
|
+
# Matches a heredoc opener: key = <<MARKER
|
|
18
|
+
_ATTR_HEREDOC = re.compile(r"^\s*(?P<key>\w+)\s*=\s*<<(?P<marker>\w+)\s*$")
|
|
17
19
|
|
|
18
20
|
# Maps Terraform resource types to (collection_key, builder_function)
|
|
19
21
|
_DISPATCH: dict[str, tuple[str, Any]] = {
|
|
@@ -110,6 +112,23 @@ def _collect_block(lines: list[str], start: int) -> tuple[dict[str, str], int]:
|
|
|
110
112
|
i = start
|
|
111
113
|
while i < len(lines) and depth > 0:
|
|
112
114
|
line = lines[i]
|
|
115
|
+
|
|
116
|
+
# Handle heredoc (key = <<MARKER ... MARKER) before adjusting depth,
|
|
117
|
+
# so the JSON content inside the heredoc does not affect brace counting.
|
|
118
|
+
if depth == 1:
|
|
119
|
+
m_heredoc = _ATTR_HEREDOC.match(line)
|
|
120
|
+
if m_heredoc:
|
|
121
|
+
key = m_heredoc.group("key")
|
|
122
|
+
marker = m_heredoc.group("marker")
|
|
123
|
+
i += 1
|
|
124
|
+
heredoc_lines: list[str] = []
|
|
125
|
+
while i < len(lines) and lines[i].rstrip() != marker:
|
|
126
|
+
heredoc_lines.append(lines[i])
|
|
127
|
+
i += 1
|
|
128
|
+
attrs[key] = "\n".join(heredoc_lines)
|
|
129
|
+
i += 1 # skip the closing marker line
|
|
130
|
+
continue
|
|
131
|
+
|
|
113
132
|
depth += line.count("{") - line.count("}")
|
|
114
133
|
if depth > 1:
|
|
115
134
|
i += 1
|
{local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/.github/workflows/ci.yml
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/src/lws_testing/_logs.py
RENAMED
|
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
|
{local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/tests/__init__.py
RENAMED
|
File without changes
|
{local_web_services_python_sdk-0.1.2 → local_web_services_python_sdk-0.1.3}/tests/unit/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|