Skip to content

Commit 9dc2d3e

Browse files
authored
fix: current package as local dependency (#43)
Signed-off-by: ThibaultFy <50656860+ThibaultFy@users.noreply.github.com>
1 parent 537f830 commit 9dc2d3e

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

connectlib/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.21.5"
1+
__version__ = "0.21.6"

connectlib/remote/register/register.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ def _copy_local_packages(path: Path, local_dependencies: List[Path], python_majo
8585
for dependency_path in local_dependencies:
8686
dest_path = path / dependency_path.name
8787
if dependency_path.is_dir():
88-
shutil.copytree(dependency_path, dest_path)
88+
shutil.copytree(
89+
dependency_path, dest_path, ignore=shutil.ignore_patterns("local_worker*", "tmp_connectlib*")
90+
)
8991
elif dependency_path.is_file():
9092
shutil.copy(dependency_path, dest_path)
9193
else:
@@ -282,7 +284,7 @@ def register_algo(
282284
AlgoCategoryError: The given algo category does not match any allowed substra AlgoCategory.
283285
284286
"""
285-
with tempfile.TemporaryDirectory(dir=str(Path.cwd().resolve()), prefix="connectlib_") as operation_dir:
287+
with tempfile.TemporaryDirectory(dir=str(Path.cwd().resolve()), prefix="tmp_connectlib_") as operation_dir:
286288
archive_path, description_path = _create_substra_algo_files(
287289
remote_struct,
288290
dependencies=dependencies,

0 commit comments

Comments
 (0)