godfather-cli 2.0.0__tar.gz → 2.0.1__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 (20) hide show
  1. {godfather_cli-2.0.0/godfather_cli.egg-info → godfather_cli-2.0.1}/PKG-INFO +1 -1
  2. {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli/__init__.py +1 -1
  3. {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli/cli.py +7 -2
  4. {godfather_cli-2.0.0 → godfather_cli-2.0.1/godfather_cli.egg-info}/PKG-INFO +1 -1
  5. {godfather_cli-2.0.0 → godfather_cli-2.0.1}/pyproject.toml +1 -1
  6. {godfather_cli-2.0.0 → godfather_cli-2.0.1}/LICENSE +0 -0
  7. {godfather_cli-2.0.0 → godfather_cli-2.0.1}/MANIFEST.in +0 -0
  8. {godfather_cli-2.0.0 → godfather_cli-2.0.1}/README.md +0 -0
  9. {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli/auth.py +0 -0
  10. {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli/pod_manager.py +0 -0
  11. {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli/ssh_connector.py +0 -0
  12. {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli/ui.py +0 -0
  13. {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli/update_checker.py +0 -0
  14. {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli.egg-info/SOURCES.txt +0 -0
  15. {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli.egg-info/dependency_links.txt +0 -0
  16. {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli.egg-info/entry_points.txt +0 -0
  17. {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli.egg-info/requires.txt +0 -0
  18. {godfather_cli-2.0.0 → godfather_cli-2.0.1}/godfather_cli.egg-info/top_level.txt +0 -0
  19. {godfather_cli-2.0.0 → godfather_cli-2.0.1}/setup.cfg +0 -0
  20. {godfather_cli-2.0.0 → godfather_cli-2.0.1}/tests/test_cli.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: godfather-cli
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: Free compute for ASU students: connect to AI Society at ASU GPU pods
5
5
  Author-email: AI Society ASU <theaisocietyasu@gmail.com>
6
6
  License: MIT
@@ -2,6 +2,6 @@
2
2
  Godfather CLI package
3
3
  """
4
4
 
5
- __version__ = "2.0.0"
5
+ __version__ = "2.0.1"
6
6
  __author__ = "AI Society ASU"
7
7
  __email__ = "admin@ais-asu.com"
@@ -17,7 +17,9 @@ from .ui import console, warning, info, BOX, BORDER, PURPLE
17
17
  from . import __version__
18
18
 
19
19
  # The AI Society platform API and org. Override with --api-url/--org or GODFATHER_API_URL/GODFATHER_ORG.
20
- DEFAULT_API_URL = 'https://854ap0rs1ws50n-8000.proxy.runpod.net'
20
+ DEFAULT_API_URL = 'https://zs6k5wi0boaaax-8000.proxy.runpod.net'
21
+ # Servers that no longer exist. A login saved against one of them falls back to the default.
22
+ RETIRED_API_URLS = {'https://854ap0rs1ws50n-8000.proxy.runpod.net'}
21
23
  DEFAULT_ORG = 'ais'
22
24
 
23
25
 
@@ -29,8 +31,11 @@ class GodfatherCLI:
29
31
 
30
32
  # A flag or env var wins, then what the last login saved, then the defaults.
31
33
  saved = CLIAuthenticator.read_config(self.config_dir)
34
+ saved_url = saved.get('api_url')
35
+ if saved_url in RETIRED_API_URLS:
36
+ saved_url = None
32
37
  self.api_base = (
33
- os.getenv('GODFATHER_API_URL') or saved.get('api_url') or DEFAULT_API_URL
38
+ os.getenv('GODFATHER_API_URL') or saved_url or DEFAULT_API_URL
34
39
  ).rstrip('/')
35
40
  self.org = os.getenv('GODFATHER_ORG') or saved.get('org') or DEFAULT_ORG
36
41
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: godfather-cli
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: Free compute for ASU students: connect to AI Society at ASU GPU pods
5
5
  Author-email: AI Society ASU <theaisocietyasu@gmail.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "godfather-cli"
7
- version = "2.0.0"
7
+ version = "2.0.1"
8
8
  description = "Free compute for ASU students: connect to AI Society at ASU GPU pods"
9
9
  authors = [
10
10
  {name = "AI Society ASU", email = "theaisocietyasu@gmail.com"}
File without changes
File without changes
File without changes
File without changes