install into qurator namespace

pull/9/head
Konstantin Baierer 2 years ago
parent abeca0df16
commit e1a440b91c

@ -1 +1 @@
tsvtools/ocrd-tool.json
qurator/tsvtools/ocrd-tool.json

@ -1 +1,2 @@
__import__('pkg_resources').declare_namespace(__name__)

@ -8,11 +8,11 @@ with open('ocrd-tool.json') as fj:
version = load(fj)['version']
setup(
name="tsvtools",
name="qurator_tsvtools",
version=version,
author="",
author="Kai Labusch",
author_email="qurator@sbb.spk-berlin.de",
description="neath",
description="Working with QURATOR TSV, especially for neat",
long_description=open("README.md", "r", encoding='utf-8').read(),
long_description_content_type="text/markdown",
keywords='qurator',
@ -21,15 +21,19 @@ setup(
packages=find_packages(exclude=["*.tests", "*.tests.*",
"tests.*", "tests"]),
install_requires=install_requires,
namespace_packages=['qurator'],
package_data={
'': ['*.json']
},
entry_points={
'console_scripts': [
"extract-doc-links=tsvtools.cli:extract_document_links",
"annotate-tsv=tsvtools.cli:annotate_tsv",
"ocrd-neat-export=tsvtools.ocrd_cli:export_cli",
"ocrd-neat-import=tsvtools.ocrd_cli:import_cli",
"page2tsv=tsvtools.cli:page2tsv_cli",
"tsv2page=tsvtools.cli:tsv2page_cli",
"make-page2tsv-commands=tsvtools.cli:make_page2tsv_commands"
"extract-doc-links=qurator.tsvtools.cli:extract_document_links",
"annotate-tsv=qurator.tsvtools.cli:annotate_tsv",
"ocrd-neat-export=qurator.tsvtools.ocrd_cli:export_cli",
"ocrd-neat-import=qurator.tsvtools.ocrd_cli:import_cli",
"page2tsv=qurator.tsvtools.cli:page2tsv_cli",
"tsv2page=qurator.tsvtools.cli:tsv2page_cli",
"make-page2tsv-commands=qurator.tsvtools.cli:make_page2tsv_commands"
]
},
python_requires='>=3.6.0',

@ -6,7 +6,7 @@ from ocrd_utils import pushd_popd
from ocrd_models.ocrd_page import parse
from ocrd import Resolver
from tsvtools.ocrd_processors import OcrdNeatExportProcessor, OcrdNeatImportProcessor
from qurator.tsvtools.ocrd_processors import OcrdNeatExportProcessor, OcrdNeatImportProcessor
@fixture
def testws(tmpdir):

Loading…
Cancel
Save