withcache 0.8.8__tar.gz → 0.8.9__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.
- {withcache-0.8.8 → withcache-0.8.9}/PKG-INFO +1 -1
- {withcache-0.8.8 → withcache-0.8.9}/deploy/Containerfile +3 -2
- withcache-0.8.9/deploy/compose.local-build.yml +11 -0
- {withcache-0.8.8 → withcache-0.8.9}/shim/build.zig.zon +1 -1
- {withcache-0.8.8 → withcache-0.8.9}/src/withcache/__init__.py +1 -1
- {withcache-0.8.8 → withcache-0.8.9}/src/withcache/server.py +8 -1
- {withcache-0.8.8 → withcache-0.8.9}/.gitignore +0 -0
- {withcache-0.8.8 → withcache-0.8.9}/LICENSE +0 -0
- {withcache-0.8.8 → withcache-0.8.9}/README.md +0 -0
- {withcache-0.8.8 → withcache-0.8.9}/deploy/compose.yml +0 -0
- {withcache-0.8.8 → withcache-0.8.9}/deploy/envvars.example +0 -0
- {withcache-0.8.8 → withcache-0.8.9}/hatch_build.py +0 -0
- {withcache-0.8.8 → withcache-0.8.9}/pyproject.toml +0 -0
- {withcache-0.8.8 → withcache-0.8.9}/shim/build.zig +0 -0
- {withcache-0.8.8 → withcache-0.8.9}/shim/shim.zig +0 -0
- {withcache-0.8.8 → withcache-0.8.9}/src/withcache/_shim.py +0 -0
- {withcache-0.8.8 → withcache-0.8.9}/src/withcache/client.py +0 -0
- {withcache-0.8.8 → withcache-0.8.9}/src/withcache/curlwithcache.py +0 -0
- {withcache-0.8.8 → withcache-0.8.9}/src/withcache/oras.py +0 -0
- {withcache-0.8.8 → withcache-0.8.9}/src/withcache/static/bootstrap-icons.min.css +0 -0
- {withcache-0.8.8 → withcache-0.8.9}/src/withcache/static/bootstrap.min.css +0 -0
- {withcache-0.8.8 → withcache-0.8.9}/src/withcache/static/fonts/bootstrap-icons.woff +0 -0
- {withcache-0.8.8 → withcache-0.8.9}/src/withcache/static/fonts/bootstrap-icons.woff2 +0 -0
- {withcache-0.8.8 → withcache-0.8.9}/src/withcache/static/htmx.min.js +0 -0
- {withcache-0.8.8 → withcache-0.8.9}/src/withcache/wgetwithcache.py +0 -0
- {withcache-0.8.8 → withcache-0.8.9}/tests/test_differential.py +0 -0
- {withcache-0.8.8 → withcache-0.8.9}/tests/test_oras.py +0 -0
- {withcache-0.8.8 → withcache-0.8.9}/tests/test_withcache.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: withcache
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.9
|
|
4
4
|
Summary: Operator-curated, URL-keyed artifact cache for a small lab (CUDA/ROCm/DOCA/firmware)
|
|
5
5
|
Project-URL: Homepage, https://github.com/safl/withcache
|
|
6
6
|
Author-email: "Simon A. F. Lund" <safl@safl.dk>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
# withcache cache-host.
|
|
1
|
+
# withcache cache-host. From-source build (rare; the reference
|
|
2
|
+
# compose.yml uses the published ``ghcr.io/safl/withcache:latest``
|
|
3
|
+
# image instead). Build context is the repo root:
|
|
2
4
|
# podman build -f deploy/Containerfile -t withcache .
|
|
3
|
-
# (deploy/compose.yml sets the context for you.)
|
|
4
5
|
FROM python:3.12-slim
|
|
5
6
|
|
|
6
7
|
# Install the package (no third-party deps) to get the withcache-server command.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Overlay compose file for from-source dev iteration:
|
|
2
|
+
# podman compose -f deploy/compose.yml -f deploy/compose.local-build.yml up -d --build
|
|
3
|
+
# The reference deploy/compose.yml uses the published image
|
|
4
|
+
# ``ghcr.io/safl/withcache:latest``; this overlay swaps in a local
|
|
5
|
+
# build from the repo root's Containerfile.
|
|
6
|
+
services:
|
|
7
|
+
withcache:
|
|
8
|
+
build:
|
|
9
|
+
context: ..
|
|
10
|
+
dockerfile: deploy/Containerfile
|
|
11
|
+
image: withcache:local
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
.name = .withcache_shim,
|
|
3
3
|
// Zig requires a literal here; keep it in lockstep with the project's
|
|
4
4
|
// single source (src/withcache/__init__.py) via `make bump` / `make version-check`.
|
|
5
|
-
.version = "0.8.
|
|
5
|
+
.version = "0.8.9",
|
|
6
6
|
.fingerprint = 0xd7d96c5ed212ccaa,
|
|
7
7
|
.minimum_zig_version = "0.16.0",
|
|
8
8
|
.paths = .{
|
|
@@ -17,6 +17,6 @@ All modules are stdlib-only and self-contained.
|
|
|
17
17
|
from . import oras
|
|
18
18
|
from .client import blob_url, cache_base, is_cached, serve_url
|
|
19
19
|
|
|
20
|
-
__version__ = "0.8.
|
|
20
|
+
__version__ = "0.8.9"
|
|
21
21
|
|
|
22
22
|
__all__ = ["__version__", "blob_url", "cache_base", "is_cached", "oras", "serve_url"]
|
|
@@ -1821,7 +1821,14 @@ class Handler(http.server.BaseHTTPRequestHandler):
|
|
|
1821
1821
|
'<progress id="spin" class="htmx-indicator ms-1" '
|
|
1822
1822
|
'style="width:4rem;height:.4rem;"></progress></div>'
|
|
1823
1823
|
)
|
|
1824
|
-
|
|
1824
|
+
# <nav class="navbar subnav-strip"> matches bty's canonical
|
|
1825
|
+
# subnav shape (bty/src/bty/web/_templates/ui/_subnav.html);
|
|
1826
|
+
# ``.navbar`` gets the Bootstrap subnav-strip vertical rhythm,
|
|
1827
|
+
# aria-label + <nav> give screen readers a landmark.
|
|
1828
|
+
return (
|
|
1829
|
+
'<nav class="navbar subnav-strip" aria-label="Section sub-navigation">'
|
|
1830
|
+
f'<div class="container">{left}{right}</div></nav>'
|
|
1831
|
+
)
|
|
1825
1832
|
|
|
1826
1833
|
# ---- Cached page -----------------------------------------------------
|
|
1827
1834
|
def _cached_body_html(self) -> str:
|
|
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
|