sentry-devenv 1.21.0__tar.gz → 1.22.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 (84) hide show
  1. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/PKG-INFO +65 -9
  2. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/README.md +64 -8
  3. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/lib/colima.py +3 -0
  4. sentry_devenv-1.22.1/devenv/lib/uv.py +56 -0
  5. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/update.py +1 -1
  6. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/pyproject.toml +1 -1
  7. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/sentry_devenv.egg-info/PKG-INFO +65 -9
  8. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/sentry_devenv.egg-info/SOURCES.txt +1 -0
  9. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/lib/test_venv.py +4 -4
  10. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/ci/integration/repo/devenv/sync.py +0 -0
  11. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/__init__.py +0 -0
  12. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/__main__.py +0 -0
  13. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/bootstrap.py +0 -0
  14. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/checks/__init__.py +0 -0
  15. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/checks/dockerConfig.py +0 -0
  16. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/checks/dockerDesktop.py +0 -0
  17. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/checks/limaDns.py +0 -0
  18. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/checks/test.py +0 -0
  19. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/colima.py +0 -0
  20. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/constants.py +0 -0
  21. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/doctor.py +0 -0
  22. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/fetch.py +0 -0
  23. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/lib/__init__.py +0 -0
  24. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/lib/archive.py +0 -0
  25. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/lib/brew.py +0 -0
  26. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/lib/config.py +0 -0
  27. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/lib/context.py +0 -0
  28. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/lib/direnv.py +0 -0
  29. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/lib/docker.py +0 -0
  30. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/lib/fs.py +0 -0
  31. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/lib/gcloud.py +0 -0
  32. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/lib/github.py +0 -0
  33. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/lib/limactl.py +0 -0
  34. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/lib/modules.py +0 -0
  35. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/lib/node.py +0 -0
  36. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/lib/proc.py +0 -0
  37. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/lib/repository.py +0 -0
  38. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/lib/rosetta.py +0 -0
  39. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/lib/tenv.py +0 -0
  40. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/lib/venv.py +0 -0
  41. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/lib_check/__init__.py +0 -0
  42. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/lib_check/brew.py +0 -0
  43. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/lib_check/types.py +0 -0
  44. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/main.py +0 -0
  45. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/pin_gha.py +0 -0
  46. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/py.typed +0 -0
  47. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/pythons.py +0 -0
  48. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/devenv/sync.py +0 -0
  49. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/sentry_devenv.egg-info/dependency_links.txt +0 -0
  50. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/sentry_devenv.egg-info/entry_points.txt +0 -0
  51. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/sentry_devenv.egg-info/requires.txt +0 -0
  52. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/sentry_devenv.egg-info/top_level.txt +0 -0
  53. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/setup.cfg +0 -0
  54. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/__init__.py +0 -0
  55. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/checks/__init__.py +0 -0
  56. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/checks/test_dockerConfig.py +0 -0
  57. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/conftest.py +0 -0
  58. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/doctor/__init__.py +0 -0
  59. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/doctor/devenv/checks/bad_check.py +0 -0
  60. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/doctor/devenv/checks/bad_fix.py +0 -0
  61. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/doctor/devenv/checks/broken_check.py +0 -0
  62. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/doctor/devenv/checks/broken_fix.py +0 -0
  63. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/doctor/devenv/checks/failing_check.py +0 -0
  64. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/doctor/devenv/checks/failing_check_with_msg.py +0 -0
  65. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/doctor/devenv/checks/no_check.py +0 -0
  66. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/doctor/devenv/checks/no_name.py +0 -0
  67. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/doctor/devenv/checks/no_tags.py +0 -0
  68. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/doctor/devenv/checks/passing_check.py +0 -0
  69. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/doctor/test_attempt_fix.py +0 -0
  70. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/doctor/test_filter_failing_checks.py +0 -0
  71. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/doctor/test_load_checks.py +0 -0
  72. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/doctor/test_prompt_for_fix.py +0 -0
  73. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/doctor/test_run_checks.py +0 -0
  74. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/lib/test_archive.py +0 -0
  75. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/lib/test_brew.py +0 -0
  76. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/lib/test_direnv.py +0 -0
  77. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/lib/test_fs.py +0 -0
  78. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/lib/test_github.py +0 -0
  79. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/lib/test_proc.py +0 -0
  80. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/lib/test_repository.py +0 -0
  81. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/test_main.py +0 -0
  82. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/test_pythons.py +0 -0
  83. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/test_sync.py +0 -0
  84. {sentry_devenv-1.21.0 → sentry_devenv-1.22.1}/tests/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sentry_devenv
3
- Version: 1.21.0
3
+ Version: 1.22.1
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
@@ -166,6 +166,62 @@ export VIRTUAL_ENV="${PWD}/.venv"
166
166
  PATH_add "${PWD}/.venv/bin"
167
167
  ```
168
168
 
169
+ if using uv:
170
+
171
+ `[reporoot]/devenv/sync.py`
172
+ ```py
173
+ from devenv.lib import config, uv
174
+
175
+ def main(context: dict[str, str]) -> int:
176
+ reporoot = context["reporoot"]
177
+ cfg = config.get_repo(reporoot)
178
+
179
+ uv.install(
180
+ cfg["uv"]["version"],
181
+ cfg["uv"][constants.SYSTEM_MACHINE],
182
+ cfg["uv"][f"{constants.SYSTEM_MACHINE}_sha256"],
183
+ reporoot,
184
+ )
185
+
186
+ # reporoot/.venv is the default venv location
187
+ print(f"syncing .venv ...")
188
+ proc.run(("uv", "sync", "--frozen", "--quiet"))
189
+
190
+ return 0
191
+ ```
192
+
193
+ `[reporoot]/devenv/config.ini`
194
+ ```ini
195
+ [devenv]
196
+ minimum_version = 1.22.1
197
+
198
+ [uv]
199
+ darwin_arm64 = https://github.com/astral-sh/uv/releases/download/0.7.21/uv-aarch64-apple-darwin.tar.gz
200
+ darwin_arm64_sha256 = c73af7a4e0bcea9b5b593a0c7e5c025ee78d8be3f7cd60bfeadc8614a16c92ef
201
+ darwin_x86_64 = https://github.com/astral-sh/uv/releases/download/0.7.21/uv-x86_64-apple-darwin.tar.gz
202
+ darwin_x86_64_sha256 = f8a9b4f4a80a44653344d36b53e148134176e8f7cc99f8e823676a57c884595e
203
+ linux_arm64 = https://github.com/astral-sh/uv/releases/download/0.7.21/uv-aarch64-unknown-linux-gnu.tar.gz
204
+ linux_arm64_sha256 = 1dae18211605b9d00767d913da5108aea50200a88372bf8a2e1f56abdbe509f0
205
+ linux_x86_64 = https://github.com/astral-sh/uv/releases/download/0.7.21/uv-x86_64-unknown-linux-gnu.tar.gz
206
+ linux_x86_64_sha256 = ca3e8898adfce5fcc891d393a079013fa4bd0d9636cef11aded8a7485bcba312
207
+ # used for autoupdate
208
+ version = 0.7.21
209
+ ```
210
+
211
+ `[reporoot]/.python-version`
212
+ ```
213
+ 3.13.3
214
+ ```
215
+
216
+ `[reporoot]/pyproject.toml`
217
+ ```
218
+ [project]
219
+ name = "foo"
220
+ version = "0.0.0"
221
+ ```
222
+
223
+ or classic pip:
224
+
169
225
  `[reporoot]/devenv/sync.py`
170
226
  ```py
171
227
  from devenv.lib import config, venv
@@ -194,13 +250,13 @@ editable =
194
250
  .
195
251
 
196
252
  [python3.12.3]
197
- darwin_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-apple-darwin-install_only.tar.gz
253
+ darwin_x86_64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-apple-darwin-install_only.tar.gz
198
254
  darwin_x86_64_sha256 = c37a22fca8f57d4471e3708de6d13097668c5f160067f264bb2b18f524c890c8
199
- darwin_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-apple-darwin-install_only.tar.gz
255
+ darwin_arm64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-apple-darwin-install_only.tar.gz
200
256
  darwin_arm64_sha256 = ccc40e5af329ef2af81350db2a88bbd6c17b56676e82d62048c15d548401519e
201
- linux_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-unknown-linux-gnu-install_only.tar.gz
257
+ linux_x86_64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-unknown-linux-gnu-install_only.tar.gz
202
258
  linux_x86_64_sha256 = a73ba777b5d55ca89edef709e6b8521e3f3d4289581f174c8699adfb608d09d6
203
- linux_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-unknown-linux-gnu-install_only.tar.gz
259
+ linux_arm64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-unknown-linux-gnu-install_only.tar.gz
204
260
  linux_arm64_sha256 = ec8126de97945e629cca9aedc80a29c4ae2992c9d69f2655e27ae73906ba187d
205
261
  ```
206
262
 
@@ -247,13 +303,13 @@ python = 3.12.3
247
303
  requirements = inhouse-tool/requirements-dev.txt
248
304
 
249
305
  [python3.12.3]
250
- darwin_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-apple-darwin-install_only.tar.gz
306
+ darwin_x86_64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-apple-darwin-install_only.tar.gz
251
307
  darwin_x86_64_sha256 = c37a22fca8f57d4471e3708de6d13097668c5f160067f264bb2b18f524c890c8
252
- darwin_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-apple-darwin-install_only.tar.gz
308
+ darwin_arm64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-apple-darwin-install_only.tar.gz
253
309
  darwin_arm64_sha256 = ccc40e5af329ef2af81350db2a88bbd6c17b56676e82d62048c15d548401519e
254
- linux_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-unknown-linux-gnu-install_only.tar.gz
310
+ linux_x86_64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-unknown-linux-gnu-install_only.tar.gz
255
311
  linux_x86_64_sha256 = a73ba777b5d55ca89edef709e6b8521e3f3d4289581f174c8699adfb608d09d6
256
- linux_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-unknown-linux-gnu-install_only.tar.gz
312
+ linux_arm64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-unknown-linux-gnu-install_only.tar.gz
257
313
  linux_arm64_sha256 = ec8126de97945e629cca9aedc80a29c4ae2992c9d69f2655e27ae73906ba187d
258
314
  ```
259
315
 
@@ -153,6 +153,62 @@ export VIRTUAL_ENV="${PWD}/.venv"
153
153
  PATH_add "${PWD}/.venv/bin"
154
154
  ```
155
155
 
156
+ if using uv:
157
+
158
+ `[reporoot]/devenv/sync.py`
159
+ ```py
160
+ from devenv.lib import config, uv
161
+
162
+ def main(context: dict[str, str]) -> int:
163
+ reporoot = context["reporoot"]
164
+ cfg = config.get_repo(reporoot)
165
+
166
+ uv.install(
167
+ cfg["uv"]["version"],
168
+ cfg["uv"][constants.SYSTEM_MACHINE],
169
+ cfg["uv"][f"{constants.SYSTEM_MACHINE}_sha256"],
170
+ reporoot,
171
+ )
172
+
173
+ # reporoot/.venv is the default venv location
174
+ print(f"syncing .venv ...")
175
+ proc.run(("uv", "sync", "--frozen", "--quiet"))
176
+
177
+ return 0
178
+ ```
179
+
180
+ `[reporoot]/devenv/config.ini`
181
+ ```ini
182
+ [devenv]
183
+ minimum_version = 1.22.1
184
+
185
+ [uv]
186
+ darwin_arm64 = https://github.com/astral-sh/uv/releases/download/0.7.21/uv-aarch64-apple-darwin.tar.gz
187
+ darwin_arm64_sha256 = c73af7a4e0bcea9b5b593a0c7e5c025ee78d8be3f7cd60bfeadc8614a16c92ef
188
+ darwin_x86_64 = https://github.com/astral-sh/uv/releases/download/0.7.21/uv-x86_64-apple-darwin.tar.gz
189
+ darwin_x86_64_sha256 = f8a9b4f4a80a44653344d36b53e148134176e8f7cc99f8e823676a57c884595e
190
+ linux_arm64 = https://github.com/astral-sh/uv/releases/download/0.7.21/uv-aarch64-unknown-linux-gnu.tar.gz
191
+ linux_arm64_sha256 = 1dae18211605b9d00767d913da5108aea50200a88372bf8a2e1f56abdbe509f0
192
+ linux_x86_64 = https://github.com/astral-sh/uv/releases/download/0.7.21/uv-x86_64-unknown-linux-gnu.tar.gz
193
+ linux_x86_64_sha256 = ca3e8898adfce5fcc891d393a079013fa4bd0d9636cef11aded8a7485bcba312
194
+ # used for autoupdate
195
+ version = 0.7.21
196
+ ```
197
+
198
+ `[reporoot]/.python-version`
199
+ ```
200
+ 3.13.3
201
+ ```
202
+
203
+ `[reporoot]/pyproject.toml`
204
+ ```
205
+ [project]
206
+ name = "foo"
207
+ version = "0.0.0"
208
+ ```
209
+
210
+ or classic pip:
211
+
156
212
  `[reporoot]/devenv/sync.py`
157
213
  ```py
158
214
  from devenv.lib import config, venv
@@ -181,13 +237,13 @@ editable =
181
237
  .
182
238
 
183
239
  [python3.12.3]
184
- darwin_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-apple-darwin-install_only.tar.gz
240
+ darwin_x86_64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-apple-darwin-install_only.tar.gz
185
241
  darwin_x86_64_sha256 = c37a22fca8f57d4471e3708de6d13097668c5f160067f264bb2b18f524c890c8
186
- darwin_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-apple-darwin-install_only.tar.gz
242
+ darwin_arm64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-apple-darwin-install_only.tar.gz
187
243
  darwin_arm64_sha256 = ccc40e5af329ef2af81350db2a88bbd6c17b56676e82d62048c15d548401519e
188
- linux_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-unknown-linux-gnu-install_only.tar.gz
244
+ linux_x86_64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-unknown-linux-gnu-install_only.tar.gz
189
245
  linux_x86_64_sha256 = a73ba777b5d55ca89edef709e6b8521e3f3d4289581f174c8699adfb608d09d6
190
- linux_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-unknown-linux-gnu-install_only.tar.gz
246
+ linux_arm64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-unknown-linux-gnu-install_only.tar.gz
191
247
  linux_arm64_sha256 = ec8126de97945e629cca9aedc80a29c4ae2992c9d69f2655e27ae73906ba187d
192
248
  ```
193
249
 
@@ -234,13 +290,13 @@ python = 3.12.3
234
290
  requirements = inhouse-tool/requirements-dev.txt
235
291
 
236
292
  [python3.12.3]
237
- darwin_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-apple-darwin-install_only.tar.gz
293
+ darwin_x86_64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-apple-darwin-install_only.tar.gz
238
294
  darwin_x86_64_sha256 = c37a22fca8f57d4471e3708de6d13097668c5f160067f264bb2b18f524c890c8
239
- darwin_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-apple-darwin-install_only.tar.gz
295
+ darwin_arm64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-apple-darwin-install_only.tar.gz
240
296
  darwin_arm64_sha256 = ccc40e5af329ef2af81350db2a88bbd6c17b56676e82d62048c15d548401519e
241
- linux_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-unknown-linux-gnu-install_only.tar.gz
297
+ linux_x86_64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-unknown-linux-gnu-install_only.tar.gz
242
298
  linux_x86_64_sha256 = a73ba777b5d55ca89edef709e6b8521e3f3d4289581f174c8699adfb608d09d6
243
- linux_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-unknown-linux-gnu-install_only.tar.gz
299
+ linux_arm64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-unknown-linux-gnu-install_only.tar.gz
244
300
  linux_arm64_sha256 = ec8126de97945e629cca9aedc80a29c4ae2992c9d69f2655e27ae73906ba187d
245
301
  ```
246
302
 
@@ -174,6 +174,9 @@ def start(restart: bool = False) -> ColimaStatus:
174
174
  if platform.machine() == "arm64":
175
175
  args = [*args, "--vm-type=vz", "--vz-rosetta", "--mount-type=virtiofs"]
176
176
 
177
+ # removing all docker contexts to ensure only colima context is created
178
+ shutil.rmtree(f"{home}/.docker/contexts", ignore_errors=True)
179
+
177
180
  proc.run(
178
181
  (
179
182
  # we share the "default" machine across repositories
@@ -0,0 +1,56 @@
1
+ from __future__ import annotations
2
+
3
+ import os
4
+ import shutil
5
+ import tempfile
6
+
7
+ from devenv.lib import archive
8
+ from devenv.lib import fs
9
+ from devenv.lib import proc
10
+
11
+
12
+ def _install(url: str, sha256: str, into: str) -> None:
13
+ with tempfile.TemporaryDirectory(dir=into) as tmpd:
14
+ archive_file = archive.download(url, sha256, dest=f"{tmpd}/download")
15
+ archive.unpack(archive_file, tmpd, perform_strip1=True)
16
+
17
+ # the archive was atomically placed into tmpd so
18
+ # these are on the same fs and can be atomically moved too
19
+ os.replace(f"{tmpd}/uv", f"{into}/uv")
20
+ os.replace(f"{tmpd}/uvx", f"{into}/uvx")
21
+
22
+
23
+ def uninstall(binroot: str) -> None:
24
+ for fp in (f"{binroot}/uv", f"{binroot}/uvx"):
25
+ try:
26
+ os.remove(fp)
27
+ except FileNotFoundError:
28
+ # it's better to do this than to guard with
29
+ # os.path.exists(fp) because if it's an invalid or circular
30
+ # symlink the result'll be False!
31
+ pass
32
+
33
+
34
+ def _version(binpath: str) -> str:
35
+ stdout = proc.run((binpath, "--version"), stdout=True)
36
+ # uv 0.7.21 (77c771c7f 2025-07-14)
37
+ return stdout.split()[1]
38
+
39
+
40
+ def install(version: str, url: str, sha256: str, reporoot: str) -> None:
41
+ binroot = fs.ensure_binroot(reporoot)
42
+ binpath = f"{binroot}/uv"
43
+
44
+ if shutil.which("uv", path=binroot) == binpath:
45
+ installed_version = _version(binpath)
46
+ if version == installed_version:
47
+ return
48
+ print(f"installed uv {installed_version} is unexpected!")
49
+
50
+ print(f"installing uv {version}...")
51
+ uninstall(binroot)
52
+ _install(url, sha256, binroot)
53
+
54
+ installed_version = _version(binpath)
55
+ if version != installed_version:
56
+ raise SystemExit("Failed to install uv {version}!")
@@ -55,7 +55,7 @@ Updating global tools (at {constants.root}/bin).
55
55
  if args.version is None:
56
56
  version = "sentry-devenv"
57
57
  else:
58
- version = "sentry-devenv=={args.version}"
58
+ version = f"sentry-devenv=={args.version}"
59
59
 
60
60
  proc.run(
61
61
  (f"{constants.root}/venv/bin/pip", "install", "-U", version),
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "sentry_devenv"
7
- version = "1.21.0"
7
+ version = "1.22.1"
8
8
  authors = [
9
9
  { name="Joshua Li", email="joshua.li@sentry.io" },
10
10
  { name="Ian Woodard", email="ian.woodard@sentry.io" },
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sentry_devenv
3
- Version: 1.21.0
3
+ Version: 1.22.1
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
@@ -166,6 +166,62 @@ export VIRTUAL_ENV="${PWD}/.venv"
166
166
  PATH_add "${PWD}/.venv/bin"
167
167
  ```
168
168
 
169
+ if using uv:
170
+
171
+ `[reporoot]/devenv/sync.py`
172
+ ```py
173
+ from devenv.lib import config, uv
174
+
175
+ def main(context: dict[str, str]) -> int:
176
+ reporoot = context["reporoot"]
177
+ cfg = config.get_repo(reporoot)
178
+
179
+ uv.install(
180
+ cfg["uv"]["version"],
181
+ cfg["uv"][constants.SYSTEM_MACHINE],
182
+ cfg["uv"][f"{constants.SYSTEM_MACHINE}_sha256"],
183
+ reporoot,
184
+ )
185
+
186
+ # reporoot/.venv is the default venv location
187
+ print(f"syncing .venv ...")
188
+ proc.run(("uv", "sync", "--frozen", "--quiet"))
189
+
190
+ return 0
191
+ ```
192
+
193
+ `[reporoot]/devenv/config.ini`
194
+ ```ini
195
+ [devenv]
196
+ minimum_version = 1.22.1
197
+
198
+ [uv]
199
+ darwin_arm64 = https://github.com/astral-sh/uv/releases/download/0.7.21/uv-aarch64-apple-darwin.tar.gz
200
+ darwin_arm64_sha256 = c73af7a4e0bcea9b5b593a0c7e5c025ee78d8be3f7cd60bfeadc8614a16c92ef
201
+ darwin_x86_64 = https://github.com/astral-sh/uv/releases/download/0.7.21/uv-x86_64-apple-darwin.tar.gz
202
+ darwin_x86_64_sha256 = f8a9b4f4a80a44653344d36b53e148134176e8f7cc99f8e823676a57c884595e
203
+ linux_arm64 = https://github.com/astral-sh/uv/releases/download/0.7.21/uv-aarch64-unknown-linux-gnu.tar.gz
204
+ linux_arm64_sha256 = 1dae18211605b9d00767d913da5108aea50200a88372bf8a2e1f56abdbe509f0
205
+ linux_x86_64 = https://github.com/astral-sh/uv/releases/download/0.7.21/uv-x86_64-unknown-linux-gnu.tar.gz
206
+ linux_x86_64_sha256 = ca3e8898adfce5fcc891d393a079013fa4bd0d9636cef11aded8a7485bcba312
207
+ # used for autoupdate
208
+ version = 0.7.21
209
+ ```
210
+
211
+ `[reporoot]/.python-version`
212
+ ```
213
+ 3.13.3
214
+ ```
215
+
216
+ `[reporoot]/pyproject.toml`
217
+ ```
218
+ [project]
219
+ name = "foo"
220
+ version = "0.0.0"
221
+ ```
222
+
223
+ or classic pip:
224
+
169
225
  `[reporoot]/devenv/sync.py`
170
226
  ```py
171
227
  from devenv.lib import config, venv
@@ -194,13 +250,13 @@ editable =
194
250
  .
195
251
 
196
252
  [python3.12.3]
197
- darwin_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-apple-darwin-install_only.tar.gz
253
+ darwin_x86_64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-apple-darwin-install_only.tar.gz
198
254
  darwin_x86_64_sha256 = c37a22fca8f57d4471e3708de6d13097668c5f160067f264bb2b18f524c890c8
199
- darwin_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-apple-darwin-install_only.tar.gz
255
+ darwin_arm64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-apple-darwin-install_only.tar.gz
200
256
  darwin_arm64_sha256 = ccc40e5af329ef2af81350db2a88bbd6c17b56676e82d62048c15d548401519e
201
- linux_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-unknown-linux-gnu-install_only.tar.gz
257
+ linux_x86_64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-unknown-linux-gnu-install_only.tar.gz
202
258
  linux_x86_64_sha256 = a73ba777b5d55ca89edef709e6b8521e3f3d4289581f174c8699adfb608d09d6
203
- linux_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-unknown-linux-gnu-install_only.tar.gz
259
+ linux_arm64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-unknown-linux-gnu-install_only.tar.gz
204
260
  linux_arm64_sha256 = ec8126de97945e629cca9aedc80a29c4ae2992c9d69f2655e27ae73906ba187d
205
261
  ```
206
262
 
@@ -247,13 +303,13 @@ python = 3.12.3
247
303
  requirements = inhouse-tool/requirements-dev.txt
248
304
 
249
305
  [python3.12.3]
250
- darwin_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-apple-darwin-install_only.tar.gz
306
+ darwin_x86_64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-apple-darwin-install_only.tar.gz
251
307
  darwin_x86_64_sha256 = c37a22fca8f57d4471e3708de6d13097668c5f160067f264bb2b18f524c890c8
252
- darwin_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-apple-darwin-install_only.tar.gz
308
+ darwin_arm64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-apple-darwin-install_only.tar.gz
253
309
  darwin_arm64_sha256 = ccc40e5af329ef2af81350db2a88bbd6c17b56676e82d62048c15d548401519e
254
- linux_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-unknown-linux-gnu-install_only.tar.gz
310
+ linux_x86_64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-unknown-linux-gnu-install_only.tar.gz
255
311
  linux_x86_64_sha256 = a73ba777b5d55ca89edef709e6b8521e3f3d4289581f174c8699adfb608d09d6
256
- linux_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-unknown-linux-gnu-install_only.tar.gz
312
+ linux_arm64 = https://github.com/astral-sh/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-unknown-linux-gnu-install_only.tar.gz
257
313
  linux_arm64_sha256 = ec8126de97945e629cca9aedc80a29c4ae2992c9d69f2655e27ae73906ba187d
258
314
  ```
259
315
 
@@ -38,6 +38,7 @@ devenv/lib/proc.py
38
38
  devenv/lib/repository.py
39
39
  devenv/lib/rosetta.py
40
40
  devenv/lib/tenv.py
41
+ devenv/lib/uv.py
41
42
  devenv/lib/venv.py
42
43
  devenv/lib_check/__init__.py
43
44
  devenv/lib_check/brew.py
@@ -23,13 +23,13 @@ bins =
23
23
  sentry-kube-pop
24
24
 
25
25
  [python3.11.6]
26
- darwin_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.11.6+20231002-x86_64-apple-darwin-install_only.tar.gz
26
+ darwin_x86_64 = https://github.com/astral-sh/python-build-standalone/releases/download/20231002/cpython-3.11.6+20231002-x86_64-apple-darwin-install_only.tar.gz
27
27
  darwin_x86_64_sha256 = 178cb1716c2abc25cb56ae915096c1a083e60abeba57af001996e8bc6ce1a371
28
- darwin_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.11.6+20231002-aarch64-apple-darwin-install_only.tar.gz
28
+ darwin_arm64 = https://github.com/astral-sh/python-build-standalone/releases/download/20231002/cpython-3.11.6+20231002-aarch64-apple-darwin-install_only.tar.gz
29
29
  darwin_arm64_sha256 = 916c35125b5d8323a21526d7a9154ca626453f63d0878e95b9f613a95006c990
30
- linux_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.11.6+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz
30
+ linux_x86_64 = https://github.com/astral-sh/python-build-standalone/releases/download/20231002/cpython-3.11.6+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz
31
31
  linux_x86_64_sha256 = ee37a7eae6e80148c7e3abc56e48a397c1664f044920463ad0df0fc706eacea8
32
- linux_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.11.6+20231002-aarch64-unknown-linux-gnu-install_only.tar.gz
32
+ linux_arm64 = https://github.com/astral-sh/python-build-standalone/releases/download/20231002/cpython-3.11.6+20231002-aarch64-unknown-linux-gnu-install_only.tar.gz
33
33
  linux_arm64_sha256 = 3e26a672df17708c4dc928475a5974c3fb3a34a9b45c65fb4bd1e50504cc84ec
34
34
  """
35
35
 
File without changes