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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: magehand
3
- Version: 0.76.0
3
+ Version: 0.76.2
4
4
  Summary: The developer CLI for building apps on davidlarrimore's homelab
5
5
  Project-URL: Source, https://github.com/davidlarrimore/magehand
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "magehand"
7
- version = "0.76.0"
7
+ version = "0.76.2"
8
8
  description = "The developer CLI for building apps on davidlarrimore's homelab"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -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
- # Platform Applications (homelab-apps validate.yaml) and the platform's own repos.
2579
- RESERVED = {'argocd', 'authentik', 'cloudflared', 'external-secrets', 'ingress', 'kyverno', 'litellm', 'monitoring',
2580
- 'openbao', 'openclaw', 'agent-app-groups', 'homelab', 'homelab-apps', 'homelab-app-template',
2581
- 'homelab-events', 'magehand'}
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