-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
69 lines (66 loc) · 1.96 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
'''
@Author: DukeBode
@Date: 2020-04-25 09:19:10
@LastEditTime: 2020-04-25 10:14:11
@LastEditors: Please set LastEditors
@Description: In User Settings Edit
@FilePath: \Yiban\setup.py
'''
# 删除 dist、Forum-Data 文件夹
from shutil import rmtree
rmtree('Forum-Data',ignore_errors=True)
rmtree('build',ignore_errors=True)
rmtree('dist',ignore_errors=True)
del rmtree
with open('README.md','r',encoding='utf-8') as f:
# 读取说明文档
long_description = f.read()
from setuptools import setup, find_packages
from yiban import __version__
setup(
name = "yiban",
# 版本
# 正式版.公测版.修复版.调试次数
version = __version__,
# 作者
author = 'DukeBode',
author_email = '[email protected]',
# 描述
description='Yiban Api',
long_description=long_description,
long_description_content_type="text/markdown",
# 项目网址
url = 'https://github.com/DukeBode/Yiban',
packages = find_packages(),
# platforms =
# 许可证
license = 'BSD 3-Clause',
classifiers=[
# https://pypi.org/classifiers/
'Development Status :: 1 - Planning',
'Operating System :: Microsoft :: Windows :: Windows 10',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: PyPy',
'Natural Language :: Chinese (Simplified)',
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Intended Audience :: Education',
],
install_requires=[
'openpyxl'
],
# scripts=['yiban/edata.py'],
# entry_points={
# 'console_scripts': [
# 'edata=yiban:main',
# ],
# },
# 关键字
keywords='Yiban',
project_urls={ # Optional
'Bug Reports': 'https://github.com/DukeBode/Yiban/issues',
'Source': 'https://github.com/DukeBode/Yiban',
'Documentation': 'https://dukebode.github.io/Yiban',
},
python_requires='>=3.8',
)