localstack-core 4.7.1.dev40__py3-none-any.whl → 4.7.1.dev41__py3-none-any.whl

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.

Potentially problematic release.


This version of localstack-core might be problematic. Click here for more details.

Files changed (86) hide show
  1. localstack/aws/handlers/service.py +2 -2
  2. localstack/aws/mocking.py +1 -1
  3. localstack/aws/protocol/serializer.py +1 -1
  4. localstack/config.py +1 -1
  5. localstack/dev/run/__main__.py +1 -1
  6. localstack/services/cloudformation/engine/entities.py +1 -1
  7. localstack/services/cloudformation/engine/parameters.py +1 -1
  8. localstack/services/cloudformation/engine/v2/change_set_model.py +16 -16
  9. localstack/services/cloudformation/engine/v2/change_set_model_describer.py +1 -1
  10. localstack/services/cloudformation/engine/v2/change_set_model_executor.py +3 -3
  11. localstack/services/cloudformation/engine/v2/change_set_model_preproc.py +16 -16
  12. localstack/services/cloudformation/engine/v2/change_set_model_transform.py +3 -3
  13. localstack/services/cloudformation/engine/v2/change_set_model_validator.py +1 -1
  14. localstack/services/cloudformation/scaffolding/__main__.py +5 -5
  15. localstack/services/cloudformation/stores.py +1 -1
  16. localstack/services/cloudformation/v2/provider.py +3 -3
  17. localstack/services/lambda_/api_utils.py +1 -1
  18. localstack/services/lambda_/invocation/docker_runtime_executor.py +1 -1
  19. localstack/services/lambda_/provider.py +1 -1
  20. localstack/services/secretsmanager/provider.py +1 -1
  21. localstack/services/sqs/provider.py +1 -1
  22. localstack/services/stepfunctions/asl/component/common/assign/assign_decl.py +1 -1
  23. localstack/services/stepfunctions/asl/component/common/assign/assign_decl_binding.py +1 -1
  24. localstack/services/stepfunctions/asl/component/common/assign/assign_template_value_array.py +1 -1
  25. localstack/services/stepfunctions/asl/component/common/assign/assign_template_value_object.py +1 -1
  26. localstack/services/stepfunctions/asl/component/common/error_name/states_error_name_type.py +1 -1
  27. localstack/services/stepfunctions/asl/component/common/jsonata/jsonata_template_value_array.py +1 -1
  28. localstack/services/stepfunctions/asl/component/common/jsonata/jsonata_template_value_object.py +1 -1
  29. localstack/services/stepfunctions/asl/component/common/path/input_path.py +1 -1
  30. localstack/services/stepfunctions/asl/component/common/path/output_path.py +1 -1
  31. localstack/services/stepfunctions/asl/component/common/payload/payloadvalue/payloadarr/payload_arr.py +1 -1
  32. localstack/services/stepfunctions/asl/component/common/payload/payloadvalue/payloadtmpl/payload_tmpl.py +1 -1
  33. localstack/services/stepfunctions/asl/component/common/string/string_expression.py +1 -1
  34. localstack/services/stepfunctions/asl/component/intrinsic/argument/argument.py +1 -1
  35. localstack/services/stepfunctions/asl/component/intrinsic/function/statesfunction/array/array_partition.py +1 -1
  36. localstack/services/stepfunctions/asl/component/intrinsic/function/statesfunction/generic/string_format.py +1 -1
  37. localstack/services/stepfunctions/asl/component/intrinsic/function/statesfunction/states_function_array.py +1 -1
  38. localstack/services/stepfunctions/asl/component/intrinsic/function/statesfunction/states_function_format.py +1 -1
  39. localstack/services/stepfunctions/asl/component/intrinsic/jsonata.py +1 -1
  40. localstack/services/stepfunctions/asl/component/program/program.py +1 -1
  41. localstack/services/stepfunctions/asl/component/program/states.py +1 -1
  42. localstack/services/stepfunctions/asl/component/state/state_execution/execute_state.py +1 -1
  43. localstack/services/stepfunctions/asl/component/state/state_execution/state_map/item_reader/item_reader_decl.py +1 -1
  44. localstack/services/stepfunctions/asl/component/state/state_execution/state_map/item_reader/resource_eval/resource_output_transformer/resource_output_transformer_csv.py +2 -2
  45. localstack/services/stepfunctions/asl/component/state/state_execution/state_parallel/branches_decl.py +3 -3
  46. localstack/services/stepfunctions/asl/component/state/state_execution/state_task/lambda_eval_utils.py +1 -1
  47. localstack/services/stepfunctions/asl/component/state/state_execution/state_task/service/state_task_service_api_gateway.py +3 -3
  48. localstack/services/stepfunctions/asl/component/state/state_execution/state_task/service/state_task_service_aws_sdk.py +1 -1
  49. localstack/services/stepfunctions/asl/component/state/state_execution/state_task/service/state_task_service_batch.py +2 -2
  50. localstack/services/stepfunctions/asl/component/state/state_execution/state_task/state_task.py +1 -1
  51. localstack/services/stepfunctions/asl/eval/environment.py +6 -6
  52. localstack/services/stepfunctions/asl/eval/event/event_manager.py +1 -1
  53. localstack/services/stepfunctions/asl/eval/states.py +1 -1
  54. localstack/services/stepfunctions/asl/eval/variable_store.py +3 -3
  55. localstack/services/stepfunctions/asl/jsonata/jsonata.py +1 -1
  56. localstack/services/stepfunctions/asl/parse/asl_parser.py +1 -1
  57. localstack/services/stepfunctions/asl/parse/intrinsic/preprocessor.py +1 -1
  58. localstack/services/stepfunctions/asl/parse/preprocessor.py +14 -14
  59. localstack/services/stepfunctions/asl/static_analyser/intrinsic/variable_names_intrinsic_static_analyser.py +1 -1
  60. localstack/services/stepfunctions/asl/static_analyser/variable_references_static_analyser.py +2 -2
  61. localstack/services/stepfunctions/backend/alias.py +2 -2
  62. localstack/services/stepfunctions/backend/execution.py +2 -2
  63. localstack/services/stepfunctions/backend/state_machine.py +2 -2
  64. localstack/services/stepfunctions/mocking/mock_config.py +4 -4
  65. localstack/services/stepfunctions/provider.py +7 -7
  66. localstack/testing/pytest/cloudformation/fixtures.py +4 -4
  67. localstack/testing/pytest/fixtures.py +2 -2
  68. localstack/testing/pytest/marking.py +1 -1
  69. localstack/testing/pytest/stepfunctions/fixtures.py +4 -4
  70. localstack/testing/pytest/stepfunctions/utils.py +6 -6
  71. localstack/utils/analytics/metrics/counter.py +3 -3
  72. localstack/utils/analytics/metrics/registry.py +1 -1
  73. localstack/utils/scheduler.py +2 -2
  74. localstack/utils/testutil.py +1 -1
  75. localstack/version.py +2 -2
  76. {localstack_core-4.7.1.dev40.dist-info → localstack_core-4.7.1.dev41.dist-info}/METADATA +1 -1
  77. {localstack_core-4.7.1.dev40.dist-info → localstack_core-4.7.1.dev41.dist-info}/RECORD +85 -85
  78. localstack_core-4.7.1.dev41.dist-info/plux.json +1 -0
  79. localstack_core-4.7.1.dev40.dist-info/plux.json +0 -1
  80. {localstack_core-4.7.1.dev40.data → localstack_core-4.7.1.dev41.data}/scripts/localstack +0 -0
  81. {localstack_core-4.7.1.dev40.data → localstack_core-4.7.1.dev41.data}/scripts/localstack-supervisor +0 -0
  82. {localstack_core-4.7.1.dev40.data → localstack_core-4.7.1.dev41.data}/scripts/localstack.bat +0 -0
  83. {localstack_core-4.7.1.dev40.dist-info → localstack_core-4.7.1.dev41.dist-info}/WHEEL +0 -0
  84. {localstack_core-4.7.1.dev40.dist-info → localstack_core-4.7.1.dev41.dist-info}/entry_points.txt +0 -0
  85. {localstack_core-4.7.1.dev40.dist-info → localstack_core-4.7.1.dev41.dist-info}/licenses/LICENSE.txt +0 -0
  86. {localstack_core-4.7.1.dev40.dist-info → localstack_core-4.7.1.dev41.dist-info}/top_level.txt +0 -0
@@ -271,7 +271,7 @@ def create_state_machine_iam_role(cleanups, create_state_machine):
271
271
 
272
272
  @pytest.fixture
273
273
  def create_state_machine():
274
- created_state_machine_references = list()
274
+ created_state_machine_references = []
275
275
 
276
276
  def _create_state_machine(target_aws_client, **kwargs):
277
277
  sfn_client = target_aws_client.stepfunctions
@@ -299,7 +299,7 @@ def create_state_machine():
299
299
 
300
300
  @pytest.fixture
301
301
  def create_state_machine_alias():
302
- state_machine_alias_arn_and_client = list()
302
+ state_machine_alias_arn_and_client = []
303
303
 
304
304
  def _create_state_machine_alias(target_aws_client, **kwargs):
305
305
  step_functions_client = target_aws_client.stepfunctions
@@ -324,7 +324,7 @@ def create_state_machine_alias():
324
324
 
325
325
  @pytest.fixture
326
326
  def create_activity(aws_client):
327
- activities_arns: Final[list[str]] = list()
327
+ activities_arns: Final[list[str]] = []
328
328
 
329
329
  def _create_activity(**kwargs):
330
330
  create_output = aws_client.stepfunctions.create_activity(**kwargs)
@@ -778,7 +778,7 @@ def sfn_create_log_group(aws_client, snapshot):
778
778
 
779
779
  @pytest.fixture
780
780
  def create_cross_account_admin_role_and_policy(create_state_machine, create_state_machine_iam_role):
781
- created = list()
781
+ created = []
782
782
 
783
783
  def _create_role_and_policy(trusting_aws_client, trusted_aws_client, trusted_account_id) -> str:
784
784
  trusting_iam_client = trusting_aws_client.iam
@@ -189,7 +189,7 @@ def await_state_machine_version_listed(
189
189
  def await_on_execution_events(
190
190
  stepfunctions_client, execution_arn: str, check_func: Callable[[HistoryEventList], bool]
191
191
  ) -> HistoryEventList:
192
- events: HistoryEventList = list()
192
+ events: HistoryEventList = []
193
193
 
194
194
  def _run_check():
195
195
  nonlocal events
@@ -376,7 +376,7 @@ def await_on_execution_logs(
376
376
  log_stream_name = _await_on_execution_log_stream_created(target_aws_client, log_group_name)
377
377
 
378
378
  logs_client = target_aws_client.logs
379
- events: HistoryEventList = list()
379
+ events: HistoryEventList = []
380
380
 
381
381
  def _run_check():
382
382
  nonlocal events
@@ -889,7 +889,7 @@ def create_and_record_events(
889
889
  stepfunctions_client=target_aws_client.stepfunctions, execution_arn=execution_arn
890
890
  )
891
891
 
892
- stepfunctions_events = list()
892
+ stepfunctions_events = []
893
893
 
894
894
  def _get_events():
895
895
  received = target_aws_client.sqs.receive_message(QueueUrl=queue_url)
@@ -905,7 +905,7 @@ def create_and_record_events(
905
905
 
906
906
 
907
907
  def record_sqs_events(target_aws_client, queue_url, sfn_snapshot, num_events):
908
- stepfunctions_events = list()
908
+ stepfunctions_events = []
909
909
 
910
910
  def _get_events():
911
911
  received = target_aws_client.sqs.receive_message(QueueUrl=queue_url)
@@ -916,7 +916,7 @@ def record_sqs_events(target_aws_client, queue_url, sfn_snapshot, num_events):
916
916
  return len(stepfunctions_events) == num_events
917
917
 
918
918
  poll_condition(_get_events, timeout=60)
919
- stepfunctions_events.sort(key=lambda e: json.dumps(e.get("detail", dict())))
919
+ stepfunctions_events.sort(key=lambda e: json.dumps(e.get("detail", {})))
920
920
  sfn_snapshot.match("stepfunctions_events", stepfunctions_events)
921
921
 
922
922
 
@@ -931,7 +931,7 @@ class SfnNoneRecursiveParallelTransformer:
931
931
  @staticmethod
932
932
  def _normalise_events(events: list[dict]) -> None:
933
933
  start_idx = None
934
- sublist = list()
934
+ sublist = []
935
935
  in_sublist = False
936
936
  for i, event in enumerate(events):
937
937
  event_type = event.get("type")
@@ -113,11 +113,11 @@ class Counter(Metric, ThreadSafeCounter):
113
113
  def collect(self) -> list[CounterPayload]:
114
114
  """Collects the metric unless events are disabled."""
115
115
  if config.DISABLE_EVENTS:
116
- return list()
116
+ return []
117
117
 
118
118
  if self._count == 0:
119
119
  # Return an empty list if the count is 0, as there are no metrics to send to the analytics backend.
120
- return list()
120
+ return []
121
121
 
122
122
  return [
123
123
  CounterPayload(
@@ -184,7 +184,7 @@ class LabeledCounter(Metric):
184
184
 
185
185
  def collect(self) -> list[LabeledCounterPayload]:
186
186
  if config.DISABLE_EVENTS:
187
- return list()
187
+ return []
188
188
 
189
189
  payload = []
190
190
  num_labels = len(self._labels)
@@ -57,7 +57,7 @@ class MetricRegistry:
57
57
 
58
58
  def __init__(self):
59
59
  if not hasattr(self, "_registry"):
60
- self._registry = dict()
60
+ self._registry = {}
61
61
 
62
62
  @property
63
63
  def registry(self) -> dict[MetricRegistryKey, Metric]:
@@ -27,8 +27,8 @@ class ScheduledTask:
27
27
  self.period = period
28
28
  self.start = start
29
29
  self.on_error = on_error
30
- self.args = args or tuple()
31
- self.kwargs = kwargs or dict()
30
+ self.args = args or ()
31
+ self.kwargs = kwargs or {}
32
32
 
33
33
  self.deadline = None
34
34
  self.error = None
@@ -255,7 +255,7 @@ def create_lambda_function(
255
255
  "Role": role or LAMBDA_TEST_ROLE.format(account_id=TEST_AWS_ACCOUNT_ID),
256
256
  "Code": lambda_code,
257
257
  "Timeout": timeout or LAMBDA_TIMEOUT_SEC,
258
- "Environment": dict(Variables=envvars),
258
+ "Environment": {"Variables": envvars},
259
259
  "Tags": tags,
260
260
  }
261
261
  kwargs.update(additional_kwargs)
localstack/version.py CHANGED
@@ -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 = '4.7.1.dev40'
32
- __version_tuple__ = version_tuple = (4, 7, 1, 'dev40')
31
+ __version__ = version = '4.7.1.dev41'
32
+ __version_tuple__ = version_tuple = (4, 7, 1, 'dev41')
33
33
 
34
34
  __commit_id__ = commit_id = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: localstack-core
3
- Version: 4.7.1.dev40
3
+ Version: 4.7.1.dev41
4
4
  Summary: The core library and runtime of LocalStack
5
5
  Author-email: LocalStack Contributors <info@localstack.cloud>
6
6
  License-Expression: Apache-2.0