mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-06-09 20:29:55 +02:00
refactor namespace to eynollah
This commit is contained in:
parent
6018b354aa
commit
21a47c081a
27 changed files with 14 additions and 14 deletions
|
@ -1,7 +1,7 @@
|
|||
import sys
|
||||
import click
|
||||
from ocrd_utils import initLogging, setOverrideLogLevel
|
||||
from qurator.eynollah.eynollah import Eynollah
|
||||
from eynollah.eynollah.eynollah import Eynollah
|
||||
|
||||
|
||||
@click.command()
|
6
setup.py
6
setup.py
|
@ -13,7 +13,7 @@ setup(
|
|||
author='Vahid Rezanezhad',
|
||||
url='https://github.com/qurator-spk/eynollah',
|
||||
license='Apache License 2.0',
|
||||
namespace_packages=['qurator'],
|
||||
namespace_packages=['eynollah'],
|
||||
packages=find_packages(exclude=['tests']),
|
||||
install_requires=install_requires,
|
||||
package_data={
|
||||
|
@ -21,8 +21,8 @@ setup(
|
|||
},
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
'eynollah=qurator.eynollah.cli:main',
|
||||
'ocrd-eynollah-segment=qurator.eynollah.ocrd_cli:main',
|
||||
'eynollah=eynollah.eynollah.cli:main',
|
||||
'ocrd-eynollah-segment=eynollah.eynollah.ocrd_cli:main',
|
||||
]
|
||||
},
|
||||
)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from tests.base import main
|
||||
from qurator.eynollah.utils.counter import EynollahIdCounter
|
||||
from eynollah.eynollah.utils.counter import EynollahIdCounter
|
||||
|
||||
def test_counter_string():
|
||||
c = EynollahIdCounter()
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import cv2
|
||||
from pathlib import Path
|
||||
from qurator.eynollah.utils.pil_cv2 import check_dpi
|
||||
from eynollah.eynollah.utils.pil_cv2 import check_dpi
|
||||
from tests.base import main
|
||||
|
||||
def test_dpi():
|
||||
|
|
|
@ -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 qurator.eynollah.cli import main as eynollah_cli
|
||||
from eynollah.eynollah.cli import main as eynollah_cli
|
||||
|
||||
testdir = Path(__file__).parent.resolve()
|
||||
|
||||
|
|
|
@ -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 eynollah.eynollah.utils
|
||||
import eynollah.eynollah.utils.contour
|
||||
import eynollah.eynollah.utils.drop_capitals
|
||||
import eynollah.eynollah.utils.drop_capitals
|
||||
import eynollah.eynollah.utils.is_nan
|
||||
import eynollah.eynollah.utils.rotate
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from pytest import main
|
||||
from qurator.eynollah.utils.xml import create_page_xml
|
||||
from eynollah.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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue