Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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="?",
Expand Down Expand Up @@ -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)
Expand Down
Loading