File tree Expand file tree Collapse file tree
.manager/src/pypackit/script/build Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments