Skip to content

Commit

Permalink
removed references to [test] extras from eachdist script (#2578)
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyadeepm04 authored Jun 5, 2024
1 parent 95fea2b commit e306aba
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions scripts/eachdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ def setup_instparser(instparser):

setup_instparser(instparser)
instparser.add_argument("--editable", "-e", action="store_true")
instparser.add_argument("--with-test-deps", action="store_true")
instparser.add_argument("--with-dev-deps", action="store_true")
instparser.add_argument("--eager-upgrades", action="store_true")

Expand All @@ -211,7 +210,6 @@ def setup_instparser(instparser):
editable=True,
with_dev_deps=True,
eager_upgrades=True,
with_test_deps=True,
)

lintparser = subparsers.add_parser(
Expand Down Expand Up @@ -467,16 +465,7 @@ def install_args(args):
check=True,
)

allfmt = "-e 'file://{}" if args.editable else "'file://{}"
# packages should provide an extra_requires that is named
# 'test', to denote test dependencies.
extras = []
if args.with_test_deps:
extras.append("test")
if extras:
allfmt += f"[{','.join(extras)}]"
# note the trailing single quote, to close the quote opened above.
allfmt += "'"
allfmt = "-e 'file://{}'" if args.editable else "'file://{}'"

execute_args(
parse_subargs(
Expand All @@ -489,6 +478,7 @@ def install_args(args):
),
)
)

if args.with_dev_deps:
rootpath = find_projectroot()
runsubprocess(
Expand Down

0 comments on commit e306aba

Please sign in to comment.