@@ -203,6 +203,7 @@ def __init__(self) -> None:
203203 self .deps ["all" ] = set ()
204204 for k in self .deps .values ():
205205 self .deps ["all" ] |= k
206+ self .deps ["install" ] = self .deps ["build" ]
206207
207208 def cmd_build (self ):
208209 wheel_dir = self .args .get ("wheel" , DIST_DIR )
@@ -275,6 +276,8 @@ def cmd_build(self):
275276 pprint (f"Installing in editable mode ({ info_str } )" )
276277 pip_install (self .py , install_args )
277278
279+ cmd_install = cmd_build
280+
278281 def cmd_docs (self ):
279282 full = self .args .get ("full" , False )
280283
@@ -355,7 +358,9 @@ def parse_args(self):
355358 )
356359
357360 # Build command
358- build_parser = subparsers .add_parser ("build" , help = "Build the project" )
361+ build_parser = subparsers .add_parser (
362+ "build" , help = "Build and install the project" , aliases = ["install" ]
363+ )
359364 build_parser .add_argument (
360365 "--wheel" ,
361366 nargs = "?" ,
@@ -445,13 +450,20 @@ def parse_args(self):
445450 subparsers .add_parser ("format" , help = "Format code" )
446451
447452 # All command
448- subparsers .add_parser (
453+ all_parser = subparsers .add_parser (
449454 "all" ,
450455 help = (
451456 "Run all the subcommands. This is handy for checking that your work is "
452457 "ready to be submitted"
453458 ),
454459 )
460+ all_parser .add_argument (
461+ "mod" ,
462+ nargs = "*" ,
463+ help = (
464+ "Name(s) of sub-module(s) to test. If no args are given all are tested"
465+ ),
466+ )
455467
456468 args = parser .parse_args ()
457469 self .args = vars (args )
0 commit comments