sentry-devenv 1.22.1__tar.gz → 1.22.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.
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/PKG-INFO +1 -1
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/checks/dockerConfig.py +9 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/pyproject.toml +1 -1
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/sentry_devenv.egg-info/PKG-INFO +1 -1
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/checks/test_dockerConfig.py +41 -4
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/README.md +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/ci/integration/repo/devenv/sync.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/__init__.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/__main__.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/bootstrap.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/checks/__init__.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/checks/dockerDesktop.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/checks/limaDns.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/checks/test.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/colima.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/constants.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/doctor.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/fetch.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib/__init__.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib/archive.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib/brew.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib/colima.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib/config.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib/context.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib/direnv.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib/docker.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib/fs.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib/gcloud.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib/github.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib/limactl.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib/modules.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib/node.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib/proc.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib/repository.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib/rosetta.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib/tenv.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib/uv.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib/venv.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib_check/__init__.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib_check/brew.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/lib_check/types.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/main.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/pin_gha.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/py.typed +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/pythons.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/sync.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/devenv/update.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/sentry_devenv.egg-info/SOURCES.txt +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/sentry_devenv.egg-info/dependency_links.txt +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/sentry_devenv.egg-info/entry_points.txt +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/sentry_devenv.egg-info/requires.txt +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/sentry_devenv.egg-info/top_level.txt +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/setup.cfg +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/__init__.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/checks/__init__.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/conftest.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/doctor/__init__.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/doctor/devenv/checks/bad_check.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/doctor/devenv/checks/bad_fix.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/doctor/devenv/checks/broken_check.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/doctor/devenv/checks/broken_fix.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/doctor/devenv/checks/failing_check.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/doctor/devenv/checks/failing_check_with_msg.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/doctor/devenv/checks/no_check.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/doctor/devenv/checks/no_name.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/doctor/devenv/checks/no_tags.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/doctor/devenv/checks/passing_check.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/doctor/test_attempt_fix.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/doctor/test_filter_failing_checks.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/doctor/test_load_checks.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/doctor/test_prompt_for_fix.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/doctor/test_run_checks.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/lib/test_archive.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/lib/test_brew.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/lib/test_direnv.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/lib/test_fs.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/lib/test_github.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/lib/test_proc.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/lib/test_repository.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/lib/test_venv.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/test_main.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/test_pythons.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/test_sync.py +0 -0
- {sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sentry_devenv
|
|
3
|
-
Version: 1.22.
|
|
3
|
+
Version: 1.22.2
|
|
4
4
|
Summary: Utilities for setting up a Sentry development environment
|
|
5
5
|
Author-email: Joshua Li <joshua.li@sentry.io>, Ian Woodard <ian.woodard@sentry.io>, Buck Evan <buck.evan@sentry.io>
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -32,6 +32,14 @@ def check() -> tuple[bool, str]:
|
|
|
32
32
|
"cliPluginsExtraDirs exists, which overshadows the default plugin path",
|
|
33
33
|
)
|
|
34
34
|
|
|
35
|
+
# Ensure the current context is set to colima
|
|
36
|
+
current_context = config.get("currentContext", "")
|
|
37
|
+
if current_context != "colima":
|
|
38
|
+
return (
|
|
39
|
+
False,
|
|
40
|
+
f"currentContext is '{current_context}', should be 'colima'",
|
|
41
|
+
)
|
|
42
|
+
|
|
35
43
|
return True, ""
|
|
36
44
|
|
|
37
45
|
|
|
@@ -43,6 +51,7 @@ def fix() -> tuple[bool, str]:
|
|
|
43
51
|
|
|
44
52
|
config.pop("credsStore", None)
|
|
45
53
|
config.pop("cliPluginsExtraDirs", None)
|
|
54
|
+
config["currentContext"] = "colima"
|
|
46
55
|
|
|
47
56
|
with open(os.path.expanduser("~/.docker/config.json"), "w") as f:
|
|
48
57
|
json.dump(config, f)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sentry_devenv
|
|
3
|
-
Version: 1.22.
|
|
3
|
+
Version: 1.22.2
|
|
4
4
|
Summary: Utilities for setting up a Sentry development environment
|
|
5
5
|
Author-email: Joshua Li <joshua.li@sentry.io>, Ian Woodard <ian.woodard@sentry.io>, Buck Evan <buck.evan@sentry.io>
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -24,12 +24,14 @@ def fake_config(tmp_path: pathlib.Path) -> Generator[pathlib.Path]:
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
def test_no_credsStore_ok(fake_config: pathlib.Path) -> None:
|
|
27
|
-
fake_config.write_text("
|
|
27
|
+
fake_config.write_text('{"currentContext": "colima"}')
|
|
28
28
|
assert dockerConfig.check() == (True, "")
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
def test_binary_ok(fake_config: pathlib.Path) -> None:
|
|
32
|
-
fake_config.write_text(
|
|
32
|
+
fake_config.write_text(
|
|
33
|
+
'{"credsStore": "example", "currentContext": "colima"}'
|
|
34
|
+
)
|
|
33
35
|
with mock.patch.object(shutil, "which", return_value="/fake/exe"):
|
|
34
36
|
assert dockerConfig.check() == (True, "")
|
|
35
37
|
|
|
@@ -47,10 +49,45 @@ def test_binary_missing(fake_config: pathlib.Path, name: str) -> None:
|
|
|
47
49
|
def test_fix_credsStore(fake_config: pathlib.Path) -> None:
|
|
48
50
|
fake_config.write_text('{"credsStore": "bad"}')
|
|
49
51
|
assert dockerConfig.fix() == (True, "")
|
|
50
|
-
assert fake_config.read_text() == "
|
|
52
|
+
assert fake_config.read_text() == '{"currentContext": "colima"}'
|
|
51
53
|
|
|
52
54
|
|
|
53
55
|
def test_fix_cliPluginsExtraDirs(fake_config: pathlib.Path) -> None:
|
|
54
56
|
fake_config.write_text('{"cliPluginsExtraDirs": ["foo/"]}')
|
|
55
57
|
assert dockerConfig.fix() == (True, "")
|
|
56
|
-
assert fake_config.read_text() == "
|
|
58
|
+
assert fake_config.read_text() == '{"currentContext": "colima"}'
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def test_currentContext_missing(fake_config: pathlib.Path) -> None:
|
|
62
|
+
fake_config.write_text('{"auths": {}}')
|
|
63
|
+
assert dockerConfig.check() == (
|
|
64
|
+
False,
|
|
65
|
+
"currentContext is '', should be 'colima'",
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def test_currentContext_wrong(fake_config: pathlib.Path) -> None:
|
|
70
|
+
fake_config.write_text('{"currentContext": "desktop"}')
|
|
71
|
+
assert dockerConfig.check() == (
|
|
72
|
+
False,
|
|
73
|
+
"currentContext is 'desktop', should be 'colima'",
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def test_currentContext_correct(fake_config: pathlib.Path) -> None:
|
|
78
|
+
fake_config.write_text('{"currentContext": "colima"}')
|
|
79
|
+
assert dockerConfig.check() == (True, "")
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def test_fix_currentContext_missing(fake_config: pathlib.Path) -> None:
|
|
83
|
+
fake_config.write_text('{"auths": {}}')
|
|
84
|
+
assert dockerConfig.fix() == (True, "")
|
|
85
|
+
assert (
|
|
86
|
+
fake_config.read_text() == '{"auths": {}, "currentContext": "colima"}'
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def test_fix_currentContext_wrong(fake_config: pathlib.Path) -> None:
|
|
91
|
+
fake_config.write_text('{"currentContext": "docker-desktop"}')
|
|
92
|
+
assert dockerConfig.fix() == (True, "")
|
|
93
|
+
assert fake_config.read_text() == '{"currentContext": "colima"}'
|
|
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
|
|
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
|
|
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
|
{sentry_devenv-1.22.1 → sentry_devenv-1.22.2}/tests/doctor/devenv/checks/failing_check_with_msg.py
RENAMED
|
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
|