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