snakemake-interface-software-deployment-plugins 0.19.1__tar.gz → 0.20.0__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 (17) hide show
  1. {snakemake_interface_software_deployment_plugins-0.19.1 → snakemake_interface_software_deployment_plugins-0.20.0}/CHANGELOG.md +14 -0
  2. {snakemake_interface_software_deployment_plugins-0.19.1 → snakemake_interface_software_deployment_plugins-0.20.0}/PKG-INFO +1 -1
  3. {snakemake_interface_software_deployment_plugins-0.19.1 → snakemake_interface_software_deployment_plugins-0.20.0}/pyproject.toml +1 -1
  4. {snakemake_interface_software_deployment_plugins-0.19.1 → snakemake_interface_software_deployment_plugins-0.20.0}/snakemake_interface_software_deployment_plugins/__init__.py +11 -0
  5. {snakemake_interface_software_deployment_plugins-0.19.1 → snakemake_interface_software_deployment_plugins-0.20.0}/snakemake_interface_software_deployment_plugins/tests.py +6 -0
  6. {snakemake_interface_software_deployment_plugins-0.19.1 → snakemake_interface_software_deployment_plugins-0.20.0}/.github/workflows/conventional-prs.yml +0 -0
  7. {snakemake_interface_software_deployment_plugins-0.19.1 → snakemake_interface_software_deployment_plugins-0.20.0}/.github/workflows/release-please.yml +0 -0
  8. {snakemake_interface_software_deployment_plugins-0.19.1 → snakemake_interface_software_deployment_plugins-0.20.0}/.github/workflows/test.yml +0 -0
  9. {snakemake_interface_software_deployment_plugins-0.19.1 → snakemake_interface_software_deployment_plugins-0.20.0}/.gitignore +0 -0
  10. {snakemake_interface_software_deployment_plugins-0.19.1 → snakemake_interface_software_deployment_plugins-0.20.0}/LICENSE +0 -0
  11. {snakemake_interface_software_deployment_plugins-0.19.1 → snakemake_interface_software_deployment_plugins-0.20.0}/README.md +0 -0
  12. {snakemake_interface_software_deployment_plugins-0.19.1 → snakemake_interface_software_deployment_plugins-0.20.0}/snakemake_interface_software_deployment_plugins/_common.py +0 -0
  13. {snakemake_interface_software_deployment_plugins-0.19.1 → snakemake_interface_software_deployment_plugins-0.20.0}/snakemake_interface_software_deployment_plugins/registry/__init__.py +0 -0
  14. {snakemake_interface_software_deployment_plugins-0.19.1 → snakemake_interface_software_deployment_plugins-0.20.0}/snakemake_interface_software_deployment_plugins/registry/plugin.py +0 -0
  15. {snakemake_interface_software_deployment_plugins-0.19.1 → snakemake_interface_software_deployment_plugins-0.20.0}/snakemake_interface_software_deployment_plugins/settings.py +0 -0
  16. {snakemake_interface_software_deployment_plugins-0.19.1 → snakemake_interface_software_deployment_plugins-0.20.0}/tests/test_interface.py +0 -0
  17. {snakemake_interface_software_deployment_plugins-0.19.1 → snakemake_interface_software_deployment_plugins-0.20.0}/tests/test_py37.py +0 -0
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.20.0](https://github.com/snakemake/snakemake-interface-software-deployment-plugins/compare/v0.19.2...v0.20.0) (2026-09-17)
4
+
5
+
6
+ ### Features
7
+
8
+ * expose self.deployment_prefix to subclasses ([#69](https://github.com/snakemake/snakemake-interface-software-deployment-plugins/issues/69)) ([6a41c08](https://github.com/snakemake/snakemake-interface-software-deployment-plugins/commit/6a41c08f22d512373a87f6d8101c6f65eb8d0ce5))
9
+
10
+ ## [0.19.2](https://github.com/snakemake/snakemake-interface-software-deployment-plugins/compare/v0.19.1...v0.19.2) (2026-09-07)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * pass envvars to test environments ([#67](https://github.com/snakemake/snakemake-interface-software-deployment-plugins/issues/67)) ([9faf962](https://github.com/snakemake/snakemake-interface-software-deployment-plugins/commit/9faf962083390ab5dfb9ae7fcc9844a00f316f22))
16
+
3
17
  ## [0.19.1](https://github.com/snakemake/snakemake-interface-software-deployment-plugins/compare/v0.19.0...v0.19.1) (2026-09-07)
4
18
 
5
19
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: snakemake-interface-software-deployment-plugins
3
- Version: 0.19.1
3
+ Version: 0.20.0
4
4
  Summary: This package provides a stable interface for interactions between Snakemake and its software deployment plugins.
5
5
  Project-URL: repository, https://github.com/snakemake/snakemake-interface-software-deployment-plugins
6
6
  Project-URL: homepage, https://snakemake.github.io
@@ -6,7 +6,7 @@ description = "This package provides a stable interface for interactions between
6
6
  license = "MIT"
7
7
  name = "snakemake-interface-software-deployment-plugins"
8
8
  readme = "README.md"
9
- version = "0.19.1"
9
+ version = "0.20.0"
10
10
  requires-python = ">=3.11,<4.0"
11
11
  dependencies = [
12
12
  "argparse-dataclass >=2.0.0,<3.0",
@@ -488,3 +488,14 @@ class DeployableEnvBase(EnvBase, ABC):
488
488
  def deployment_path(self) -> Path:
489
489
  assert self._deployment_prefix is not None
490
490
  return self._deployment_prefix / self.deployment_hash()
491
+
492
+ @property
493
+ def deployment_prefix(self) -> Path:
494
+ """Return the deployment prefix, which is the base directory where the
495
+ environment will be deployed. The actual deployment path is determined by
496
+ appending the deployment hash to this prefix.
497
+
498
+ It is allowed to use this prefix for further deployment related
499
+ subdirectories, e.g. for storing unpacked assets.
500
+ """
501
+ return self._deployment_prefix
@@ -1,3 +1,4 @@
1
+ from collections.abc import Set
1
2
  from typing import Union
2
3
  from typing import List
3
4
  from pathlib import Path
@@ -183,6 +184,10 @@ class TestSoftwareDeploymentBase(ABC):
183
184
  """
184
185
  pass
185
186
 
187
+ def get_envvars(self) -> Set[str]:
188
+ """Return set of environment variables to be passed to the environment."""
189
+ return set()
190
+
186
191
  def _get_env(self, tmp_path) -> EnvBase:
187
192
  self.setup_workspace(tmp_path)
188
193
 
@@ -241,6 +246,7 @@ class TestSoftwareDeploymentBase(ABC):
241
246
  shell_executable=self.shell_executable,
242
247
  tempdir=tempdir,
243
248
  mountpoints=[Path(os.getcwd())] + mountpoints,
249
+ envvars=self.get_envvars(),
244
250
  deployment_prefix=deployment_prefix,
245
251
  cache_prefix=cache_prefix,
246
252
  pinfile_prefix=pinfile_prefix,