@@ -203,6 +203,7 @@ def __init__(self) -> None:
203
203
self .deps ["all" ] = set ()
204
204
for k in self .deps .values ():
205
205
self .deps ["all" ] |= k
206
+ self .deps ["install" ] = self .deps ["build" ]
206
207
207
208
def cmd_build (self ):
208
209
wheel_dir = self .args .get ("wheel" , DIST_DIR )
@@ -275,6 +276,8 @@ def cmd_build(self):
275
276
pprint (f"Installing in editable mode ({ info_str } )" )
276
277
pip_install (self .py , install_args )
277
278
279
+ cmd_install = cmd_build
280
+
278
281
def cmd_docs (self ):
279
282
full = self .args .get ("full" , False )
280
283
@@ -355,7 +358,9 @@ def parse_args(self):
355
358
)
356
359
357
360
# 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
+ )
359
364
build_parser .add_argument (
360
365
"--wheel" ,
361
366
nargs = "?" ,
@@ -445,13 +450,20 @@ def parse_args(self):
445
450
subparsers .add_parser ("format" , help = "Format code" )
446
451
447
452
# All command
448
- subparsers .add_parser (
453
+ all_parser = subparsers .add_parser (
449
454
"all" ,
450
455
help = (
451
456
"Run all the subcommands. This is handy for checking that your work is "
452
457
"ready to be submitted"
453
458
),
454
459
)
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
+ )
455
467
456
468
args = parser .parse_args ()
457
469
self .args = vars (args )
0 commit comments