Skip to content

Commit dec13b4

Browse files
committed
Fix inverted cli arg
1 parent c03f060 commit dec13b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spacy/cli/package.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def package_cli(
3030
version: Optional[str] = Opt(None, "--version", "-v", help="Package version to override meta"),
3131
build: str = Opt("sdist", "--build", "-b", help="Comma-separated formats to build: sdist and/or wheel, or none."),
3232
force: bool = Opt(False, "--force", "-f", "-F", help="Force overwriting existing data in output directory"),
33-
no_require_parent: bool = Opt(False, "--require-parent/--no-require-parent", "-R", "-R", help="Don't include the parent package (e.g. spacy) in the requirements"),
33+
require_parent: bool = Opt(False, "--require-parent/--no-require-parent", "-R", "-R", help="Include the parent package (e.g. spacy) in the requirements"),
3434
# fmt: on
3535
):
3636
"""
@@ -61,7 +61,7 @@ def package_cli(
6161
create_sdist=create_sdist,
6262
create_wheel=create_wheel,
6363
force=force,
64-
no_require_parent=no_require_parent,
64+
require_parent=require_parent,
6565
silent=False,
6666
)
6767

@@ -76,7 +76,7 @@ def package(
7676
create_meta: bool = False,
7777
create_sdist: bool = True,
7878
create_wheel: bool = False,
79-
no_require_parent: bool = False,
79+
require_parent: bool = False,
8080
force: bool = False,
8181
silent: bool = True,
8282
) -> None:
@@ -116,7 +116,7 @@ def package(
116116
if not meta_path.exists() or not meta_path.is_file():
117117
msg.fail("Can't load pipeline meta.json", meta_path, exits=1)
118118
meta = srsly.read_json(meta_path)
119-
meta = get_meta(input_dir, meta, require_parent=not no_require_parent)
119+
meta = get_meta(input_dir, meta, require_parent=require_parent)
120120
if meta["requirements"]:
121121
msg.good(
122122
f"Including {len(meta['requirements'])} package requirement(s) from "

0 commit comments

Comments
 (0)