forked from breezedeus/CnOCR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
57 lines (51 loc) · 1.73 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
#!/usr/bin/env python3
import os
from setuptools import find_packages, setup
from pathlib import Path
PACKAGE_NAME = "cnocr"
here = Path(__file__).parent
long_description = (here / "README.md").read_text(encoding="utf-8")
about = {}
exec(
(here / PACKAGE_NAME.replace('.', os.path.sep) / "__version__.py").read_text(
encoding="utf-8"
),
about,
)
required = [
'numpy>=1.14.0,<1.15.0',
'pillow>=5.3.0',
'mxnet>=1.4.1,<1.5.0',
'gluoncv>=0.3.0,<0.4.0',
]
setup(
name=PACKAGE_NAME,
version=about['__version__'],
description="Package for Chinese OCR, which can be used after installed without training yourself OCR model",
long_description=long_description,
long_description_content_type="text/markdown",
author='breezedeus',
author_email='[email protected]',
license='Apache 2.0',
url='https://github.com/breezedeus/cnocr',
platforms=["Mac", "Linux", "Windows"],
packages=find_packages(),
# entry_points={'cnocr_predict': ['chitchatbot=chitchatbot.cli:main'],
# 'cnocr_train': ['chitchatbot=chitchatbot:Spec']},
include_package_data=True,
install_requires=required,
zip_safe=False,
classifiers=[
'Development Status :: 4 - Beta',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: Implementation',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries'
],
)