Skip to content

Commit f01abae

Browse files
committed
update setup.py, freeze numpy version to 1.11.1, README conversion support
1 parent 907cd8e commit f01abae

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include LICENSE.txt
2+
include LICENSE-3RD-PARTY.txt

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
numpy
1+
numpy==1.11.1
22
wheel
33
twine
44
pypandoc

setup.py

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
import pip
44
import os
55
import 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
817
from cv_version import opencv_version
@@ -31,10 +40,33 @@ def is_pure(self):
3140

3241
setup(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

Comments
 (0)