mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
rename
This commit is contained in:
@@ -37,7 +37,7 @@ ignore = [
|
||||
quote-style = "single"
|
||||
|
||||
[isort]
|
||||
known-first-party = ["lib"]
|
||||
known-first-party = ["ssh_lib"]
|
||||
lines-after-imports = 2
|
||||
|
||||
[flake8-comprehensions]
|
||||
|
||||
@@ -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):
|
||||
|
||||
4
setup.py
4
setup.py
@@ -8,8 +8,8 @@ requirements = [
|
||||
]
|
||||
|
||||
setup(
|
||||
name='openfreemaps',
|
||||
python_requires='>=3.10',
|
||||
install_requires=requirements,
|
||||
name='lib',
|
||||
packages=['lib'],
|
||||
packages=['ssh_lib'],
|
||||
)
|
||||
|
||||
@@ -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):
|
||||
@@ -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):
|
||||
@@ -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,
|
||||
@@ -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')
|
||||
@@ -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'
|
||||
Reference in New Issue
Block a user