setup.py 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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.6',
  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'",
  39. 'pyyaml',
  40. 'colorama',
  41. 'tqdm',
  42. 'paddleslim==1.1.1',
  43. 'visualdl>=2.0.0', #'paddlehub==1.8.2',
  44. 'shapely>=1.7.0',
  45. 'opencv-python',
  46. 'flask_cors',
  47. 'sklearn',
  48. 'psutil',
  49. 'xlwt'
  50. ],
  51. classifiers=[
  52. "Programming Language :: Python :: 3",
  53. "License :: OSI Approved :: Apache Software License",
  54. "Operating System :: OS Independent",
  55. ],
  56. license='Apache 2.0',
  57. entry_points={
  58. 'console_scripts': [
  59. 'paddlex=paddlex.command:main',
  60. 'paddlex_restful=paddlex_restful.command:main'
  61. ]
  62. })