From 368fefa93d09c8193ad46cc49109f599cf3a1b1c Mon Sep 17 00:00:00 2001 From: Damiano Ricciardi Date: Sat, 12 Jul 2025 19:41:48 +0200 Subject: [PATCH 1/2] Alias build and add test modules to all --- dev.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/dev.py b/dev.py index 7ed720a134..13ec327b07 100644 --- a/dev.py +++ b/dev.py @@ -203,6 +203,7 @@ def __init__(self) -> None: self.deps["all"] = set() for k in self.deps.values(): self.deps["all"] |= k + self.deps["install"] = self.deps["build"] def cmd_build(self): wheel_dir = self.args.get("wheel", DIST_DIR) @@ -275,6 +276,8 @@ def cmd_build(self): pprint(f"Installing in editable mode ({info_str})") pip_install(self.py, install_args) + cmd_install = cmd_build + def cmd_docs(self): full = self.args.get("full", False) @@ -355,7 +358,9 @@ def parse_args(self): ) # Build command - build_parser = subparsers.add_parser("build", help="Build the project") + build_parser = subparsers.add_parser( + "build", help="Build the project", aliases=["install"] + ) build_parser.add_argument( "--wheel", nargs="?", @@ -445,13 +450,20 @@ def parse_args(self): subparsers.add_parser("format", help="Format code") # All command - subparsers.add_parser( + all_parser = subparsers.add_parser( "all", help=( "Run all the subcommands. This is handy for checking that your work is " "ready to be submitted" ), ) + all_parser.add_argument( + "mod", + nargs="*", + help=( + "Name(s) of sub-module(s) to test. If no args are given all are tested" + ), + ) args = parser.parse_args() self.args = vars(args) From 279db571a48c2c381fd817154c556e13d3bf186a Mon Sep 17 00:00:00 2001 From: Damiano <97639432+damusss@users.noreply.github.com> Date: Tue, 15 Jul 2025 10:22:52 +0200 Subject: [PATCH 2/2] update build command message Co-authored-by: Ankith --- dev.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev.py b/dev.py index 13ec327b07..f09192f7be 100644 --- a/dev.py +++ b/dev.py @@ -359,7 +359,7 @@ def parse_args(self): # Build command build_parser = subparsers.add_parser( - "build", help="Build the project", aliases=["install"] + "build", help="Build and install the project", aliases=["install"] ) build_parser.add_argument( "--wheel",