Skip to content

Commit

Permalink
Remove a bunch of extra imports now.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed May 8, 2024
1 parent c4c6001 commit a1e404a
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 49 deletions.
11 changes: 0 additions & 11 deletions lib/galaxy/objectstore/azure_blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import logging
import os
import shutil
from datetime import (
datetime,
timedelta,
Expand All @@ -21,17 +20,7 @@
except ImportError:
BlobServiceClient = None

from galaxy.exceptions import (
ObjectInvalid,
ObjectNotFound,
)
from galaxy.util import (
directory_hash_id,
unlink,
)
from galaxy.util.path import safe_relpath
from . import ConcreteObjectStore
from ._util import fix_permissions
from .caching import (
CacheTarget,
enable_cache_monitor,
Expand Down
11 changes: 0 additions & 11 deletions lib/galaxy/objectstore/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,11 @@
import multiprocessing
import os
import os.path
import shutil
import subprocess
from datetime import datetime
from typing import Optional

from galaxy.exceptions import (
ObjectInvalid,
ObjectNotFound,
)
from galaxy.util import (
directory_hash_id,
safe_relpath,
unlink,
)
from . import ConcreteObjectStore
from ._util import fix_permissions
from .caching import (
CacheTarget,
enable_cache_monitor,
Expand Down
6 changes: 0 additions & 6 deletions lib/galaxy/objectstore/irods.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,14 @@
except ImportError:
irods = None

from galaxy.exceptions import (
ObjectInvalid,
ObjectNotFound,
)
from galaxy.util import (
directory_hash_id,
ExecutionTimer,
string_as_bool,
umask_fix_perms,
unlink,
)
from galaxy.util.path import safe_relpath
from . import DiskObjectStore
from ._util import fix_permissions
from .caching import UsesCache

IRODS_IMPORT_MESSAGE = "The Python irods package is required to use this feature, please install it"
Expand Down
12 changes: 1 addition & 11 deletions lib/galaxy/objectstore/pithos.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import logging
import os
import shutil

try:
from kamaki.clients import (
Expand All @@ -17,17 +16,8 @@
except ImportError:
KamakiClient = None

from galaxy.exceptions import (
ObjectInvalid,
ObjectNotFound,
)
from galaxy.util import (
directory_hash_id,
umask_fix_perms,
)
from galaxy.util.path import safe_relpath
from galaxy.util import directory_hash_id
from . import ConcreteObjectStore
from ._util import fix_permissions
from .caching import UsesCache

NO_KAMAKI_ERROR_MESSAGE = (
Expand Down
1 change: 0 additions & 1 deletion lib/galaxy/objectstore/rucio.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
umask_fix_perms,
unlink,
)
from galaxy.util.path import safe_relpath
from . import ConcreteObjectStore
from .caching import (
CacheTarget,
Expand Down
9 changes: 0 additions & 9 deletions lib/galaxy/objectstore/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import logging
import multiprocessing
import os
import shutil
import subprocess
import time
from datetime import datetime
Expand All @@ -20,19 +19,11 @@
except ImportError:
boto = None # type: ignore[assignment]

from galaxy.exceptions import (
ObjectInvalid,
ObjectNotFound,
)
from galaxy.util import (
directory_hash_id,
string_as_bool,
unlink,
which,
)
from galaxy.util.path import safe_relpath
from . import ConcreteObjectStore
from ._util import fix_permissions
from .caching import (
CacheTarget,
enable_cache_monitor,
Expand Down

0 comments on commit a1e404a

Please sign in to comment.