From eededc8dfbc6134a2914588280c4de3237a11954 Mon Sep 17 00:00:00 2001 From: Believethehype Date: Mon, 19 Feb 2024 09:29:52 +0100 Subject: [PATCH] remove venvs from tasks without further dependencies --- nostr_dvm/tasks/advanced_search.py | 2 +- nostr_dvm/tasks/advanced_search_wine.py | 2 +- nostr_dvm/tasks/convert_media.py | 1 + nostr_dvm/tasks/discovery_inactive_follows.py | 1 + nostr_dvm/tasks/discovery_nonfollowers.py | 1 + nostr_dvm/tasks/search_users.py | 1 - nostr_dvm/tasks/translation_libretranslate.py | 1 + nostr_dvm/tasks/trending_notes_nostrband.py | 1 + 8 files changed, 7 insertions(+), 3 deletions(-) diff --git a/nostr_dvm/tasks/advanced_search.py b/nostr_dvm/tasks/advanced_search.py index a3c92a8..6c3872c 100644 --- a/nostr_dvm/tasks/advanced_search.py +++ b/nostr_dvm/tasks/advanced_search.py @@ -23,7 +23,6 @@ class AdvancedSearch(DVMTaskInterface): TASK: str = "search-content" FIX_COST: float = 0 dvm_config: DVMConfig - dependencies = [("nostr-dvm", "nostr-dvm")] def __init__(self, name, dvm_config: DVMConfig, nip89config: NIP89Config, admin_config: AdminConfig = None, options=None): @@ -160,6 +159,7 @@ class AdvancedSearch(DVMTaskInterface): # playground or elsewhere def build_example(name, identifier, admin_config): dvm_config = build_default_config(identifier) + dvm_config.USE_OWN_VENV = False # Add NIP89 nip89info = { "name": name, diff --git a/nostr_dvm/tasks/advanced_search_wine.py b/nostr_dvm/tasks/advanced_search_wine.py index 746c18e..34db69b 100644 --- a/nostr_dvm/tasks/advanced_search_wine.py +++ b/nostr_dvm/tasks/advanced_search_wine.py @@ -25,7 +25,6 @@ class AdvancedSearchWine(DVMTaskInterface): TASK: str = "search-content" FIX_COST: float = 0 dvm_config: DVMConfig - dependencies = [("nostr-dvm", "nostr-dvm")] def __init__(self, name, dvm_config: DVMConfig, nip89config: NIP89Config, admin_config: AdminConfig = None, options=None): @@ -139,6 +138,7 @@ class AdvancedSearchWine(DVMTaskInterface): # playground or elsewhere def build_example(name, identifier, admin_config): dvm_config = build_default_config(identifier) + dvm_config.USE_OWN_VENV = False # Add NIP89 nip89info = { "name": name, diff --git a/nostr_dvm/tasks/convert_media.py b/nostr_dvm/tasks/convert_media.py index c6094a0..d1b7dad 100644 --- a/nostr_dvm/tasks/convert_media.py +++ b/nostr_dvm/tasks/convert_media.py @@ -79,6 +79,7 @@ class MediaConverter(DVMTaskInterface): # playground or elsewhere def build_example(name, identifier, admin_config): dvm_config = build_default_config(identifier) + dvm_config.USE_OWN_VENV = False admin_config.LUD16 = dvm_config.LN_ADDRESS # Add NIP89 nip89info = { diff --git a/nostr_dvm/tasks/discovery_inactive_follows.py b/nostr_dvm/tasks/discovery_inactive_follows.py index 83849b8..bc3c86e 100644 --- a/nostr_dvm/tasks/discovery_inactive_follows.py +++ b/nostr_dvm/tasks/discovery_inactive_follows.py @@ -175,6 +175,7 @@ class DiscoverInactiveFollows(DVMTaskInterface): # playground or elsewhere def build_example(name, identifier, admin_config): dvm_config = build_default_config(identifier) + dvm_config.USE_OWN_VENV = False admin_config.LUD16 = dvm_config.LN_ADDRESS # Add NIP89 nip89info = { diff --git a/nostr_dvm/tasks/discovery_nonfollowers.py b/nostr_dvm/tasks/discovery_nonfollowers.py index 7f0cc86..b1b9f08 100644 --- a/nostr_dvm/tasks/discovery_nonfollowers.py +++ b/nostr_dvm/tasks/discovery_nonfollowers.py @@ -189,6 +189,7 @@ class DiscoverNonFollowers(DVMTaskInterface): # playground or elsewhere def build_example(name, identifier, admin_config): dvm_config = build_default_config(identifier) + dvm_config.USE_OWN_VENV = False admin_config.LUD16 = dvm_config.LN_ADDRESS # Add NIP89 nip89info = { diff --git a/nostr_dvm/tasks/search_users.py b/nostr_dvm/tasks/search_users.py index 3f97c49..b306a23 100644 --- a/nostr_dvm/tasks/search_users.py +++ b/nostr_dvm/tasks/search_users.py @@ -24,7 +24,6 @@ class SearchUser(DVMTaskInterface): TASK: str = "search-user" FIX_COST: float = 0 dvm_config: DVMConfig - dependencies = [("nostr-dvm", "nostr-dvm")] def __init__(self, name, dvm_config: DVMConfig, nip89config: NIP89Config, admin_config: AdminConfig = None, options=None): diff --git a/nostr_dvm/tasks/translation_libretranslate.py b/nostr_dvm/tasks/translation_libretranslate.py index 7d4a99a..8f39c97 100644 --- a/nostr_dvm/tasks/translation_libretranslate.py +++ b/nostr_dvm/tasks/translation_libretranslate.py @@ -106,6 +106,7 @@ class TranslationLibre(DVMTaskInterface): # playground or elsewhere def build_example(name, identifier, admin_config): dvm_config = build_default_config(identifier) + dvm_config.USE_OWN_VENV = False admin_config.LUD16 = dvm_config.LN_ADDRESS options = {'libre_end_point': os.getenv("LIBRE_TRANSLATE_ENDPOINT"), diff --git a/nostr_dvm/tasks/trending_notes_nostrband.py b/nostr_dvm/tasks/trending_notes_nostrband.py index 5b93078..4659b83 100644 --- a/nostr_dvm/tasks/trending_notes_nostrband.py +++ b/nostr_dvm/tasks/trending_notes_nostrband.py @@ -96,6 +96,7 @@ class TrendingNotesNostrBand(DVMTaskInterface): # playground or elsewhere def build_example(name, identifier, admin_config): dvm_config = build_default_config(identifier) + dvm_config.USE_OWN_VENV = False admin_config.LUD16 = dvm_config.LN_ADDRESS # Add NIP89