Skip to content

Commit 20d5eaa

Browse files
committed
Add options to enable installation of pre-release packages
Signed-off-by: Matthew Ballance <matt.ballance@gmail.com>
1 parent 0fcbd42 commit 20d5eaa

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/ivpm/__main__.py

+3
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ def get_parser():
215215
update_cmd.add_argument("-a", "--anonymous-git", dest="anonymous",
216216
action="store_true",
217217
help="Clones git repositories in 'anonymous' mode")
218+
update_cmd.add_argument("--py-prerls-packages", dest="anonymous",
219+
action="store_true",
220+
help="Installs pre-release Python packages")
218221
# update_cmd.add_argument("-r", "--requirements", dest="requirements")
219222

220223
init_cmd = subparser.add_parser("init",

src/ivpm/cmds/cmd_update.py

+3
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,9 @@ def __call__(self, args):
279279
"install",
280280
"-r",
281281
reqfile]
282+
283+
if args.py_prerls_packages:
284+
cmd.append("--pre")
282285

283286
status = subprocess.run(cmd, env=env)
284287

0 commit comments

Comments
 (0)