From 1c0312be31e119499e7583cb2dfd174a97331c6d Mon Sep 17 00:00:00 2001 From: Johannes Koester Date: Wed, 29 Jan 2025 13:43:22 +0100 Subject: [PATCH] deploy method --- .../__init__.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/snakemake_interface_software_deployment_plugins/__init__.py b/snakemake_interface_software_deployment_plugins/__init__.py index 5a25eec..df53f11 100644 --- a/snakemake_interface_software_deployment_plugins/__init__.py +++ b/snakemake_interface_software_deployment_plugins/__init__.py @@ -7,7 +7,7 @@ import hashlib from pathlib import Path import sys -from typing import List, Optional, Self +from typing import Optional import subprocess as sp from snakemake_interface_software_deployment_plugins.settings import SoftwareDeploymentProviderSettingsBase @@ -34,19 +34,9 @@ def decorate_shellcmd(self, cmd: str) -> str: """Decorate given shell command such that it runs within the environment.""" ... - @abstractmethod - def deploy(self) -> None: - """Deploy the environment to self.provider.deployment_path. - - When issuing shell commands, the environment should use - self.provider.run(cmd: str) in order to ensure that it runs within eventual - parent environments (e.g. a container or an env module). - """ - ... - @abstractmethod def hash(self, hash_object) -> None: - """Update given hash such that it changes whenever the environment + """Update given hash object such that it changes whenever the environment could potentially contain a different set of software (in terms of versions or packages). """ @@ -96,6 +86,7 @@ def deployment_hash(self, hash_object) -> None: def managed_deployment_hash(self) -> str: return self._managed_generic_hash("deployment_hash") + class ArchiveableEnvBase(ABC): @abstractmethod def archive(self) -> None: