cloud-radar 0.13.1a2__tar.gz → 0.13.1a4__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.
Files changed (18) hide show
  1. {cloud_radar-0.13.1a2 → cloud_radar-0.13.1a4}/PKG-INFO +1 -1
  2. {cloud_radar-0.13.1a2 → cloud_radar-0.13.1a4}/pyproject.toml +2 -2
  3. {cloud_radar-0.13.1a2 → cloud_radar-0.13.1a4}/src/cloud_radar/cf/unit/functions.py +4 -2
  4. {cloud_radar-0.13.1a2 → cloud_radar-0.13.1a4}/LICENSE.txt +0 -0
  5. {cloud_radar-0.13.1a2 → cloud_radar-0.13.1a4}/README.md +0 -0
  6. {cloud_radar-0.13.1a2 → cloud_radar-0.13.1a4}/src/cloud_radar/__init__.py +0 -0
  7. {cloud_radar-0.13.1a2 → cloud_radar-0.13.1a4}/src/cloud_radar/cf/__init__.py +0 -0
  8. {cloud_radar-0.13.1a2 → cloud_radar-0.13.1a4}/src/cloud_radar/cf/e2e/__init__.py +0 -0
  9. {cloud_radar-0.13.1a2 → cloud_radar-0.13.1a4}/src/cloud_radar/cf/e2e/_stack.py +0 -0
  10. {cloud_radar-0.13.1a2 → cloud_radar-0.13.1a4}/src/cloud_radar/cf/unit/__init__.py +0 -0
  11. {cloud_radar-0.13.1a2 → cloud_radar-0.13.1a4}/src/cloud_radar/cf/unit/_condition.py +0 -0
  12. {cloud_radar-0.13.1a2 → cloud_radar-0.13.1a4}/src/cloud_radar/cf/unit/_hooks.py +0 -0
  13. {cloud_radar-0.13.1a2 → cloud_radar-0.13.1a4}/src/cloud_radar/cf/unit/_output.py +0 -0
  14. {cloud_radar-0.13.1a2 → cloud_radar-0.13.1a4}/src/cloud_radar/cf/unit/_parameter.py +0 -0
  15. {cloud_radar-0.13.1a2 → cloud_radar-0.13.1a4}/src/cloud_radar/cf/unit/_resource.py +0 -0
  16. {cloud_radar-0.13.1a2 → cloud_radar-0.13.1a4}/src/cloud_radar/cf/unit/_stack.py +0 -0
  17. {cloud_radar-0.13.1a2 → cloud_radar-0.13.1a4}/src/cloud_radar/cf/unit/_template.py +0 -0
  18. {cloud_radar-0.13.1a2 → cloud_radar-0.13.1a4}/src/cloud_radar/cf/unit/test__template.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cloud-radar
3
- Version: 0.13.1a2
3
+ Version: 0.13.1a4
4
4
  Summary: Run functional tests on cloudformation stacks.
5
5
  Home-page: https://github.com/DontShaveTheYak/cloud-radar
6
6
  License: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "cloud-radar"
3
- version = "0.13.1a2"
3
+ version = "0.13.1a4"
4
4
  description = "Run functional tests on cloudformation stacks."
5
5
  readme = "README.md"
6
6
  authors = ["Levi Blaney <shadycuz@gmail.com>"]
@@ -42,7 +42,7 @@ mypy = "^1.0.0"
42
42
  types-requests = "^2.28.11"
43
43
  types-PyYAML = "^6.0.12"
44
44
  cfn-lint = "1.18.4"
45
- setuptools = {version = "75.3.0", python = ">=3.12"}
45
+ setuptools = {version = "75.4.0", python = ">=3.12"}
46
46
 
47
47
  [tool.coverage.paths]
48
48
  source = ["src", "*/site-packages"]
@@ -8,7 +8,8 @@ import base64 as b64
8
8
  import ipaddress
9
9
  import json
10
10
  import re
11
- from typing import TYPE_CHECKING, Any, Callable, Dict, List # noqa: I101
11
+ from functools import cache
12
+ from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional # noqa: I101
12
13
 
13
14
  import requests
14
15
 
@@ -25,7 +26,7 @@ Dispatch = Dict[str, Callable[..., Any]]
25
26
  # The maps are a nested dictionary.
26
27
  Mapping = Dict[str, Dict[str, Dict[str, Any]]]
27
28
 
28
- REGION_DATA = None
29
+ REGION_DATA: Optional[List[dict]] = None
29
30
 
30
31
 
31
32
  def base64(_t: "Template", value: Any) -> str:
@@ -877,6 +878,7 @@ def get_region_azs(region_name: str) -> List[str]:
877
878
  raise Exception(f"Unable to find region {region_name}.")
878
879
 
879
880
 
881
+ @cache
880
882
  def _fetch_region_data() -> List[dict]:
881
883
  """Fetchs Region JSON from URL.
882
884
 
File without changes