magehand 0.76.0__tar.gz → 0.76.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.
- {magehand-0.76.0 → magehand-0.76.2}/PKG-INFO +1 -1
- {magehand-0.76.0 → magehand-0.76.2}/pyproject.toml +1 -1
- {magehand-0.76.0 → magehand-0.76.2}/src/magehand/cli.py +8 -4
- {magehand-0.76.0 → magehand-0.76.2}/tests/test_cli.py +5 -1
- {magehand-0.76.0 → magehand-0.76.2}/.gitignore +0 -0
- {magehand-0.76.0 → magehand-0.76.2}/LICENSE +0 -0
- {magehand-0.76.0 → magehand-0.76.2}/README.md +0 -0
- {magehand-0.76.0 → magehand-0.76.2}/assets/README.md +0 -0
- {magehand-0.76.0 → magehand-0.76.2}/src/magehand/__init__.py +0 -0
- {magehand-0.76.0 → magehand-0.76.2}/src/magehand/__main__.py +0 -0
|
@@ -2575,10 +2575,14 @@ OWNER = APPS_REPO.split('/')[0]
|
|
|
2575
2575
|
TEMPLATE_REPO = f'{OWNER}/homelab-app-template'
|
|
2576
2576
|
BOT = 'davidlarrimore-bot'
|
|
2577
2577
|
APP_NAME = re.compile(r'^[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?$') # homelab-apps validate.yaml
|
|
2578
|
-
#
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2578
|
+
# The platform's names (homelab scripts/sync-prod-apps.py RESERVED, homelab-apps validate.yaml: an app's name is
|
|
2579
|
+
# its namespace and its host, so these would collide; a homelab test checks every platform host is there) and the
|
|
2580
|
+
# platform's own repos.
|
|
2581
|
+
RESERVED = {'argocd', 'authentik', 'cloudflared', 'external-secrets', 'ingress', 'kyverno', 'litellm', 'outbound-mail',
|
|
2582
|
+
'monitoring', 'openbao', 'openclaw', 'trivy-system', 'default', 'agent-app-groups', 'auth', 'llm', 'www',
|
|
2583
|
+
'tunnel-test', 'mail', 'api', 'status', 'object-storage', 'files', 'files-dev', 'github-hooks', 'lab-facts',
|
|
2584
|
+
'sablier', 'grafana', 'prometheus', 'alertmanager', 'hooks',
|
|
2585
|
+
'homelab', 'homelab-apps', 'homelab-app-template', 'homelab-events', 'magehand'}
|
|
2582
2586
|
|
|
2583
2587
|
|
|
2584
2588
|
GITHUB_API = 'https://api.github.com/'
|
|
@@ -2797,6 +2797,7 @@ class AppNameOverride(unittest.TestCase):
|
|
|
2797
2797
|
"""Returning early for "no Deployment yet" must not skip the app-name rules."""
|
|
2798
2798
|
for app_yaml, why in (('app: Lab\nservices: {}\n', 'not an app name'),
|
|
2799
2799
|
('app: litellm\nservices: {}\n', 'reserved'),
|
|
2800
|
+
('app: auth\nservices: {}\n', 'reserved'),
|
|
2800
2801
|
('app: lab-dev\nservices: {}\n', 'not an app name'),
|
|
2801
2802
|
('app: lab-fetch\nservices: {}\n', 'not an app name'),
|
|
2802
2803
|
('app: [x\n', 'not valid YAML')):
|
|
@@ -3601,7 +3602,10 @@ class New(unittest.TestCase):
|
|
|
3601
3602
|
|
|
3602
3603
|
def test_bad_and_reserved_names(self):
|
|
3603
3604
|
self.fake()
|
|
3604
|
-
for name in ('Elvis', '-x', 'a' * 41, 'litellm', 'homelab-apps', 'crawl-fetch'
|
|
3605
|
+
for name in ('Elvis', '-x', 'a' * 41, 'litellm', 'homelab-apps', 'crawl-fetch',
|
|
3606
|
+
'auth', 'object-storage', 'files', 'files-dev', # homelab-apps' list too (homelab#790)
|
|
3607
|
+
'sablier', 'outbound-mail', 'github-hooks', 'lab-facts', # platform namespaces (#156)
|
|
3608
|
+
'grafana', 'prometheus', 'alertmanager', 'llm', 'hooks'): # platform hosts (#156)
|
|
3605
3609
|
with self.assertRaises(SystemExit) as ctx:
|
|
3606
3610
|
self.run_new(name)
|
|
3607
3611
|
self.assertEqual(ctx.exception.code, 2, name)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|