Skip to content
Draft
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
cb07e9d
WIP: Start working on wave commands: Add command dummies.
JulianFlesch Dec 2, 2025
aa40d8b
[automated] Update CHANGELOG.md
nf-core-bot Dec 2, 2025
6b73c3c
added architecture
ningyuxin1999 Dec 2, 2025
5819387
Merge branch 'dev' into feature/3952-create-waveyml
ningyuxin1999 Dec 2, 2025
e689754
wire commands with functions
ningyuxin1999 Dec 2, 2025
c8873db
Merge branch 'feature/3952-create-waveyml' of https://github.com/Juli…
ningyuxin1999 Dec 2, 2025
8328f6f
containers obj
ningyuxin1999 Dec 2, 2025
6fba8ae
Merge branch 'dev' into feature/3952-create-waveyml
ningyuxin1999 Dec 3, 2025
78358ae
Update resolve module_dir. Change to using ValueError
JulianFlesch Dec 3, 2025
4493cad
Add TODOs
JulianFlesch Dec 3, 2025
1915c15
WIP: add container listing
JulianFlesch Dec 3, 2025
109d0b8
Move container constants to global utils.
JulianFlesch Dec 3, 2025
e723d5b
Use constants from global utils. Change list_containers to return lis…
JulianFlesch Dec 3, 2025
f44757b
add dry-run to the containers create, fixed the uitls import and modu…
ningyuxin1999 Dec 3, 2025
7c369a4
Add contextmanager that extends set_wd but changes into a tempdir
JulianFlesch Dec 4, 2025
81ddaf8
Add extracting container string from a module main.nf
JulianFlesch Dec 4, 2025
882ed67
Rename method to match field name
JulianFlesch Dec 4, 2025
aa9fa01
Print container info as richt table
JulianFlesch Dec 4, 2025
3e119a4
Merge branch 'feature/3952-create-waveyml' of github.com:JulianFlesch…
JulianFlesch Dec 4, 2025
11228d4
Move calling wave to ModuleContainers class. Finish create method and…
JulianFlesch Dec 4, 2025
c08a6dd
Fix output encoding
JulianFlesch Dec 4, 2025
c6e8360
Remove comment
JulianFlesch Dec 4, 2025
4317977
Add TODOs
JulianFlesch Dec 4, 2025
e1d7f7d
buildid and scanid saved to the dict
ningyuxin1999 Dec 5, 2025
6cd3380
Merge branch 'feature/3952-create-waveyml' of github.com:JulianFlesch…
JulianFlesch Dec 5, 2025
180287e
meta yaml
ningyuxin1999 Dec 5, 2025
d6e744f
Update calling wave command to get buildId/scanId. Only add to outpu …
JulianFlesch Dec 5, 2025
ad5463c
Simplify create method
JulianFlesch Dec 5, 2025
e0edf97
Refactor to reuse key constants.
JulianFlesch Dec 5, 2025
141c2b8
Add conda-lock information to containers dict
JulianFlesch Dec 5, 2025
972cd5e
Fix space in url
JulianFlesch Dec 5, 2025
78bd273
Implement conda lock functions. Do not fail in containers_from_meta i…
JulianFlesch Dec 5, 2025
ad640fa
Simplify class
JulianFlesch Dec 5, 2025
9b821e7
Implement updating meta - WIP: sorting
JulianFlesch Dec 5, 2025
f117fca
Fix ModuleContainers initialisation
JulianFlesch Dec 5, 2025
d0f42cc
Fix expected meta.yml path
JulianFlesch Dec 5, 2025
3ccd190
Update containers in meta.yml - WIP: sorting
JulianFlesch Dec 5, 2025
cf1dcfa
update container from meta method
JulianFlesch Dec 5, 2025
76c64f2
Review: Rename conda lock methods
JulianFlesch Dec 8, 2025
6a69fb2
Fix typo
JulianFlesch Dec 8, 2025
ff23c7d
Update nf_core/modules/containers.py
JulianFlesch Dec 8, 2025
b7e5102
Review command: Remove dry_run flag for module container creation#
JulianFlesch Dec 8, 2025
2fa3538
remove unnecessary string casting
JulianFlesch Dec 8, 2025
af97d90
Review comment: Remove extra loop for conda-lock files
JulianFlesch Dec 8, 2025
77e263e
Merge
JulianFlesch Dec 8, 2025
8f3bfb1
Make wave container requests run concurrently
JulianFlesch Dec 8, 2025
3221030
fix gathering concurrent results
JulianFlesch Dec 8, 2025
6aca629
fix building conda section
JulianFlesch Dec 8, 2025
69b6424
Remove threads option.
JulianFlesch Dec 8, 2025
8aba37c
Merge branch 'dev' into feature/3952-create-waveyml
JulianFlesch Dec 9, 2025
5a29fc7
fix variable name typo
JulianFlesch Dec 15, 2025
0088b27
Add wave inspect request to obtain https-urls for singularity images
JulianFlesch Dec 15, 2025
27f135c
Only attempt retrieving image https-url if the image build is being a…
JulianFlesch Dec 15, 2025
71bfcf5
change to reading from uri from specific layer metadata in manifest i…
JulianFlesch Dec 15, 2025
aa0b297
Remove unused constants
JulianFlesch Dec 15, 2025
c849ac1
simplify extracting uri
JulianFlesch Dec 15, 2025
95a12ef
Change to building url as suggested by ewels in https://github.com/nf…
JulianFlesch Dec 15, 2025
59f7537
Remove todo
JulianFlesch Dec 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add contextmanager that extends set_wd but changes into a tempdir
  • Loading branch information
JulianFlesch committed Dec 4, 2025
commit 7c369a420ad40dea0fe759339d4d5895067a6688
12 changes: 12 additions & 0 deletions nf_core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import shlex
import subprocess
import sys
import tempfile
import time
from collections.abc import Callable, Generator
from contextlib import contextmanager
Expand Down Expand Up @@ -1646,6 +1647,17 @@ def set_wd(path: Path) -> Generator[None, None, None]:
os.chdir(start_wd)


@contextmanager
def set_wd_tempdir() -> Generator[None, None, None]:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function is for sure created somewhere else already.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, In pipeline downloads! But that version throws Download-specific errors ...
The plan was move it out of the utils.py over there into the general utils.
But now we don't use it at all anymore ...

Should we remove it again?

"""
Context manager to provide and change into a tempdir and ensure its removal and return to the
original_dir upon exceptions.
"""
with tempfile.TemporaryDirectory() as tmp:
with set_wd(Path(tmp)):
yield


def get_wf_files(wf_path: Path):
"""Return a list of all files in a directory (ignores .gitigore files)"""

Expand Down