-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathsetup.py
46 lines (42 loc) · 1.47 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from setuptools import find_packages
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
"""
这里这么写的目的是防止setup导入出错,安装出现异常。但一般不会出错
"""
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='visualize',
version='0.5.1', # 版本号
author='rentianhe',
author_email='[email protected]',
description='useful visualization function',
license='MIT',
packages=find_packages(),#需要安装的代码包,也可以用find_packages函数
install_requires=['numpy',
'opencv-python',
'matplotlib',
'Pillow',
],
classifiers = [
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
],
keywords='computer vision',
url='https://github.com/rentainhe/visualization',
# zip_safe=True, # 设为True,以zip的方式进行传输
# include_package_data=True,
platforms='any',
long_description=long_description,
long_description_content_type="text/markdown",
)