From dbee1a3084c4310a338da84460fc04b1b495572e Mon Sep 17 00:00:00 2001 From: cneud <952378+cneud@users.noreply.github.com> Date: Fri, 20 Sep 2024 20:18:39 +0200 Subject: [PATCH] switch from qurator namespace to src-layout --- src/eynollah/cli.py | 2 +- tests/test_counter.py | 2 +- tests/test_dpi.py | 2 +- tests/test_run.py | 2 +- tests/test_smoke.py | 12 ++++++------ tests/test_xml.py | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/eynollah/cli.py b/src/eynollah/cli.py index 564b8b0..b4d323f 100644 --- a/src/eynollah/cli.py +++ b/src/eynollah/cli.py @@ -1,7 +1,7 @@ import sys import click from ocrd_utils import initLogging, setOverrideLogLevel -from eynollah.eynollah import Eynollah +from src.eynollah.eynollah import Eynollah @click.command() diff --git a/tests/test_counter.py b/tests/test_counter.py index 42bf074..f00d2d5 100644 --- a/tests/test_counter.py +++ b/tests/test_counter.py @@ -1,5 +1,5 @@ from tests.base import main -from eynollah.utils.counter import EynollahIdCounter +from src.eynollah.utils.counter import EynollahIdCounter def test_counter_string(): c = EynollahIdCounter() diff --git a/tests/test_dpi.py b/tests/test_dpi.py index 3376bf4..62397c7 100644 --- a/tests/test_dpi.py +++ b/tests/test_dpi.py @@ -1,6 +1,6 @@ import cv2 from pathlib import Path -from eynollah.utils.pil_cv2 import check_dpi +from src.eynollah.utils.pil_cv2 import check_dpi from tests.base import main def test_dpi(): diff --git a/tests/test_run.py b/tests/test_run.py index 2596dad..b64963d 100644 --- a/tests/test_run.py +++ b/tests/test_run.py @@ -2,7 +2,7 @@ from os import environ from pathlib import Path from ocrd_utils import pushd_popd from tests.base import CapturingTestCase as TestCase, main -from eynollah.cli import main as eynollah_cli +from src.eynollah.cli import main as eynollah_cli testdir = Path(__file__).parent.resolve() diff --git a/tests/test_smoke.py b/tests/test_smoke.py index 252213f..3390882 100644 --- a/tests/test_smoke.py +++ b/tests/test_smoke.py @@ -1,7 +1,7 @@ def test_utils_import(): - import eynollah.utils - import eynollah.utils.contour - import eynollah.utils.drop_capitals - import eynollah.utils.drop_capitals - import eynollah.utils.is_nan - import eynollah.utils.rotate + import src.eynollah.utils + import src.eynollah.utils.contour + import src.eynollah.utils.drop_capitals + import src.eynollah.utils.drop_capitals + import src.eynollah.utils.is_nan + import src.eynollah.utils.rotate diff --git a/tests/test_xml.py b/tests/test_xml.py index 09a6ddf..78e22ed 100644 --- a/tests/test_xml.py +++ b/tests/test_xml.py @@ -1,5 +1,5 @@ from pytest import main -from eynollah.utils.xml import create_page_xml +from src.eynollah.utils.xml import create_page_xml from ocrd_models.ocrd_page import to_xml PAGE_2019 = 'http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15'