snakemake-software-deployment-plugin-container 0.7.4__tar.gz → 0.7.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (11) hide show
  1. {snakemake_software_deployment_plugin_container-0.7.4 → snakemake_software_deployment_plugin_container-0.7.5}/CHANGELOG.md +7 -0
  2. {snakemake_software_deployment_plugin_container-0.7.4 → snakemake_software_deployment_plugin_container-0.7.5}/PKG-INFO +1 -1
  3. {snakemake_software_deployment_plugin_container-0.7.4 → snakemake_software_deployment_plugin_container-0.7.5}/pyproject.toml +1 -1
  4. {snakemake_software_deployment_plugin_container-0.7.4 → snakemake_software_deployment_plugin_container-0.7.5}/src/snakemake_software_deployment_plugin_container/__init__.py +12 -3
  5. {snakemake_software_deployment_plugin_container-0.7.4 → snakemake_software_deployment_plugin_container-0.7.5}/.github/workflows/ci.yml +0 -0
  6. {snakemake_software_deployment_plugin_container-0.7.4 → snakemake_software_deployment_plugin_container-0.7.5}/.github/workflows/conventional-prs.yml +0 -0
  7. {snakemake_software_deployment_plugin_container-0.7.4 → snakemake_software_deployment_plugin_container-0.7.5}/.github/workflows/release-please.yml +0 -0
  8. {snakemake_software_deployment_plugin_container-0.7.4 → snakemake_software_deployment_plugin_container-0.7.5}/.gitignore +0 -0
  9. {snakemake_software_deployment_plugin_container-0.7.4 → snakemake_software_deployment_plugin_container-0.7.5}/LICENSE +0 -0
  10. {snakemake_software_deployment_plugin_container-0.7.4 → snakemake_software_deployment_plugin_container-0.7.5}/README.md +0 -0
  11. {snakemake_software_deployment_plugin_container-0.7.4 → snakemake_software_deployment_plugin_container-0.7.5}/tests/test_plugin.py +0 -0
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.7.5](https://github.com/snakemake/snakemake-software-deployment-plugin-container/compare/v0.7.4...v0.7.5) (2026-09-10)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * specify UDOCKER_DIR with udocker run ([59a66f4](https://github.com/snakemake/snakemake-software-deployment-plugin-container/commit/59a66f4924059ad3b3c84853d8cd7a4173b4bfb6))
9
+
3
10
  ## [0.7.4](https://github.com/snakemake/snakemake-software-deployment-plugin-container/compare/v0.7.3...v0.7.4) (2026-09-10)
4
11
 
5
12
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: snakemake-software-deployment-plugin-container
3
- Version: 0.7.4
3
+ Version: 0.7.5
4
4
  Project-URL: repository, https://github.com/snakemake/snakemake-software-deployment-plugin-container
5
5
  Project-URL: documentation, https://snakemake.github.io/snakemake-plugin-catalog/plugins/software-deployment/container.html
6
6
  Author-email: Ben Carrillo <ben.uzh@pm.me>, Johannes Köster <johannes.koester@uni-due.de>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "snakemake-software-deployment-plugin-container"
3
- version = "0.7.4"
3
+ version = "0.7.5"
4
4
  authors = [
5
5
  { name = "Ben Carrillo", email = "ben.uzh@pm.me" },
6
6
  { name = "Johannes Köster", email = "johannes.koester@uni-due.de" }
@@ -120,7 +120,7 @@ class Env(DeployableEnvBase, EnvBase):
120
120
  if not self.runtime_manager.is_setup:
121
121
  if self.runtime_manager.setup_cmd() is not None:
122
122
  self.run_cmd(self.runtime_manager.setup_cmd(), check=True)
123
- self.runtime_manager.is_setup = True
123
+ self.runtime_manager.__class__.is_setup = True
124
124
 
125
125
  # The decorator ensures that the decorated method is only called once
126
126
  # in case multiple environments of the same kind are created.
@@ -200,7 +200,7 @@ class Env(DeployableEnvBase, EnvBase):
200
200
  self.is_deployable()
201
201
  and self.runtime_manager.deployed_image_path() is not None
202
202
  ):
203
- self.runtime_manager.deployed_image_path.unlink(missing_ok=True)
203
+ self.runtime_manager.deployed_image_path().unlink(missing_ok=True)
204
204
 
205
205
  def is_deployable(self) -> bool:
206
206
  return (
@@ -230,6 +230,9 @@ class RuntimeManager:
230
230
  @abstractmethod
231
231
  def deploy_cmd(self) -> str | None: ...
232
232
 
233
+ def pre_cmd(self) -> str:
234
+ return ""
235
+
233
236
  def pre_subcommand_options(self) -> str:
234
237
  return ""
235
238
 
@@ -270,8 +273,11 @@ class RuntimeManager:
270
273
 
271
274
  def decorate_shellcmd(self, cmd: str) -> str:
272
275
  mountpoints = self.get_mountpoint_args()
276
+ pre_cmd = self.pre_cmd()
277
+ if pre_cmd:
278
+ pre_cmd += " "
273
279
  return (
274
- f"{self.env.settings.runtime}"
280
+ f"{pre_cmd}{self.env.settings.runtime}"
275
281
  f" {self.pre_subcommand_options()}"
276
282
  f" {self.subcommand()}"
277
283
  f" {self.options()}"
@@ -339,6 +345,9 @@ class RuntimeManagerUdocker(RuntimeManager):
339
345
  def setup_cmd(self) -> str | None:
340
346
  return "udocker install"
341
347
 
348
+ def pre_cmd(self) -> str:
349
+ return f"UDOCKER_DIR={self.env.deployment_path}"
350
+
342
351
  def pre_subcommand_options(self) -> str:
343
352
  return "--quiet"
344
353