offspot-config 2.2.4__tar.gz → 2.2.5__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.
- {offspot_config-2.2.4 → offspot_config-2.2.5}/CHANGELOG.md +10 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/PKG-INFO +1 -1
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/builder.py +1 -1
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/utils/dashboard.py +5 -0
- offspot_config-2.2.5/src/offspot_runtime/__about__.py +1 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/tests/test_reader.py +7 -7
- offspot_config-2.2.4/src/offspot_runtime/__about__.py +0 -1
- {offspot_config-2.2.4 → offspot_config-2.2.5}/.gitignore +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/.pre-commit-config.yaml +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/LICENSE +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/README.md +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/pyproject.toml +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/__init__.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/branding/horizontal-logo-light.png +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/branding/square-logo-light.png +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/catalog.json +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/catalog.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/constants.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/file.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/inputs/__init__.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/inputs/base.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/inputs/checksum.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/inputs/file.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/inputs/mainconfig.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/inputs/oci.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/inputs/output.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/inputs/str.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/inputs/ways.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/oci_images.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/packages.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/utils/__init__.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/utils/download.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/utils/misc.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/utils/sizes.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/utils/yaml.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/zim.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_runtime/__init__.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_runtime/ap.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_runtime/checks.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_runtime/configlib.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_runtime/containers.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_runtime/dnsmasqspoof.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_runtime/ethernet.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_runtime/firmware.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_runtime/fromfile.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_runtime/hostname.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_runtime/timezone.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/tasks.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/tests/conftest.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/tests/test_catalog.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/tests/test_checks.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/tests/test_humanid.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/tests/test_inputs.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/tests/test_link.py +0 -0
- {offspot_config-2.2.4 → offspot_config-2.2.5}/tests/test_zim.py +0 -0
|
@@ -5,6 +5,16 @@ 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.5] - 2024-05-21
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- [utils.dashboard] New `Reader.to_dashboard_dict()` returning dashboard-transformed download URL
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- [builder] Reader download link using local URL
|
|
17
|
+
|
|
8
18
|
## [2.2.4] - 2024-05-01
|
|
9
19
|
|
|
10
20
|
### Changed
|
|
@@ -294,7 +294,7 @@ class ConfigBuilder:
|
|
|
294
294
|
|
|
295
295
|
if self.dashboard_readers:
|
|
296
296
|
payload["readers"] = [
|
|
297
|
-
reader.
|
|
297
|
+
reader.to_dashboard_dict(download_fqdn=f"{ZIMDL_PREFIX}.{self.fqdn}")
|
|
298
298
|
for reader in sorted(self.dashboard_readers, key=Reader.sort)
|
|
299
299
|
]
|
|
300
300
|
|
|
@@ -30,6 +30,11 @@ class Reader(NamedTuple):
|
|
|
30
30
|
|
|
31
31
|
return {field: value_or_dict(getattr(self, field)) for field in self._fields}
|
|
32
32
|
|
|
33
|
+
def to_dashboard_dict(self, download_fqdn: str) -> dict[str, str | int]:
|
|
34
|
+
data = self.to_dict()
|
|
35
|
+
data["download_url"] = f"//{download_fqdn}/{data['filename']!s}"
|
|
36
|
+
return data
|
|
37
|
+
|
|
33
38
|
@property
|
|
34
39
|
def order(self) -> int:
|
|
35
40
|
"""sort-usable order based on reader's platform popularity"""
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.2.5"
|
|
@@ -27,8 +27,8 @@ REALISTIC_VALUES = [
|
|
|
27
27
|
),
|
|
28
28
|
(
|
|
29
29
|
"macos",
|
|
30
|
-
"https://download.kiwix.org/release/kiwix-
|
|
31
|
-
"kiwix-
|
|
30
|
+
"https://download.kiwix.org/release/kiwix-macos/kiwix-macos_3.1.0.dmg",
|
|
31
|
+
"kiwix-macos_3.1.0.dmg",
|
|
32
32
|
16051402,
|
|
33
33
|
"747fd0841b56d2d5158e0e65646b1be1",
|
|
34
34
|
),
|
|
@@ -47,8 +47,8 @@ REALISTIC_VALUES = [
|
|
|
47
47
|
"kiwix-3.9.1.apk",
|
|
48
48
|
),
|
|
49
49
|
(
|
|
50
|
-
"https://download.kiwix.org/release/kiwix-
|
|
51
|
-
"kiwix-
|
|
50
|
+
"https://download.kiwix.org/release/kiwix-macos/kiwix-macos_3.1.0.dmg",
|
|
51
|
+
"kiwix-macos_3.1.0.dmg",
|
|
52
52
|
),
|
|
53
53
|
(
|
|
54
54
|
"https://download.kiwix.org/release/kiwix-desktop/kiwix-desktop_x86_64_2.3.1-4.appimage",
|
|
@@ -201,14 +201,14 @@ def test_sort_order():
|
|
|
201
201
|
),
|
|
202
202
|
(
|
|
203
203
|
"macos",
|
|
204
|
-
"https://download.kiwix.org/release/kiwix-
|
|
204
|
+
"https://download.kiwix.org/release/kiwix-macos/kiwix-macos_3.1.0.dmg",
|
|
205
205
|
None,
|
|
206
206
|
None,
|
|
207
207
|
None,
|
|
208
208
|
{
|
|
209
209
|
"platform": "macos",
|
|
210
|
-
"download_url": "https://download.kiwix.org/release/kiwix-
|
|
211
|
-
"filename": "kiwix-
|
|
210
|
+
"download_url": "https://download.kiwix.org/release/kiwix-macos/kiwix-macos_3.1.0.dmg",
|
|
211
|
+
"filename": "kiwix-macos_3.1.0.dmg",
|
|
212
212
|
"size": 16051402,
|
|
213
213
|
"checksum": None,
|
|
214
214
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.2.4"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/branding/horizontal-logo-light.png
RENAMED
|
File without changes
|
{offspot_config-2.2.4 → offspot_config-2.2.5}/src/offspot_config/branding/square-logo-light.png
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|