🧹 sbb_textline_detector: Use same structure as the other projects

pull/1/head
Gerber, Mike 5 years ago
parent b85a9dc256
commit 599bbf1c86

@ -1,8 +1,9 @@
FROM python:3 FROM python:3
ADD main.py /
ADD requirements.txt / ADD requirements.txt /
RUN pip install --proxy=http-proxy.sbb.spk-berlin.de:3128 -r requirements.txt RUN pip install --proxy=http-proxy.sbb.spk-berlin.de:3128 -r requirements.txt
ENTRYPOINT ["python", "./main.py"] COPY . /usr/src/sbb_textline_detector
RUN pip install /usr/src/sbb_textline_detector
ENTRYPOINT ["sbb_textline_detector"]

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

@ -20,7 +20,7 @@ setup(
install_requires=install_requires, install_requires=install_requires,
entry_points={ entry_points={
'console_scripts': [ 'console_scripts': [
"text_line_recognition=main:main", "sbb_textline_detector=qurator.sbb_textline_detector:main",
] ]
}, },
python_requires='>=3.6.0', python_requires='>=3.6.0',
@ -31,4 +31,4 @@ setup(
'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Artificial Intelligence', 'Topic :: Scientific/Engineering :: Artificial Intelligence',
], ],
) )

Loading…
Cancel
Save