setup.py 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # copyright (c) 2021 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. long_description = "PaddlePaddle End-to-End Development Toolkit"
  16. setuptools.setup(
  17. name="paddlex",
  18. version='2.1.0',
  19. author="paddlex",
  20. author_email="paddlex@baidu.com",
  21. description=long_description,
  22. long_description=long_description,
  23. long_description_content_type="text/plain",
  24. url="https://github.com/PaddlePaddle/PaddleX",
  25. packages=setuptools.find_packages(),
  26. package_data={
  27. 'paddlex_restful/restful/templates':
  28. ['paddlex_restful/restful/templates/paddlex_restful_demo.html']
  29. },
  30. include_package_data=True,
  31. data_files=[('paddlex_restful/restful/templates', [
  32. 'paddlex_restful/restful/templates/paddlex_restful_demo.html'
  33. ])],
  34. include_data_files=True,
  35. setup_requires=['cython', 'numpy'],
  36. install_requires=[
  37. "pycocotools", 'pyyaml', 'colorama', 'tqdm', 'paddleslim==2.2.1',
  38. 'visualdl>=2.2.2', 'shapely>=1.7.0', 'opencv-python', 'scipy', 'lap',
  39. 'motmetrics', 'scikit-learn==0.23.2', 'chardet', 'flask_cors',
  40. 'openpyxl'
  41. ],
  42. classifiers=[
  43. "Programming Language :: Python :: 3",
  44. "License :: OSI Approved :: Apache Software License",
  45. "Operating System :: OS Independent",
  46. ],
  47. license='Apache 2.0',
  48. entry_points={
  49. 'console_scripts': [
  50. 'paddlex=paddlex.command:main',
  51. 'paddlex_restful=paddlex_restful.command:main'
  52. ]
  53. })