-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
38 lines (33 loc) · 1.56 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
import re,ast
from setuptools import Extension, find_packages, setup,find_packages
def get_version_string():
global version
with open("ultrarpc/__init__.py", "rb") as f:
version_line = re.search(
r"__version__\s+=\s+(.*)", f.read().decode("utf-8")
).group(1)
return str(ast.literal_eval(version_line))
setup(
name="ultrarpc",
version=get_version_string(),
author="ikale",
author_email="[email protected]",
# 最重要的就是py_modules和packages
# py_modules=["major.test1","major.test2"], # py_modules : 打包的.py文件
# packages=["major.major1"], # packages: 打包的python文件夹
packages=find_packages(), # 需要处理的包目录(包含__init__.py的文件夹)
keywords=["RPC", "ultrarpc"], # 程序的关键字列表
description=r"Ultrarpc is 20% faster than zerorpc", # 简单描述
long_description="ultrarpc is ultra light-weight and faster,which take no dependency to the third library .", # 详细描述
license="Apache-2.0", # 授权信息
url="https://github.com/ikale/UltraRpc", # 官网地址
platforms="any", # 适用的软件平台列表
# install_requires=[], # 需要安装的依赖包
# 项目里会有一些非py文件,比如html和js等,这时候就要靠include_package_data和package_data来指定了。
# scripts=[], # 安装时需要执行的脚本列表
# entry_points={ # 动态发现服务和插件
# 'console_scripts': [
# 'jsuniv_sllab = jsuniv_sllab.help:main'
# ]
# }
)