33import pip
44import os
55import sys
6+ import pypandoc
7+
8+ long_description = ""
9+
10+ try :
11+ long_description = pypandoc .convert ('README.md' , 'rst' )
12+ except OSError as e :
13+ print ("Pypandoc import failed, please install pandoc." )
14+ sys .exit (1 )
615
716# cv_version.py should be generated by running find_version.py
817from cv_version import opencv_version
@@ -31,10 +40,33 @@ def is_pure(self):
3140
3241setup (name = 'opencv-python' ,
3342 version = opencv_version ,
34- description = 'OpenCV' ,
43+ url = 'https://github.com/skvark/opencv-python' ,
44+ license = 'MIT' ,
45+ description = 'Wrapper package for OpenCV python bindings.' ,
46+ long_description = long_description ,
3547 distclass = BinaryDistribution ,
3648 packages = ['cv2' ],
3749 package_data = package_data ,
50+ maintainer = "Olli-Pekka Heinisuo" ,
3851 include_package_data = True ,
3952 install_requires = "numpy==%s" % numpy_version ,
53+ classifiers = [
54+ 'Development Status :: 5 - Production/Stable' ,
55+ 'Environment :: Console' ,
56+ 'Intended Audience :: Developers' ,
57+ 'Intended Audience :: Education' ,
58+ 'Intended Audience :: Information Technology' ,
59+ 'Intended Audience :: Science/Research' ,
60+ 'License :: OSI Approved :: MIT License' ,
61+ 'Operating System :: MacOS' ,
62+ 'Operating System :: Microsoft :: Windows' ,
63+ 'Operating System :: POSIX' ,
64+ 'Operating System :: Unix' ,
65+ 'Programming Language :: Python' ,
66+ 'Programming Language :: C++' ,
67+ 'Programming Language :: Python :: Implementation :: CPython' ,
68+ 'Topic :: Scientific/Engineering' ,
69+ 'Topic :: Scientific/Engineering :: Image Recognition' ,
70+ 'Topic :: Software Development' ,
71+ ]
4072 )
0 commit comments