Skip to content

Commit

Permalink
refactor package name
Browse files Browse the repository at this point in the history
  • Loading branch information
cneud committed Aug 14, 2024
1 parent db3f023 commit 4659e2e
Show file tree
Hide file tree
Showing 28 changed files with 15 additions and 42 deletions.
2 changes: 1 addition & 1 deletion ocrd-tool.json
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ classifiers = [
]

[project.scripts]
eynollah = "qurator.eynollah.cli:main"
ocrd-eynollah-segment = "qurator.eynollah.ocrd_cli:main"
eynollah = "eynollah.cli:main"
ocrd-eynollah-segment = "eynollah.ocrd_cli:main"

[project.urls]
Homepage = "https://github.com/qurator-spk/eynollah"
Expand All @@ -38,7 +38,7 @@ Repository = "https://github.com/qurator-spk/eynollah.git"
dependencies = {file = ["requirements.txt"]}

[tool.setuptools.packages.find]
where = ["qurator"]
where = ["src"]

[tool.setuptools.package-data]
"*" = ["*.json", '*.yml', '*.xml', '*.xsd']
27 changes: 0 additions & 27 deletions setup.py

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion qurator/eynollah/cli.py → src/eynollah/cli.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import click
from ocrd_utils import initLogging, setOverrideLogLevel
from qurator.eynollah.eynollah import Eynollah
from eynollah import Eynollah


@click.command()
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_counter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from tests.base import main
from qurator.eynollah.utils.counter import EynollahIdCounter
from src.eynollah.utils.counter import EynollahIdCounter

def test_counter_string():
c = EynollahIdCounter()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_dpi.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import cv2
from pathlib import Path
from qurator.eynollah.utils.pil_cv2 import check_dpi
from src.eynollah.utils.pil_cv2 import check_dpi
from tests.base import main

def test_dpi():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from pathlib import Path
from ocrd_utils import pushd_popd
from tests.base import CapturingTestCase as TestCase, main
from qurator.eynollah.cli import main as eynollah_cli
from src.eynollah.cli import main as eynollah_cli

testdir = Path(__file__).parent.resolve()

Expand Down
12 changes: 6 additions & 6 deletions tests/test_smoke.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
def test_utils_import():
import qurator.eynollah.utils
import qurator.eynollah.utils.contour
import qurator.eynollah.utils.drop_capitals
import qurator.eynollah.utils.drop_capitals
import qurator.eynollah.utils.is_nan
import qurator.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
2 changes: 1 addition & 1 deletion tests/test_xml.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from pytest import main
from qurator.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'
Expand Down

0 comments on commit 4659e2e

Please sign in to comment.