2019-08-23 15:49:35 +02:00
|
|
|
#!/usr/bin/env python3
|
2020-10-15 15:18:57 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from json import load
|
|
|
|
from setuptools import setup, find_packages
|
2019-08-23 15:49:35 +02:00
|
|
|
|
2020-10-15 15:18:57 +02:00
|
|
|
with open('./ocrd-tool.json', 'r') as f:
|
|
|
|
version = load(f)['version']
|
2019-08-23 15:49:35 +02:00
|
|
|
|
2020-10-15 15:18:57 +02:00
|
|
|
install_requires = open('requirements.txt').read().split('\n')
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name='sbb_binarization',
|
|
|
|
version=version,
|
2020-10-16 11:31:14 +02:00
|
|
|
description='Pixelwise binarization with selectional auto-encoders in Keras',
|
2020-10-15 15:18:57 +02:00
|
|
|
long_description=open('README.md').read(),
|
|
|
|
long_description_content_type='text/markdown',
|
|
|
|
author='Vahid Rezanezhad',
|
|
|
|
url='https://github.com/qurator-spk/sbb_binarization',
|
|
|
|
license='Apache License 2.0',
|
|
|
|
packages=find_packages(exclude=('tests', 'docs')),
|
|
|
|
include_package_data=True,
|
2020-10-16 13:31:28 +02:00
|
|
|
package_data={'': ['*.json', '*.yml', '*.yaml']},
|
2020-10-15 15:18:57 +02:00
|
|
|
install_requires=install_requires,
|
|
|
|
entry_points={
|
|
|
|
'console_scripts': [
|
2020-10-15 15:38:49 +02:00
|
|
|
'sbb_binarize=sbb_binarize.cli:main',
|
2020-10-15 17:12:17 +02:00
|
|
|
'ocrd-sbb-binarize=sbb_binarize.ocrd_cli:cli',
|
2020-10-15 15:18:57 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
)
|