This commit is contained in:
Zsolt Ero
2023-12-05 21:06:29 +01:00
parent 2fbfe15b85
commit fab71939ad
11 changed files with 17 additions and 17 deletions

View File

@@ -37,7 +37,7 @@ ignore = [
quote-style = "single"
[isort]
known-first-party = ["lib"]
known-first-party = ["ssh_lib"]
lines-after-imports = 2
[flake8-comprehensions]

View File

@@ -4,11 +4,11 @@ import sys
from dotenv import dotenv_values
from fabric import Config, Connection
from lib.kernel import set_cpu_governor, setup_kernel_settings
from lib.nginx import certbot, nginx
from lib.pkg_base import pkg_base, pkg_clean, pkg_upgrade
from lib.planetiler import install_planetiler
from lib.utils import reboot, setup_time
from ssh_lib.kernel import set_cpu_governor, setup_kernel_settings
from ssh_lib.nginx import certbot, nginx
from ssh_lib.pkg_base import pkg_base, pkg_clean, pkg_upgrade
from ssh_lib.planetiler import install_planetiler
from ssh_lib.utils import reboot, setup_time
def prepare_server(c):

View File

@@ -8,8 +8,8 @@ requirements = [
]
setup(
name='openfreemaps',
python_requires='>=3.10',
install_requires=requirements,
name='lib',
packages=['lib'],
packages=['ssh_lib'],
)

View File

@@ -1,6 +1,6 @@
import time
from lib.utils import apt_get_purge, exists, put_str
from ssh_lib.utils import apt_get_purge, exists, put_str
def setup_dns(c):

View File

@@ -1,5 +1,5 @@
from lib.config import templates
from lib.utils import apt_get_install, apt_get_purge, put, put_str
from ssh_lib.config import templates
from ssh_lib.utils import apt_get_install, apt_get_purge, put, put_str
def setup_kernel_settings(c):

View File

@@ -1,5 +1,5 @@
from lib.config import templates
from lib.utils import (
from ssh_lib.config import templates
from ssh_lib.utils import (
apt_get_install,
apt_get_purge,
apt_get_update,

View File

@@ -1,4 +1,4 @@
from lib.utils import (
from ssh_lib.utils import (
apt_get_autoremove,
apt_get_install,
apt_get_purge,
@@ -35,4 +35,4 @@ def pkg_clean(c):
def pkg_base(c):
apt_get_install(c, 'nload iftop')
apt_get_install(c, 'python3 nload iftop')

View File

@@ -1,5 +1,5 @@
from lib.config import templates
from lib.utils import apt_get_install, apt_get_update, put
from ssh_lib.config import templates
from ssh_lib.utils import apt_get_install, apt_get_update, put
PLANETILER_VERSION = '0.7.0'