-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (51 loc) · 1.85 KB
/
setup.py
File metadata and controls
56 lines (51 loc) · 1.85 KB
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
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env python
#-*- coding:utf-8 -*-
from setuptools import setup, find_packages
from install_script import install_cmd
with open("README.md", "r",encoding="utf-8") as fh:
long_description = fh.read()
# see https://packaging.python.org/tutorials/packaging-projects/
setup(
# 固定部分
name="kdPythonAPIViewer",
version="1.0.13",
author="bkdwei",
author_email="bkdwei@163.com",
maintainer="韦坤东",
maintainer_email="bkdwei@163.com",
long_description=long_description,
# long_description_content_type="text/markdown",
url="https://github.com/bkdwei/kdLaunchPad",
license="GPLv3+",
platforms=["any"],
# 需要安装的依赖
install_requires=["PyQt5"],
packages=find_packages(),
zip_safe=False,
include_package_data=True,
# 可变部分
description="an Python API viewer,query python module's method and attribute.",
keywords=("API","viewer","module","method"),
# see https://pypi.org/classifiers/
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: X11 Applications :: Qt",
"Intended Audience :: Developers",
"Natural Language :: Chinese (Simplified)",
"Topic :: Software Development :: Documentation",
"Programming Language :: Python :: 3",
" License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows"
],
# 添加这个选项,在windows下Python目录的scripts下生成exe文件
# 注意:模块与函数之间是冒号:
entry_points={
'gui_scripts': [
'kdPythonAPIViewer=kdPythonAPIViewer.kdPythonAPIViewer:main'
],
},
cmdclass={
'install': install_cmd,
}
)