setup.py 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. import setuptools
  15. import sys
  16. long_description = "PaddlePaddle Entire Process Development Toolkit"
  17. setuptools.setup(
  18. name="paddlex",
  19. version='1.3.7',
  20. author="paddlex",
  21. author_email="paddlex@baidu.com",
  22. description=long_description,
  23. long_description=long_description,
  24. long_description_content_type="text/plain",
  25. url="https://github.com/PaddlePaddle/PaddleX",
  26. packages=setuptools.find_packages(),
  27. package_data={
  28. 'paddlex_restful/restful/templates':
  29. ['paddlex_restful/restful/templates/paddlex_restful_demo.html']
  30. },
  31. include_package_data=True,
  32. data_files=[('paddlex_restful/restful/templates', [
  33. 'paddlex_restful/restful/templates/paddlex_restful_demo.html'
  34. ])],
  35. include_data_files=True,
  36. setup_requires=['cython', 'numpy'],
  37. install_requires=[
  38. "pycocotools;platform_system!='Windows'", 'pyyaml', 'colorama', 'tqdm',
  39. 'paddleslim==1.1.1', 'visualdl>=2.0.0', 'paddlehub==2.0.1',
  40. 'shapely>=1.7.0', 'opencv-python', 'flask_cors', 'sklearn', 'psutil',
  41. 'xlwt'
  42. ],
  43. classifiers=[
  44. "Programming Language :: Python :: 3",
  45. "License :: OSI Approved :: Apache Software License",
  46. "Operating System :: OS Independent",
  47. ],
  48. license='Apache 2.0',
  49. entry_points={
  50. 'console_scripts': [
  51. 'paddlex=paddlex.command:main',
  52. 'paddlex_restful=paddlex_restful.command:main'
  53. ]
  54. })