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__) __import__('pkg_resources').declare_namespace(__name__)

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

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

Loading…
Cancel
Save