setup.py 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. from setuptools import setup
  15. from io import open
  16. with open('requirements.txt', encoding="utf-8-sig") as f:
  17. requirements = f.readlines()
  18. requirements.append('tqdm')
  19. def readme():
  20. with open('doc/doc_en/whl_en.md', encoding="utf-8-sig") as f:
  21. README = f.read()
  22. return README
  23. setup(
  24. name='paddleocr',
  25. packages=['paddleocr'],
  26. package_dir={'paddleocr': ''},
  27. include_package_data=True,
  28. entry_points={"console_scripts": ["paddleocr= paddleocr.paddleocr:main"]},
  29. version='2.0.2',
  30. install_requires=requirements,
  31. license='Apache License 2.0',
  32. description='Awesome OCR toolkits based on PaddlePaddle (8.6M ultra-lightweight pre-trained model, support training and deployment among server, mobile, embeded and IoT devices',
  33. long_description=readme(),
  34. long_description_content_type='text/markdown',
  35. url='https://github.com/PaddlePaddle/PaddleOCR',
  36. download_url='https://github.com/PaddlePaddle/PaddleOCR.git',
  37. keywords=[
  38. 'ocr textdetection textrecognition paddleocr crnn east star-net rosetta ocrlite db chineseocr chinesetextdetection chinesetextrecognition'
  39. ],
  40. classifiers=[
  41. 'Intended Audience :: Developers', 'Operating System :: OS Independent',
  42. 'Natural Language :: Chinese (Simplified)',
  43. 'Programming Language :: Python :: 3',
  44. 'Programming Language :: Python :: 3.2',
  45. 'Programming Language :: Python :: 3.3',
  46. 'Programming Language :: Python :: 3.4',
  47. 'Programming Language :: Python :: 3.5',
  48. 'Programming Language :: Python :: 3.6',
  49. 'Programming Language :: Python :: 3.7', 'Topic :: Utilities'
  50. ], )