Skip to content

Commit

Permalink
utils: move to klplib package
Browse files Browse the repository at this point in the history
Signed-off-by: Vincenzo MEZZELA <[email protected]>
  • Loading branch information
vmezzela committed Jan 17, 2025
1 parent 57d7c13 commit fe61e6b
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion klpbuild/extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

from natsort import natsorted

from klpbuild import utils
from klpbuild.klplib import utils
from klpbuild.config import Config
from klpbuild.klplib.templ import TemplateGen

Expand Down
2 changes: 1 addition & 1 deletion klpbuild/klplib/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import argparse

from klpbuild.utils import ARCHS
from klpbuild.klplib.utils import ARCHS


def create_parser() -> argparse.ArgumentParser:
Expand Down
2 changes: 1 addition & 1 deletion klpbuild/klplib/codestream.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from pathlib import Path, PurePath
import re

from klpbuild.utils import ARCH, is_mod, get_all_symbols_from_object
from klpbuild.klplib.utils import ARCH, is_mod, get_all_symbols_from_object

class Codestream:
__slots__ = ("data_path", "lp_path", "lp_name", "sle", "sp", "update", "rt",
Expand Down
2 changes: 1 addition & 1 deletion klpbuild/klplib/ibs.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from osctiny import Osc

from klpbuild.config import Config
from klpbuild.utils import ARCH, ARCHS, get_all_symbols_from_object, get_elf_object, get_elf_modinfo_entry, get_cs_branch, get_kgraft_branch, filter_codestreams
from klpbuild.klplib.utils import ARCH, ARCHS, get_all_symbols_from_object, get_elf_object, get_elf_modinfo_entry, get_cs_branch, get_kgraft_branch, filter_codestreams

class IBS(Config):
def __init__(self, lp_name, lp_filter):
Expand Down
2 changes: 1 addition & 1 deletion klpbuild/klplib/ksrc.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import requests
from natsort import natsorted

from klpbuild import utils
from klpbuild.klplib import utils
from klpbuild.config import Config
from klpbuild.klplib.codestream import Codestream
from klpbuild.klplib.ibs import IBS
Expand Down
2 changes: 1 addition & 1 deletion klpbuild/klplib/templ.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from mako.template import Template

from klpbuild.config import Config
from klpbuild.utils import ARCHS, fix_mod_string, get_mail
from klpbuild.klplib.utils import ARCHS, fix_mod_string, get_mail

TEMPL_H = """\
#ifndef _${ fname.upper() }_H
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion klpbuild/plugins/inline.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import subprocess

from klpbuild.config import Config
from klpbuild.utils import filter_codestreams
from klpbuild.klplib.utils import filter_codestreams


class Inliner(Config):
Expand Down
2 changes: 1 addition & 1 deletion klpbuild/plugins/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from natsort import natsorted

from klpbuild import utils
from klpbuild.klplib import utils
from klpbuild.config import Config
from klpbuild.klplib.ksrc import GitHelper

Expand Down
2 changes: 1 addition & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Author: Marcos Paulo de Souza <[email protected]>

from klpbuild.klplib.codestream import Codestream
from klpbuild.utils import filter_codestreams
from klpbuild.klplib.utils import filter_codestreams


def test_filter():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from klpbuild.extractor import Extractor
from klpbuild.plugins.setup import Setup
from klpbuild import utils
from klpbuild.klplib import utils


def test_detect_file_without_ftrace_support(caplog):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import pytest

from klpbuild.plugins.setup import Setup
from klpbuild import utils
from tests.utils import get_codestreams_file
from klpbuild.klplib import utils

CS = "15.5u19"
DEFAULT_DATA = {"cve": None, "lp_filter": CS, "lp_skips": None, "conf": "CONFIG_TUN", "no_check": False}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_templ.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from klpbuild.extractor import Extractor
from klpbuild.plugins.setup import Setup
from klpbuild import utils
from klpbuild.klplib import utils
from tests.utils import get_file_content


Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from klpbuild import utils
from klpbuild.klplib import utils
from klpbuild.klplib.codestream import Codestream


Expand Down

0 comments on commit fe61e6b

Please sign in to comment.