Skip to content

Commit

Permalink
Split into base and wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Sep 28, 2024
1 parent 6963e9e commit 0d22bad
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pysqa/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys

from pysqa.cmd import command_line
from pysqa.base.cmd import command_line

if __name__ == "__main__":
command_line(arguments_lst=sys.argv[1:])
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file removed pysqa/ext/__init__.py
Empty file.
4 changes: 2 additions & 2 deletions pysqa/queueadapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from pysqa.base.config import QueueAdapterWithConfig, read_config
from pysqa.base.core import execute_command
from pysqa.ext.modular import ModularQueueAdapter
from pysqa.base.modular import ModularQueueAdapter


class QueueAdapter(object):
Expand Down Expand Up @@ -361,7 +361,7 @@ def set_queue_adapter(
# The RemoteQueueAdapter has additional dependencies, namely paramiko and tqdm.
# By moving the import to this line it only fails when the user specifies the
# RemoteQueueAdapter in their pysqa configuration.
from pysqa.ext.remote import RemoteQueueAdapter
from pysqa.base.remote import RemoteQueueAdapter

return RemoteQueueAdapter(
config=config, directory=directory, execute_command=execute_command
Expand Down
3 changes: 1 addition & 2 deletions tests/test_cmd.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import os
import io
import json
import unittest
import unittest.mock
from pysqa.cmd import command_line
from pysqa.base.cmd import command_line


class TestCMD(unittest.TestCase):
Expand Down

0 comments on commit 0d22bad

Please sign in to comment.