offspot-config 2.2.0__tar.gz → 2.2.2__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 (55) hide show
  1. {offspot_config-2.2.0 → offspot_config-2.2.2}/CHANGELOG.md +16 -0
  2. {offspot_config-2.2.0 → offspot_config-2.2.2}/PKG-INFO +1 -1
  3. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/builder.py +4 -3
  4. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/inputs/checksum.py +8 -0
  5. offspot_config-2.2.2/src/offspot_runtime/__about__.py +1 -0
  6. offspot_config-2.2.0/src/offspot_runtime/__about__.py +0 -1
  7. {offspot_config-2.2.0 → offspot_config-2.2.2}/.gitignore +0 -0
  8. {offspot_config-2.2.0 → offspot_config-2.2.2}/.pre-commit-config.yaml +0 -0
  9. {offspot_config-2.2.0 → offspot_config-2.2.2}/LICENSE +0 -0
  10. {offspot_config-2.2.0 → offspot_config-2.2.2}/README.md +0 -0
  11. {offspot_config-2.2.0 → offspot_config-2.2.2}/pyproject.toml +0 -0
  12. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/__init__.py +0 -0
  13. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/branding/horizontal-logo-light.png +0 -0
  14. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/branding/square-logo-light.png +0 -0
  15. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/catalog.json +0 -0
  16. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/catalog.py +0 -0
  17. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/constants.py +0 -0
  18. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/file.py +0 -0
  19. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/inputs/__init__.py +0 -0
  20. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/inputs/base.py +0 -0
  21. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/inputs/file.py +0 -0
  22. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/inputs/mainconfig.py +0 -0
  23. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/inputs/oci.py +0 -0
  24. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/inputs/output.py +0 -0
  25. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/inputs/str.py +0 -0
  26. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/inputs/ways.py +0 -0
  27. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/oci_images.py +0 -0
  28. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/packages.py +0 -0
  29. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/utils/__init__.py +0 -0
  30. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/utils/dashboard.py +0 -0
  31. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/utils/download.py +0 -0
  32. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/utils/misc.py +0 -0
  33. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/utils/sizes.py +0 -0
  34. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/utils/yaml.py +0 -0
  35. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_config/zim.py +0 -0
  36. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_runtime/__init__.py +0 -0
  37. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_runtime/ap.py +0 -0
  38. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_runtime/checks.py +0 -0
  39. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_runtime/configlib.py +0 -0
  40. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_runtime/containers.py +0 -0
  41. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_runtime/dnsmasqspoof.py +0 -0
  42. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_runtime/ethernet.py +0 -0
  43. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_runtime/firmware.py +0 -0
  44. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_runtime/fromfile.py +0 -0
  45. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_runtime/hostname.py +0 -0
  46. {offspot_config-2.2.0 → offspot_config-2.2.2}/src/offspot_runtime/timezone.py +0 -0
  47. {offspot_config-2.2.0 → offspot_config-2.2.2}/tasks.py +0 -0
  48. {offspot_config-2.2.0 → offspot_config-2.2.2}/tests/conftest.py +0 -0
  49. {offspot_config-2.2.0 → offspot_config-2.2.2}/tests/test_catalog.py +0 -0
  50. {offspot_config-2.2.0 → offspot_config-2.2.2}/tests/test_checks.py +0 -0
  51. {offspot_config-2.2.0 → offspot_config-2.2.2}/tests/test_humanid.py +0 -0
  52. {offspot_config-2.2.0 → offspot_config-2.2.2}/tests/test_inputs.py +0 -0
  53. {offspot_config-2.2.0 → offspot_config-2.2.2}/tests/test_link.py +0 -0
  54. {offspot_config-2.2.0 → offspot_config-2.2.2}/tests/test_reader.py +0 -0
  55. {offspot_config-2.2.0 → offspot_config-2.2.2}/tests/test_zim.py +0 -0
@@ -5,6 +5,22 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.2.2] - 2024-04-25
9
+
10
+ ### Fixed
11
+
12
+ - original branding incorrectly set as url
13
+
14
+ ## [2.2.1] - 2024-04-25
15
+
16
+ ### Fixed
17
+
18
+ - YAML repr of Checksum (#42)
19
+
20
+ ### Changed
21
+
22
+ - Using captive-portal 1.4.2 with branding support
23
+
8
24
  ## [2.2.0] - 2024-04-24
9
25
 
10
26
  ### Added
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: offspot-config
3
- Version: 2.2.0
3
+ Version: 2.2.2
4
4
  Summary: Offspot Config helpers
5
5
  Project-URL: Homepage, https://github.com/offspot/offspot-config
6
6
  Project-URL: Donate, https://www.kiwix.org/en/support-us/
@@ -49,9 +49,9 @@ KIWIX_ZIM_LOAD_BALANCER_URL = "https://download.kiwix.org/zim/"
49
49
  # data source for “internal images” (out of catalog)
50
50
  INTERNAL_IMAGES = {
51
51
  "captive-portal": {
52
- "source": "ghcr.io/offspot/captive-portal:1.4.1",
53
- "filesize": 189911040,
54
- "fullsize": 189841976,
52
+ "source": "ghcr.io/offspot/captive-portal:1.4.2",
53
+ "filesize": 189900800,
54
+ "fullsize": 189833272,
55
55
  },
56
56
  "dashboard": {
57
57
  "source": "ghcr.io/offspot/dashboard:1.3.1",
@@ -905,6 +905,7 @@ class ConfigBuilder:
905
905
  to=str(ORIGINAL_BRANDING_PATH.joinpath(fpath.name)),
906
906
  via="base64",
907
907
  size=len(data),
908
+ is_url=False,
908
909
  )
909
910
  del data
910
911
 
@@ -5,8 +5,10 @@ from typeguard import typechecked
5
5
 
6
6
  from offspot_config.constants import SUPPORTED_CHECKSUM_ALGORITHMS
7
7
  from offspot_config.utils.download import read_checksum_from
8
+ from offspot_config.utils.yaml import custom_yaml_repr
8
9
 
9
10
 
11
+ @custom_yaml_repr
10
12
  @typechecked
11
13
  @define(kw_only=True)
12
14
  class Checksum:
@@ -50,3 +52,9 @@ class Checksum:
50
52
 
51
53
  def to_dict(self) -> dict[str, str]:
52
54
  return asdict(self)
55
+
56
+ @staticmethod
57
+ def __yaml_repr__(dumper, data):
58
+ return dumper.represent_dict(
59
+ {key: value for key, value in asdict(data).items() if value is not None}
60
+ )
@@ -0,0 +1 @@
1
+ __version__ = "2.2.2"
@@ -1 +0,0 @@
1
- __version__ = "2.2.0"
File without changes
File without changes
File without changes