diff options
author | Tristan Maat <tristan.maat@codethink.co.uk> | 2018-07-16 14:38:25 +0100 |
---|---|---|
committer | Tristan Maat <tristan.maat@codethink.co.uk> | 2018-07-16 14:54:40 +0100 |
commit | 70cd94afa9a05ef0005cf85aa0db1d795b64bbd3 (patch) | |
tree | a6b9db7ab435568edd98020c965d073055b8f99f | |
parent | 47b6b6e6a5908c79fa4d46b2d3bbfab42bae0e2f (diff) | |
download | buildstream-70cd94afa9a05ef0005cf85aa0db1d795b64bbd3.tar.gz |
buildstream/_scheduler/*queue.py: Move queues to a subdirectory
-rw-r--r-- | buildstream/_scheduler/__init__.py | 12 | ||||
-rw-r--r-- | buildstream/_scheduler/queues/__init__.py | 1 | ||||
-rw-r--r-- | buildstream/_scheduler/queues/buildqueue.py (renamed from buildstream/_scheduler/buildqueue.py) | 0 | ||||
-rw-r--r-- | buildstream/_scheduler/queues/fetchqueue.py (renamed from buildstream/_scheduler/fetchqueue.py) | 2 | ||||
-rw-r--r-- | buildstream/_scheduler/queues/pullqueue.py (renamed from buildstream/_scheduler/pullqueue.py) | 0 | ||||
-rw-r--r-- | buildstream/_scheduler/queues/pushqueue.py (renamed from buildstream/_scheduler/pushqueue.py) | 0 | ||||
-rw-r--r-- | buildstream/_scheduler/queues/queue.py (renamed from buildstream/_scheduler/queue.py) | 6 | ||||
-rw-r--r-- | buildstream/_scheduler/queues/trackqueue.py (renamed from buildstream/_scheduler/trackqueue.py) | 4 | ||||
-rw-r--r-- | buildstream/_scheduler/scheduler.py | 2 |
9 files changed, 14 insertions, 13 deletions
diff --git a/buildstream/_scheduler/__init__.py b/buildstream/_scheduler/__init__.py index 80523db6f..a53a133c2 100644 --- a/buildstream/_scheduler/__init__.py +++ b/buildstream/_scheduler/__init__.py @@ -17,12 +17,12 @@ # Authors: # Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> -from .queue import Queue, QueueStatus, QueueType +from .queues import Queue, QueueStatus, QueueType -from .fetchqueue import FetchQueue -from .trackqueue import TrackQueue -from .buildqueue import BuildQueue -from .pushqueue import PushQueue -from .pullqueue import PullQueue +from .queues.fetchqueue import FetchQueue +from .queues.trackqueue import TrackQueue +from .queues.buildqueue import BuildQueue +from .queues.pushqueue import PushQueue +from .queues.pullqueue import PullQueue from .scheduler import Scheduler, SchedStatus diff --git a/buildstream/_scheduler/queues/__init__.py b/buildstream/_scheduler/queues/__init__.py new file mode 100644 index 000000000..b9acef18c --- /dev/null +++ b/buildstream/_scheduler/queues/__init__.py @@ -0,0 +1 @@ +from .queue import Queue, QueueStatus, QueueType diff --git a/buildstream/_scheduler/buildqueue.py b/buildstream/_scheduler/queues/buildqueue.py index 50ba312ff..50ba312ff 100644 --- a/buildstream/_scheduler/buildqueue.py +++ b/buildstream/_scheduler/queues/buildqueue.py diff --git a/buildstream/_scheduler/fetchqueue.py b/buildstream/_scheduler/queues/fetchqueue.py index 24512bddb..bdff15667 100644 --- a/buildstream/_scheduler/fetchqueue.py +++ b/buildstream/_scheduler/queues/fetchqueue.py @@ -19,7 +19,7 @@ # Jürg Billeter <juerg.billeter@codethink.co.uk> # BuildStream toplevel imports -from .. import Consistency +from ... import Consistency # Local imports from . import Queue, QueueStatus, QueueType diff --git a/buildstream/_scheduler/pullqueue.py b/buildstream/_scheduler/queues/pullqueue.py index b4f5b0d73..b4f5b0d73 100644 --- a/buildstream/_scheduler/pullqueue.py +++ b/buildstream/_scheduler/queues/pullqueue.py diff --git a/buildstream/_scheduler/pushqueue.py b/buildstream/_scheduler/queues/pushqueue.py index 624eefd1d..624eefd1d 100644 --- a/buildstream/_scheduler/pushqueue.py +++ b/buildstream/_scheduler/queues/pushqueue.py diff --git a/buildstream/_scheduler/queue.py b/buildstream/_scheduler/queues/queue.py index 15caf8348..d0c482802 100644 --- a/buildstream/_scheduler/queue.py +++ b/buildstream/_scheduler/queues/queue.py @@ -24,11 +24,11 @@ from enum import Enum import traceback # Local imports -from .job import Job +from ..job import Job # BuildStream toplevel imports -from .._exceptions import BstError, set_last_task_error -from .._message import Message, MessageType +from ..._exceptions import BstError, set_last_task_error +from ..._message import Message, MessageType # Indicates the kind of activity diff --git a/buildstream/_scheduler/trackqueue.py b/buildstream/_scheduler/queues/trackqueue.py index e48e1ae28..3a65f01d0 100644 --- a/buildstream/_scheduler/trackqueue.py +++ b/buildstream/_scheduler/queues/trackqueue.py @@ -19,8 +19,8 @@ # Jürg Billeter <juerg.billeter@codethink.co.uk> # BuildStream toplevel imports -from ..plugin import _plugin_lookup -from .. import SourceError +from ...plugin import _plugin_lookup +from ... import SourceError # Local imports from . import Queue, QueueStatus, QueueType diff --git a/buildstream/_scheduler/scheduler.py b/buildstream/_scheduler/scheduler.py index f8a66ae92..7bfbc958e 100644 --- a/buildstream/_scheduler/scheduler.py +++ b/buildstream/_scheduler/scheduler.py @@ -26,7 +26,7 @@ import datetime from contextlib import contextmanager # Local imports -from .queue import QueueType +from .queues import QueueType # A decent return code for Scheduler.run() |