setup.py 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import os
  2. import sys
  3. import platform
  4. import setuptools
  5. SCRIPT_DIR=os.path.dirname(os.path.abspath(__file__))
  6. def main():
  7. os.chdir(SCRIPT_DIR)
  8. package_name = 'opencv'
  9. package_version = os.environ.get('OPENCV_VERSION', '4.5.5') # TODO
  10. long_description = 'Open Source Computer Vision Library Python bindings' # TODO
  11. setuptools.setup(
  12. name=package_name,
  13. version=package_version,
  14. url='https://github.com/opencv/opencv',
  15. license='Apache 2.0',
  16. description='OpenCV python bindings',
  17. long_description=long_description,
  18. long_description_content_type="text/markdown",
  19. packages=setuptools.find_packages(),
  20. maintainer="OpenCV Team",
  21. install_requires="numpy",
  22. classifiers=[
  23. 'Development Status :: 5 - Production/Stable',
  24. 'Environment :: Console',
  25. 'Intended Audience :: Developers',
  26. 'Intended Audience :: Education',
  27. 'Intended Audience :: Information Technology',
  28. 'Intended Audience :: Science/Research',
  29. 'License :: Apache 2.0 License',
  30. 'Operating System :: MacOS',
  31. 'Operating System :: Microsoft :: Windows',
  32. 'Operating System :: POSIX',
  33. 'Operating System :: Unix',
  34. 'Programming Language :: Python',
  35. 'Programming Language :: Python :: 2',
  36. 'Programming Language :: Python :: 2.7',
  37. 'Programming Language :: Python :: 3',
  38. 'Programming Language :: Python :: 3.4',
  39. 'Programming Language :: Python :: 3.5',
  40. 'Programming Language :: Python :: 3.6',
  41. 'Programming Language :: Python :: 3.7',
  42. 'Programming Language :: Python :: 3.8',
  43. 'Programming Language :: Python :: 3.9',
  44. 'Programming Language :: C++',
  45. 'Programming Language :: Python :: Implementation :: CPython',
  46. 'Topic :: Scientific/Engineering',
  47. 'Topic :: Scientific/Engineering :: Image Recognition',
  48. 'Topic :: Software Development',
  49. 'Topic :: Software Development :: Libraries',
  50. ],
  51. )
  52. if __name__ == '__main__':
  53. main()