mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-06-07 19:35:01 +02:00
rename package to qurator.eynollah
This commit is contained in:
parent
a96d23712d
commit
58c4403e13
22 changed files with 15 additions and 13 deletions
1
qurator/__init__.py
Normal file
1
qurator/__init__.py
Normal file
|
@ -0,0 +1 @@
|
||||||
|
__import__("pkg_resources").declare_namespace(__name__)
|
|
@ -1,7 +1,7 @@
|
||||||
import sys
|
import sys
|
||||||
import click
|
import click
|
||||||
from ocrd_utils import initLogging, setOverrideLogLevel
|
from ocrd_utils import initLogging, setOverrideLogLevel
|
||||||
from sbb_newspapers_org_image.eynollah import Eynollah
|
from qurator.eynollah.eynollah import Eynollah
|
||||||
|
|
||||||
|
|
||||||
@click.command()
|
@click.command()
|
7
setup.py
7
setup.py
|
@ -10,12 +10,13 @@ setup(
|
||||||
author='Vahid Rezanezhad',
|
author='Vahid Rezanezhad',
|
||||||
url='https://github.com/qurator-spk/eynollah',
|
url='https://github.com/qurator-spk/eynollah',
|
||||||
license='Apache License 2.0',
|
license='Apache License 2.0',
|
||||||
packages=find_packages(),
|
namespace_packages=['qurator'],
|
||||||
|
packages=find_packages(exclude=['tests']),
|
||||||
install_requires=install_requires,
|
install_requires=install_requires,
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': [
|
'console_scripts': [
|
||||||
'eynollah=sbb_newspapers_org_image.cli:main',
|
'eynollah=qurator.eynollah.cli:main',
|
||||||
# 'ocrd-eynollah=eynollah.ocrd_cli:cli',
|
# 'ocrd-eynollah=qurator.eynollah.ocrd_cli:cli',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
from pathlib import Path
|
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
|
from tests.base import main
|
||||||
|
|
||||||
def test_dpi():
|
def test_dpi():
|
||||||
|
|
|
@ -2,7 +2,7 @@ from os import environ
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from ocrd_utils import pushd_popd
|
from ocrd_utils import pushd_popd
|
||||||
from tests.base import CapturingTestCase as TestCase, main
|
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()
|
testdir = Path(__file__).parent.resolve()
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
def test_utils_import():
|
def test_utils_import():
|
||||||
import sbb_newspapers_org_image.utils
|
import qurator.eynollah.utils
|
||||||
import sbb_newspapers_org_image.utils.contour
|
import qurator.eynollah.utils.contour
|
||||||
import sbb_newspapers_org_image.utils.drop_capitals
|
import qurator.eynollah.utils.drop_capitals
|
||||||
import sbb_newspapers_org_image.utils.drop_capitals
|
import qurator.eynollah.utils.drop_capitals
|
||||||
import sbb_newspapers_org_image.utils.is_nan
|
import qurator.eynollah.utils.is_nan
|
||||||
import sbb_newspapers_org_image.utils.rotate
|
import qurator.eynollah.utils.rotate
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
from lxml import etree as ET
|
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):
|
def tostring(el):
|
||||||
return ET.tostring(el).decode('utf-8')
|
return ET.tostring(el).decode('utf-8')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue