Clean package structure ahead of tests
This commit is contained in:
parent
43114d8c1f
commit
4843413883
10 changed files with 16 additions and 10 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -0,0 +1,3 @@
|
||||||
|
.venv
|
||||||
|
*.pyc
|
||||||
|
__pycache__/
|
|
@ -1,4 +1,4 @@
|
||||||
FROM debian
|
FROM debian
|
||||||
|
|
||||||
COPY machine_admin /machine_admin
|
COPY src/machine_admin /machine_admin
|
||||||
COPY machine_setup.py /
|
COPY src/machine_setup.py /
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import logging
|
import logging
|
||||||
from util import run_op
|
|
||||||
|
from .util import run_op
|
||||||
|
|
||||||
class UfwInterface:
|
class UfwInterface:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
from firewall import Firewall
|
from .firewall import Firewall
|
||||||
from user import User, UserManager
|
from .user import User, UserManager
|
||||||
from ssh_config import SshConfig
|
from .ssh_config import SshConfig
|
||||||
from package_manager import PackageManager
|
from .package_manager import PackageManager
|
||||||
|
|
||||||
class Machine:
|
class Machine:
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import logging
|
import logging
|
||||||
from util import run_op
|
|
||||||
|
from .util import run_op
|
||||||
|
|
||||||
class AptInterface:
|
class AptInterface:
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import logging
|
import logging
|
||||||
from util import run_op
|
|
||||||
|
from .util import run_op
|
||||||
|
|
||||||
class SshConfig:
|
class SshConfig:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import logging
|
import logging
|
||||||
from util import run_op
|
from .util import run_op
|
||||||
|
|
||||||
class User:
|
class User:
|
||||||
def __init__(self, name, has_sudo=False):
|
def __init__(self, name, has_sudo=False):
|
Loading…
Reference in a new issue