|
@@ -111,6 +111,46 @@ def main(context: dict[str, str]) -> int:
|
|
|
# this is needed for devenv <=1.4.0,>1.2.3 to finish syncing and therefore update itself
|
|
|
limactl.install()
|
|
|
|
|
|
+ if not run_procs(
|
|
|
+ repo,
|
|
|
+ reporoot,
|
|
|
+ venv_dir,
|
|
|
+ (
|
|
|
+ # TODO: devenv should provide a job runner (jobs run in parallel, tasks run sequentially)
|
|
|
+ (
|
|
|
+ "python dependencies (1/4)",
|
|
|
+ (
|
|
|
+ # upgrading pip first
|
|
|
+ "pip",
|
|
|
+ "install",
|
|
|
+ "--constraint",
|
|
|
+ "requirements-dev-frozen.txt",
|
|
|
+ "pip",
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ):
|
|
|
+ return 1
|
|
|
+
|
|
|
+ if not run_procs(
|
|
|
+ repo,
|
|
|
+ reporoot,
|
|
|
+ venv_dir,
|
|
|
+ (
|
|
|
+ (
|
|
|
+ "python dependencies (2/4)",
|
|
|
+ (
|
|
|
+ "pip",
|
|
|
+ "uninstall",
|
|
|
+ "-qqy",
|
|
|
+ "djangorestframework-stubs",
|
|
|
+ "django-stubs",
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ):
|
|
|
+ return 1
|
|
|
+
|
|
|
if not run_procs(
|
|
|
repo,
|
|
|
reporoot,
|
|
@@ -119,7 +159,17 @@ def main(context: dict[str, str]) -> int:
|
|
|
("javascript dependencies", ("make", "install-js-dev")),
|
|
|
# could opt out of syncing python if FRONTEND_ONLY but only if repo-local devenv
|
|
|
# and pre-commit were moved to inside devenv and not the sentry venv
|
|
|
- ("python dependencies", ("make", "install-py-dev")),
|
|
|
+ (
|
|
|
+ "python dependencies (3/4)",
|
|
|
+ (
|
|
|
+ "pip",
|
|
|
+ "install",
|
|
|
+ "--constraint",
|
|
|
+ "requirements-dev-frozen.txt",
|
|
|
+ "-r",
|
|
|
+ "requirements-dev-frozen.txt",
|
|
|
+ ),
|
|
|
+ ),
|
|
|
),
|
|
|
):
|
|
|
return 1
|
|
@@ -128,7 +178,10 @@ def main(context: dict[str, str]) -> int:
|
|
|
repo,
|
|
|
reporoot,
|
|
|
venv_dir,
|
|
|
- (("pre-commit dependencies", ("pre-commit", "install", "--install-hooks", "-f")),),
|
|
|
+ (
|
|
|
+ ("python dependencies (4/4)", ("python3", "-m", "tools.fast_editable", "--path", ".")),
|
|
|
+ ("pre-commit dependencies", ("pre-commit", "install", "--install-hooks", "-f")),
|
|
|
+ ),
|
|
|
):
|
|
|
return 1
|
|
|
|