obsideo-cli 0.2.2__tar.gz → 0.2.3__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.
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/PKG-INFO +1 -1
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/obsideo/cli.py +4 -4
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/obsideo_cli.egg-info/PKG-INFO +1 -1
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/pyproject.toml +1 -1
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/tests/test_cli.py +1 -1
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/README.md +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/obsideo/__init__.py +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/obsideo/__main__.py +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/obsideo/manifest.py +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/obsideo/sync.py +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/obsideo_cli.egg-info/SOURCES.txt +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/obsideo_cli.egg-info/dependency_links.txt +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/obsideo_cli.egg-info/entry_points.txt +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/obsideo_cli.egg-info/requires.txt +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/obsideo_cli.egg-info/top_level.txt +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/obsideo_core/__init__.py +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/obsideo_core/config.py +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/obsideo_core/crypto.py +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/obsideo_core/identity.py +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/obsideo_core/login.py +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/obsideo_core/names.py +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/obsideo_core/storage.py +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/setup.cfg +0 -0
- {obsideo_cli-0.2.2 → obsideo_cli-0.2.3}/tests/test_core.py +0 -0
|
@@ -178,7 +178,7 @@ def _latest_pypi_version() -> str | None:
|
|
|
178
178
|
f"https://pypi.org/pypi/{config.PACKAGE}/json",
|
|
179
179
|
headers={"User-Agent": config.USER_AGENT},
|
|
180
180
|
)
|
|
181
|
-
with urllib.request.urlopen(req, timeout=
|
|
181
|
+
with urllib.request.urlopen(req, timeout=15, context=config.ssl_context()) as resp:
|
|
182
182
|
return json.loads(resp.read().decode())["info"]["version"]
|
|
183
183
|
except Exception:
|
|
184
184
|
return None
|
|
@@ -206,7 +206,7 @@ def check_for_update() -> None:
|
|
|
206
206
|
print(f"Updating to {latest}...", file=sys.stderr)
|
|
207
207
|
try:
|
|
208
208
|
rc = subprocess.run(
|
|
209
|
-
[sys.executable, "-m", "pip", "install", "-U", config.PACKAGE]
|
|
209
|
+
[sys.executable, "-m", "pip", "install", "-U", "--no-cache-dir", config.PACKAGE]
|
|
210
210
|
).returncode
|
|
211
211
|
except Exception as e:
|
|
212
212
|
print(f"Update failed: {e}\nTry manually: pip install -U {config.PACKAGE}", file=sys.stderr)
|
|
@@ -604,7 +604,7 @@ class ObsideoShell(cmd.Cmd):
|
|
|
604
604
|
# ── exit ──────────────────────────────────────────────────────────────────
|
|
605
605
|
def do_exit(self, arg):
|
|
606
606
|
"""Exit."""
|
|
607
|
-
print("
|
|
607
|
+
print("adios amigo")
|
|
608
608
|
return True
|
|
609
609
|
|
|
610
610
|
do_quit = do_exit
|
|
@@ -684,7 +684,7 @@ def main():
|
|
|
684
684
|
try:
|
|
685
685
|
shell.cmdloop()
|
|
686
686
|
except KeyboardInterrupt:
|
|
687
|
-
print("\
|
|
687
|
+
print("\nadios amigo")
|
|
688
688
|
|
|
689
689
|
|
|
690
690
|
if __name__ == "__main__":
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "obsideo-cli"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.3"
|
|
8
8
|
description = "Obsideo Cloud - encrypted storage we can't read. Save, browse, and sync whatever you want, from your terminal."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -227,4 +227,4 @@ def test_update_check_runs_pip_on_yes(monkeypatch, capsys):
|
|
|
227
227
|
with pytest.raises(SystemExit) as e:
|
|
228
228
|
cli.check_for_update()
|
|
229
229
|
assert e.value.code == 0
|
|
230
|
-
assert calls and calls[0][1:] == ["-m", "pip", "install", "-U", "obsideo-cli"]
|
|
230
|
+
assert calls and calls[0][1:] == ["-m", "pip", "install", "-U", "--no-cache-dir", "obsideo-cli"]
|
|
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
|