You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(copy): add exclude_from parameter for rsync-based copy in Singularity builds (#526)
* feat(copy): add exclude_from parameter for rsync-based copy in Singularity builds
* refactor(copy): rename exclude_from to _exclude_from and reorder docstring alphabetically
Renamed the parameter `exclude_from` to `_exclude_from` to follow HPCCM
convention that container framework-specific options begin with an underscore
(e.g., `_chown`, `_mkdir`, `_post`).
Also reordered the parameter documentation block in `copy.py` to maintain
alphabetical order within the class docstring for consistency.
* chore(copy): remove unnecessary info log for rsync exclude_from
Removes the redundant `logging.info()` statement in the rsync exclusion
branch of the copy primitive to keep logging output minimal and consistent
with other primitives.
* test(copy): improve _exclude_from tests
Refactors the _exclude_from tests to use assertEqual() with full expected
recipe strings instead of multiple substring checks. This aligns the test
style with other HPCCM copy primitive tests.
Note:
When `_exclude_from` is used, an empty %files section is still emitted after
the rsync-based %setup block. This is intentional to preserve compatibility
with the existing copy control flow. The extra section is harmless and may
be removed in a future cleanup.
* refactor(copy): simplify _exclude_from initialization with default []
0 commit comments