Skip to content

Commit ad67d0d

Browse files
committed
Update conda.py
1 parent f22ca7b commit ad67d0d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • .manager/src/pypackit/script/build

.manager/src/pypackit/script/build/conda.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def run(
3333
pkg: str,
3434
metadata: dict,
3535
output: str | Path,
36+
repo: str | Path = "./",
3637
recipe: Literal["global", "local"] = "local",
3738
args: list[str] | None = None,
3839
) -> Path:
@@ -95,7 +96,7 @@ def update_channel_priority(requirement: str) -> None:
9596
output_dir = Path(output).resolve()
9697
output_dir.mkdir(parents=True, exist_ok=True)
9798
# Export package version
98-
pkg_version = _script_version.run()
99+
pkg_version = _script_version.run(metadata=metadata, repo=repo)
99100
os.environ["PKG_FULL_VERSION"] = pkg_version
100101
# Build command
101102
build_command = (
@@ -139,6 +140,7 @@ def run_cli(args: argparse.Namespace) -> int:
139140
local_channel_path = run(
140141
pkg=args.pkg,
141142
metadata=args.metadata,
143+
repo=args.repo,
142144
output=args.output,
143145
recipe=args.recipe,
144146
args=args.args,

0 commit comments

Comments
 (0)