From 31899c05ac97833fbc37d514ded39685ce3a95be Mon Sep 17 00:00:00 2001 From: "Antoine R. Dumont (@ardumont)" <antoine.romain.dumont@gmail.com> Date: Tue, 20 Sep 2016 12:35:10 +0200 Subject: [PATCH] Remove optional dependency on swh.objstorage.cloud If you want the archiver to have cloud abilities, install the package python3-swh.objstorage.cloud on the server as well. --- requirements.txt | 1 - swh/archiver/__init__.py | 8 -------- 2 files changed, 9 deletions(-) diff --git a/requirements.txt b/requirements.txt index c95b507..f2a6d32 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,7 +11,6 @@ flask # Internal dependencies swh.core >= 0.0.23 swh.objstorage >= 0.0.2 -swh.objstorage.cloud >= 0.0.9 click swh.scheduler diff --git a/swh/archiver/__init__.py b/swh/archiver/__init__.py index 272da93..2ff1cce 100644 --- a/swh/archiver/__init__.py +++ b/swh/archiver/__init__.py @@ -3,11 +3,3 @@ from .director import ArchiverStdinToBackendDirector # NOQA from .worker import ArchiverWithRetentionPolicyWorker # NOQA from .worker import ArchiverToBackendWorker # NOQA from .copier import ArchiverCopier # NOQA - -from swh.objstorage import register_objstorages -from swh.objstorage.cloud import AzureCloudObjStorage # noqa - -# Register new objstorage abilities -register_objstorages({ - 'azure-storage': AzureCloudObjStorage -}) -- GitLab