-
Notifications
You must be signed in to change notification settings - Fork 141
/
setup.py
150 lines (139 loc) · 6.02 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# coding=utf-8
from setuptools import setup, find_packages
from funboost import __version__
extra_brokers = ['confluent_kafka==1.7.0',
"pulsar-client==3.1.0; python_version>='3.7'",
'celery',
'flower',
'nameko==2.14.1',
'sqlalchemy==1.4.13',
'sqlalchemy_utils==0.36.1',
'dramatiq==1.14.2',
'huey==2.4.5',
'rq==1.15.0',
'kombu',
'eventlet==0.33.3',
'gevent==22.10.2',
'elasticsearch',
'gnsq==1.0.1',
'psutil',
'peewee==3.17.3',
'nats-python',
'aiohttp==3.8.3',
'paho-mqtt',
'rocketmq',
'zmq',
'pyzmq',
'kafka-python==2.0.2',
]
extra_flask = ['flask', 'flask_bootstrap', 'flask_wtf', 'wtforms', 'flask_login']
setup(
name='funboost', #
version=__version__,
description=(
'pip install funboost,python全功能分布式函数调度框架,funboost的功能是全面性重量级,用户能想得到的功能99%全都有;funboost的使用方式是轻量级,只有@boost一行代码需要写。支持python所有类型的并发模式和一切知名消息队列中间件,支持如 celery dramatiq等框架整体作为funboost中间件,python函数加速器,框架包罗万象,用户能想到的控制功能全都有。一统编程思维,兼容50% python业务场景,适用范围广。只需要一行代码即可分布式执行python一切函数,99%用过funboost的pythoner 感受是 简易 方便 强劲 强大,相见恨晚 '
),
# long_description=open('README.md', 'r',encoding='utf8').read(),
keywords=["funboost", "distributed-framework", "function-scheduling", "rabbitmq", "rocketmq", "kafka", "nsq", "redis", "disk",
"sqlachemy", "consume-confirm", "timing", "task-scheduling", "apscheduler", "pulsar", "mqtt", "kombu", "的", "celery", "框架", '分布式调度'],
long_description_content_type="text/markdown",
long_description=open('README.md', 'r', encoding='utf8').read(),
author='bfzs',
author_email='ydf0509@sohu.com',
maintainer='ydf',
maintainer_email='ydf0509@sohu.com',
license='BSD License',
# packages=['douban'], #
packages=find_packages() + ['funboost.beggar_version_implementation', 'funboost.assist'], # 也可以写在 MANiFEST.in
# packages=['function_scheduling_distributed_framework'], # 这样内层级文件夹的没有打包进去。
include_package_data=True,
platforms=["all"],
url='https://github.com/ydf0509/funboost',
classifiers=[
'Development Status :: 4 - Beta',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: Implementation',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
# 'Programming Language :: Python :: 3.13',
# 'Programming Language :: Python :: 3.14',
# 'Programming Language :: Python :: 3.15',
# 'Programming Language :: Python :: 3.16',
# 'Programming Language :: Python :: 3.17',
# 'Programming Language :: Python :: 3.18',
# 'Programming Language :: Python :: 3.19',
# 'Programming Language :: Python :: 3.20',
# 'Programming Language :: Python :: 3.21',
"Programming Language :: Python :: 3 :: Only",
'Topic :: Software Development :: Libraries'
],
install_requires=[
'nb_log>=13.2',
'nb_libs>=1.8',
'nb_time>=2.1',
"pymongo>=4.6.3", # 3.5.1 -> 4.0.2
'AMQPStorm==2.10.6',
'rabbitpy==2.0.1',
'decorator==5.1.1',
'tomorrow3==1.1.0',
'persist-queue>=0.4.2',
'apscheduler>=3.10.1',
'pikav0',
'pikav1',
'redis2',
'redis3',
'redis5',
'redis',
'setuptools_rust',
'fabric2==2.6.0', # 有的机器包rust错误, 这样做 curl https://sh.rustup.rs -sSf | sh
'nb_filelock',
'pysnooper',
'deprecated',
'cryptography',
'auto_run_on_remote',
'frozenlist',
'fire',
'pydantic',
'orjson',
"async-timeout",
"typing-extensions",
],
extras_require={'all': extra_brokers + extra_flask,
'extra_brokers': extra_brokers,
'flask': extra_flask,
},
entry_points={
'console_scripts': [
'funboost = funboost.__main__:main',
'funboost_cli_super = funboost.__main__:main',
]}
)
"""
官方 https://pypi.org/simple
清华 https://pypi.tuna.tsinghua.edu.cn/simple
豆瓣 https://pypi.douban.com/simple/
阿里云 https://mirrors.aliyun.com/pypi/simple/
腾讯云 http://mirrors.tencentyun.com/pypi/simple/
打包上传
python setup.py sdist upload -r pypi
# python setup.py bdist_wheel
python setup.py bdist_wheel ; python -m twine upload dist/funboost-23.5-py3-none-any.whl
python setup.py bdist_wheel && python -m twine upload dist/funboost-24.8-py3-none-any.whl
python setup.py sdist & twine upload dist/funboost-10.9.tar.gz
最快的下载方式,上传立即可安装。阿里云源同步官网pypi间隔要等很久。
./pip install funboost==3.5 -i https://pypi.org/simple
最新版下载
./pip install funboost --upgrade -i https://pypi.org/simple
pip install funboost[all] # 安装其他所有冷门的中间件操作包。
从git安装
pip install git+https://github.com/ydf0509/funboost.git
pip install git+https://gitee.com/bfzshen/funboost.git
"""