-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
84 lines (77 loc) · 2.39 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import os
import re
from pathlib import Path
from setuptools import setup
def read(file_name):
with open(
os.path.join(
Path(os.path.dirname(__file__)),
file_name)
) as _file:
return _file.read()
long_description = read('README.md')
setup(
name='nkocr',
version=re.findall(
re.compile(r'[0-9]+\.[0-9]+\.[0-9]+'),
read('__version__.py')
)[0],
description='This is a module to make specifics OCRs \
at food products and nutricional tables.',
url='https://github.com/Lucs1590/Nkocr',
download_url='https://github.com/Lucs1590/Nkocr',
license='Apache License 2.0',
author='Lucas de Brito Silva',
author_email='[email protected]',
py_modules=['nkocr', 'auxiliary', 'ocr_product', 'ocr_table'],
package_dir={'': 'src'},
package_data={'': ['src/dictionary/dictionary.pkl']},
long_description=long_description,
long_description_content_type='text/markdown',
keywords=[
'ocr',
'tesseract-ocr',
'nk',
'python3',
'python-3',
'food-products'
],
classifiers=[
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Intended Audience :: Healthcare Industry',
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: Apache Software License',
'Topic :: Communications :: Email',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Image Processing',
'Topic :: Scientific/Engineering :: Image Recognition',
'Topic :: Software Development :: Testing'
],
python_requires='>=3.6',
install_requires=[
'tesseract==0.1.3',
'pytesseract==0.3.10',
'requests==2.32.0',
'wheel==0.43.*',
'Pillow>=10.2.0',
'numpy==1.26.0',
'opencv-contrib-python==4.10.0.84',
'scikit-learn==1.5.0',
'gdown==5.1.0',
'imutils==0.5.4',
'symspellpy==6.7.7'
],
extras_require={
'dev': [
'pytest>=3.7',
'pytest-socket==0.6.0',
'commitizen==3.10.0',
'pre-commit==3.4.0'
]
}
)