rename package to qurator.eynollah

pull/19/head
Konstantin Baierer 3 years ago
parent a96d23712d
commit 58c4403e13

@ -0,0 +1 @@
__import__("pkg_resources").declare_namespace(__name__)

@ -1,7 +1,7 @@
import sys
import click
from ocrd_utils import initLogging, setOverrideLogLevel
from sbb_newspapers_org_image.eynollah import Eynollah
from qurator.eynollah.eynollah import Eynollah
@click.command()

@ -10,12 +10,13 @@ setup(
author='Vahid Rezanezhad',
url='https://github.com/qurator-spk/eynollah',
license='Apache License 2.0',
packages=find_packages(),
namespace_packages=['qurator'],
packages=find_packages(exclude=['tests']),
install_requires=install_requires,
entry_points={
'console_scripts': [
'eynollah=sbb_newspapers_org_image.cli:main',
# 'ocrd-eynollah=eynollah.ocrd_cli:cli',
'eynollah=qurator.eynollah.cli:main',
# 'ocrd-eynollah=qurator.eynollah.ocrd_cli:cli',
]
},
)

@ -1,5 +1,5 @@
from pathlib import Path
from sbb_newspapers_org_image.utils.pil_cv2 import check_dpi
from qurator.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 sbb_newspapers_org_image.cli import main as eynollah_cli
from qurator.eynollah.cli import main as eynollah_cli
testdir = Path(__file__).parent.resolve()

@ -1,7 +1,7 @@
def test_utils_import():
import sbb_newspapers_org_image.utils
import sbb_newspapers_org_image.utils.contour
import sbb_newspapers_org_image.utils.drop_capitals
import sbb_newspapers_org_image.utils.drop_capitals
import sbb_newspapers_org_image.utils.is_nan
import sbb_newspapers_org_image.utils.rotate
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

@ -1,5 +1,5 @@
from lxml import etree as ET
from sbb_newspapers_org_image.utils.xml import create_page_xml, NAMESPACES
from qurator.eynollah.utils.xml import create_page_xml, NAMESPACES
def tostring(el):
return ET.tostring(el).decode('utf-8')

Loading…
Cancel
Save