Skip to content

Commit

Permalink
Rename dirs for better submodule handling
Browse files Browse the repository at this point in the history
  • Loading branch information
p-goulart committed Jan 12, 2024
1 parent 16b5bf6 commit 53a0b79
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion dict_tools/shell_command.py → lib/shell_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import subprocess
from typing import AnyStr

from dict_tools.logger import LOGGER
from lib.logger import LOGGER


class ShellCommandException(Exception):
Expand Down
6 changes: 3 additions & 3 deletions dict_tools/utils.py → lib/utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from os import chdir, path
from typing import Optional

from dict_tools.constants import REPO_DIR, LT_DIR, JAVA_RESULTS_DIR
from dict_tools.shell_command import ShellCommand
from dict_tools.logger import LOGGER
from lib.constants import REPO_DIR, LT_DIR, JAVA_RESULTS_DIR
from lib.shell_command import ShellCommand
from lib.logger import LOGGER


def compile_lt_dev():
Expand Down
2 changes: 1 addition & 1 deletion dict_tools/variant.py → lib/variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from os import path
from typing import Literal

from dict_tools.constants import HUNSPELL_DIR, SPELLING_DICT_DIR, COMPOUNDS_DIR, JAVA_RESULTS_DIR, TAGGER_DICT_DIR
from lib.constants import HUNSPELL_DIR, SPELLING_DICT_DIR, COMPOUNDS_DIR, JAVA_RESULTS_DIR, TAGGER_DICT_DIR


class Variant:
Expand Down
10 changes: 5 additions & 5 deletions scripts/build_spelling_dicts.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
from tempfile import NamedTemporaryFile
from os import path

from dict_tools.logger import LOGGER
from dict_tools.constants import SPELLING_DICT_DIR, LT_JAR_PATH, LT_DIR, LT_VER, LATIN_1_ENCODING
from dict_tools.shell_command import ShellCommand
from dict_tools.utils import compile_lt_dev, install_dictionaries
from dict_tools.variant import Variant, VARIANT_MAPPING
from lib.logger import LOGGER
from lib.constants import SPELLING_DICT_DIR, LT_JAR_PATH, LT_DIR, LT_VER, LATIN_1_ENCODING
from lib.shell_command import ShellCommand
from lib.utils import compile_lt_dev, install_dictionaries
from lib.variant import Variant, VARIANT_MAPPING


class CLI:
Expand Down
14 changes: 7 additions & 7 deletions scripts/build_tagger_dicts.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
import argparse
import os

from dict_tools.logger import LOGGER
from dict_tools.constants import (TAGGER_BUILD_SCRIPT_PATH, FDIC_DIR, RESULT_POS_DICT_FILEPATH,
SORTED_POS_DICT_FILEPATH, POS_DICT_DIFF_FILEPATH, OLD_POS_DICT_FILEPATH, REPO_DIR,
TAGGER_DICT_DIR, LT_RESULTS_DIR, LT_JAR_PATH)
from dict_tools.shell_command import ShellCommand
from dict_tools.utils import compile_lt_dev, install_dictionaries
from dict_tools.variant import Variant, VARIANT_MAPPING
from lib.logger import LOGGER
from lib.constants import (TAGGER_BUILD_SCRIPT_PATH, FDIC_DIR, RESULT_POS_DICT_FILEPATH,
SORTED_POS_DICT_FILEPATH, POS_DICT_DIFF_FILEPATH, OLD_POS_DICT_FILEPATH, REPO_DIR,
TAGGER_DICT_DIR, LT_RESULTS_DIR, LT_JAR_PATH)
from lib.shell_command import ShellCommand
from lib.utils import compile_lt_dev, install_dictionaries
from lib.variant import Variant, VARIANT_MAPPING


class CLI:
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from dict_tools.logger import LOGGER
from lib.logger import LOGGER

LOGGER.setLevel("FATAL")
2 changes: 1 addition & 1 deletion tests/test_shell_command.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from dict_tools.shell_command import ShellCommand, ShellCommandException
from lib.shell_command import ShellCommand, ShellCommandException


class TestShellCommand:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_variant.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from dict_tools.variant import Variant
from lib.variant import Variant


class TestVariant:
Expand Down

0 comments on commit 53a0b79

Please sign in to comment.