Clean package structure ahead of tests

This commit is contained in:
James Grogan 2024-03-29 12:23:14 +00:00
parent 43114d8c1f
commit 4843413883
10 changed files with 16 additions and 10 deletions

3
.gitignore vendored
View file

@ -0,0 +1,3 @@
.venv
*.pyc
__pycache__/

View file

@ -1,4 +1,4 @@
FROM debian
COPY machine_admin /machine_admin
COPY machine_setup.py /
COPY src/machine_admin /machine_admin
COPY src/machine_setup.py /

View file

@ -1,5 +1,6 @@
import logging
from util import run_op
from .util import run_op
class UfwInterface:

View file

@ -1,7 +1,7 @@
from firewall import Firewall
from user import User, UserManager
from ssh_config import SshConfig
from package_manager import PackageManager
from .firewall import Firewall
from .user import User, UserManager
from .ssh_config import SshConfig
from .package_manager import PackageManager
class Machine:

View file

@ -1,5 +1,6 @@
import logging
from util import run_op
from .util import run_op
class AptInterface:

View file

@ -1,6 +1,7 @@
from pathlib import Path
import logging
from util import run_op
from .util import run_op
class SshConfig:

View file

@ -1,5 +1,5 @@
import logging
from util import run_op
from .util import run_op
class User:
def __init__(self, name, has_sudo=False):