Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
镜像
Eclipse Foundation
paho.mqtt.python
提交
ed0e1856
P
paho.mqtt.python
项目概览
镜像
/
Eclipse Foundation
/
paho.mqtt.python
大约 1 年 前同步成功
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
paho.mqtt.python
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ed0e1856
编写于
7月 07, 2021
作者:
R
Roger A. Light
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use python3 as the default interpreter.
上级
332834e7
变更
54
隐藏空白更改
内联
并排
Showing
54 changed file
with
84 addition
and
80 deletion
+84
-80
Makefile
Makefile
+5
-4
setup.py
setup.py
+2
-1
test/lib/01-keepalive-pingreq.py
test/lib/01-keepalive-pingreq.py
+1
-1
test/lib/01-no-clean-session.py
test/lib/01-no-clean-session.py
+1
-1
test/lib/01-unpwd-empty-password-set.py
test/lib/01-unpwd-empty-password-set.py
+1
-1
test/lib/01-unpwd-empty-set.py
test/lib/01-unpwd-empty-set.py
+1
-1
test/lib/01-unpwd-set.py
test/lib/01-unpwd-set.py
+1
-1
test/lib/01-unpwd-unicode-set.py
test/lib/01-unpwd-unicode-set.py
+1
-1
test/lib/01-will-set.py
test/lib/01-will-set.py
+1
-1
test/lib/01-will-unpwd-set.py
test/lib/01-will-unpwd-set.py
+1
-1
test/lib/01-zero-length-clientid.py
test/lib/01-zero-length-clientid.py
+1
-1
test/lib/02-subscribe-qos0.py
test/lib/02-subscribe-qos0.py
+1
-1
test/lib/02-subscribe-qos1.py
test/lib/02-subscribe-qos1.py
+1
-1
test/lib/02-subscribe-qos2.py
test/lib/02-subscribe-qos2.py
+1
-1
test/lib/02-unsubscribe.py
test/lib/02-unsubscribe.py
+1
-1
test/lib/03-publish-b2c-qos1.py
test/lib/03-publish-b2c-qos1.py
+1
-1
test/lib/03-publish-c2b-qos1-disconnect.py
test/lib/03-publish-c2b-qos1-disconnect.py
+1
-1
test/lib/03-publish-c2b-qos2-disconnect.py
test/lib/03-publish-c2b-qos2-disconnect.py
+1
-1
test/lib/03-publish-helper-qos0.py
test/lib/03-publish-helper-qos0.py
+1
-1
test/lib/03-publish-helper-qos1-disconnect.py
test/lib/03-publish-helper-qos1-disconnect.py
+1
-1
test/lib/03-publish-qos0-no-payload.py
test/lib/03-publish-qos0-no-payload.py
+1
-1
test/lib/03-publish-qos0.py
test/lib/03-publish-qos0.py
+1
-1
test/lib/04-retain-qos0.py
test/lib/04-retain-qos0.py
+1
-1
test/lib/08-ssl-bad-cacert.py
test/lib/08-ssl-bad-cacert.py
+1
-1
test/lib/08-ssl-connect-cert-auth.py
test/lib/08-ssl-connect-cert-auth.py
+1
-1
test/lib/08-ssl-connect-no-auth.py
test/lib/08-ssl-connect-no-auth.py
+1
-1
test/lib/08-ssl-fake-cacert.py
test/lib/08-ssl-fake-cacert.py
+1
-1
test/lib/Makefile
test/lib/Makefile
+26
-24
test/lib/python/01-keepalive-pingreq.test
test/lib/python/01-keepalive-pingreq.test
+1
-1
test/lib/python/01-no-clean-session.test
test/lib/python/01-no-clean-session.test
+1
-1
test/lib/python/01-unpwd-empty-password-set.test
test/lib/python/01-unpwd-empty-password-set.test
+1
-1
test/lib/python/01-unpwd-empty-set.test
test/lib/python/01-unpwd-empty-set.test
+1
-1
test/lib/python/01-unpwd-set.test
test/lib/python/01-unpwd-set.test
+1
-1
test/lib/python/01-unpwd-unicode-set.test
test/lib/python/01-unpwd-unicode-set.test
+1
-1
test/lib/python/01-will-set.test
test/lib/python/01-will-set.test
+1
-1
test/lib/python/01-will-unpwd-set.test
test/lib/python/01-will-unpwd-set.test
+1
-1
test/lib/python/01-zero-length-clientid.test
test/lib/python/01-zero-length-clientid.test
+1
-1
test/lib/python/02-subscribe-qos0.test
test/lib/python/02-subscribe-qos0.test
+1
-1
test/lib/python/02-subscribe-qos1.test
test/lib/python/02-subscribe-qos1.test
+1
-1
test/lib/python/02-subscribe-qos2.test
test/lib/python/02-subscribe-qos2.test
+1
-1
test/lib/python/02-unsubscribe.test
test/lib/python/02-unsubscribe.test
+1
-1
test/lib/python/03-publish-b2c-qos1.test
test/lib/python/03-publish-b2c-qos1.test
+1
-1
test/lib/python/03-publish-b2c-qos2.test
test/lib/python/03-publish-b2c-qos2.test
+1
-1
test/lib/python/03-publish-c2b-qos1-disconnect.test
test/lib/python/03-publish-c2b-qos1-disconnect.test
+1
-1
test/lib/python/03-publish-c2b-qos2-disconnect.test
test/lib/python/03-publish-c2b-qos2-disconnect.test
+1
-1
test/lib/python/03-publish-helper-qos0.test
test/lib/python/03-publish-helper-qos0.test
+1
-1
test/lib/python/03-publish-helper-qos1-disconnect.test
test/lib/python/03-publish-helper-qos1-disconnect.test
+1
-1
test/lib/python/03-publish-qos0-no-payload.test
test/lib/python/03-publish-qos0-no-payload.test
+1
-1
test/lib/python/03-publish-qos0.test
test/lib/python/03-publish-qos0.test
+1
-1
test/lib/python/04-retain-qos0.test
test/lib/python/04-retain-qos0.test
+1
-1
test/lib/python/08-ssl-bad-cacert.test
test/lib/python/08-ssl-bad-cacert.test
+1
-1
test/lib/python/08-ssl-connect-cert-auth.test
test/lib/python/08-ssl-connect-cert-auth.test
+1
-1
test/lib/python/08-ssl-connect-no-auth.test
test/lib/python/08-ssl-connect-no-auth.test
+1
-1
test/lib/python/08-ssl-fake-cacert.test
test/lib/python/08-ssl-fake-cacert.test
+1
-1
未找到文件。
Makefile
浏览文件 @
ed0e1856
# Set DESTDIR if it isn't given
DESTDIR
?=
/
PYTHON
?=
python3
.PHONY
:
all clean clean-build clean-pyc clean-test install test upload
all
:
python
./setup.py build
$(PYTHON)
./setup.py build
install
:
all
python
./setup.py
install
--root
=
${DESTDIR}
$(PYTHON)
./setup.py
install
--root
=
${DESTDIR}
clean
:
clean-build clean-pyc clean-test
##
remove all build
,
test
,
coverage and Python artifacts
...
...
@@ -31,8 +32,8 @@ clean-test: ## remove test and coverage artifacts
rm
-fr
htmlcov/
test
:
python
setup.py
test
$(PYTHON)
setup.py
test
$(MAKE)
-C
test test
upload
:
test
python
./setup.py sdist upload
$(PYTHON)
./setup.py sdist upload
setup.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# -*- coding: utf-8 -*-
import
sys
...
...
@@ -50,6 +50,7 @@ setup(
'Programming Language :: Python :: 3.6'
,
'Programming Language :: Python :: 3.7'
,
'Programming Language :: Python :: 3.8'
,
'Programming Language :: Python :: 3.9'
,
'Topic :: Communications'
,
'Topic :: Internet'
,
],
...
...
test/lib/01-keepalive-pingreq.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client sends a pingreq after the keepalive time
...
...
test/lib/01-no-clean-session.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client produces a correct connect with clean session not set.
...
...
test/lib/01-unpwd-empty-password-set.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client produces a correct connect with a username and password.
...
...
test/lib/01-unpwd-empty-set.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client produces a correct connect with a username and password.
...
...
test/lib/01-unpwd-set.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client produces a correct connect with a username and password.
...
...
test/lib/01-unpwd-unicode-set.py
100644 → 100755
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client produces a correct connect with a unicode username and password.
...
...
test/lib/01-will-set.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client produces a correct connect with a will.
# Will QoS=1, will retain=1.
...
...
test/lib/01-will-unpwd-set.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client produces a correct connect with a will, username and password.
...
...
test/lib/01-zero-length-clientid.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client connects correctly with a zero length clientid.
...
...
test/lib/02-subscribe-qos0.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client sends a correct SUBSCRIBE to a topic with QoS 0.
...
...
test/lib/02-subscribe-qos1.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client sends a correct SUBSCRIBE to a topic with QoS 1.
...
...
test/lib/02-subscribe-qos2.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client sends a correct SUBSCRIBE to a topic with QoS 2.
...
...
test/lib/02-unsubscribe.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client sends a correct UNSUBSCRIBE packet.
...
...
test/lib/03-publish-b2c-qos1.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client responds correctly to a PUBLISH with QoS 1.
...
...
test/lib/03-publish-c2b-qos1-disconnect.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client sends a correct PUBLISH to a topic with QoS 1, then responds correctly to a disconnect.
...
...
test/lib/03-publish-c2b-qos2-disconnect.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client sends a correct PUBLISH to a topic with QoS 2 and responds to a disconnect.
...
...
test/lib/03-publish-helper-qos0.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client sends a correct PUBLISH to a topic with QoS 0.
# Use paho.mqtt.publish helper for that.
...
...
test/lib/03-publish-helper-qos1-disconnect.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client sends a correct PUBLISH to a topic with QoS 1,
# then responds correctly to a disconnect.
...
...
test/lib/03-publish-qos0-no-payload.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client sends a correct PUBLISH to a topic with QoS 0 and no payload.
...
...
test/lib/03-publish-qos0.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client sends a correct PUBLISH to a topic with QoS 0.
...
...
test/lib/04-retain-qos0.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client sends a correct retained PUBLISH to a topic with QoS 0.
...
...
test/lib/08-ssl-bad-cacert.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
context
...
...
test/lib/08-ssl-connect-cert-auth.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client produces a correct connect and subsequent disconnect when using SSL.
# Client must provide a certificate.
...
...
test/lib/08-ssl-connect-no-auth.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
# Test whether a client produces a correct connect and subsequent disconnect when using SSL.
...
...
test/lib/08-ssl-fake-cacert.py
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
time
...
...
test/lib/Makefile
浏览文件 @
ed0e1856
.PHONY
:
all test
.NOTPARALLEL
:
PYTHON
?=
python3
all
:
test
:
python
./01-will-set.py python/01-will-set.test
python
./01-unpwd-set.py python/01-unpwd-set.test
python
./01-unpwd-unicode-set.py python/01-unpwd-unicode-set.test
python
./01-unpwd-empty-password-set.py python/01-unpwd-empty-password-set.test
python
./01-unpwd-empty-set.py python/01-unpwd-empty-set.test
python
./01-will-unpwd-set.py python/01-will-unpwd-set.test
python
./01-zero-length-clientid.py python/01-zero-length-clientid.test
python
./01-no-clean-session.py python/01-no-clean-session.test
python
./01-keepalive-pingreq.py python/01-keepalive-pingreq.test
python
./02-subscribe-qos0.py python/02-subscribe-qos0.test
python
./02-subscribe-qos1.py python/02-subscribe-qos1.test
python
./02-subscribe-qos2.py python/02-subscribe-qos2.test
python
./02-unsubscribe.py python/02-unsubscribe.test
python
./03-publish-qos0.py python/03-publish-qos0.test
python
./03-publish-qos0-no-payload.py python/03-publish-qos0-no-payload.test
python
./03-publish-c2b-qos1-disconnect.py python/03-publish-c2b-qos1-disconnect.test
python
./03-publish-c2b-qos2-disconnect.py python/03-publish-c2b-qos2-disconnect.test
python
./03-publish-b2c-qos1.py python/03-publish-b2c-qos1.test
python
./03-publish-helper-qos0.py python/03-publish-helper-qos0.test
python
./03-publish-helper-qos1-disconnect.py python/03-publish-helper-qos1-disconnect.test
python
./04-retain-qos0.py python/04-retain-qos0.test
python
./08-ssl-connect-no-auth.py python/08-ssl-connect-no-auth.test
python
./08-ssl-connect-cert-auth.py python/08-ssl-connect-cert-auth.test
python
./08-ssl-bad-cacert.py python/08-ssl-bad-cacert.test
$(PYTHON)
./01-will-set.py python/01-will-set.test
$(PYTHON)
./01-unpwd-set.py python/01-unpwd-set.test
$(PYTHON)
./01-unpwd-unicode-set.py python/01-unpwd-unicode-set.test
$(PYTHON)
./01-unpwd-empty-password-set.py python/01-unpwd-empty-password-set.test
$(PYTHON)
./01-unpwd-empty-set.py python/01-unpwd-empty-set.test
$(PYTHON)
./01-will-unpwd-set.py python/01-will-unpwd-set.test
$(PYTHON)
./01-zero-length-clientid.py python/01-zero-length-clientid.test
$(PYTHON)
./01-no-clean-session.py python/01-no-clean-session.test
$(PYTHON)
./01-keepalive-pingreq.py python/01-keepalive-pingreq.test
$(PYTHON)
./02-subscribe-qos0.py python/02-subscribe-qos0.test
$(PYTHON)
./02-subscribe-qos1.py python/02-subscribe-qos1.test
$(PYTHON)
./02-subscribe-qos2.py python/02-subscribe-qos2.test
$(PYTHON)
./02-unsubscribe.py python/02-unsubscribe.test
$(PYTHON)
./03-publish-qos0.py python/03-publish-qos0.test
$(PYTHON)
./03-publish-qos0-no-payload.py python/03-publish-qos0-no-payload.test
$(PYTHON)
./03-publish-c2b-qos1-disconnect.py python/03-publish-c2b-qos1-disconnect.test
$(PYTHON)
./03-publish-c2b-qos2-disconnect.py python/03-publish-c2b-qos2-disconnect.test
$(PYTHON)
./03-publish-b2c-qos1.py python/03-publish-b2c-qos1.test
$(PYTHON)
./03-publish-helper-qos0.py python/03-publish-helper-qos0.test
$(PYTHON)
./03-publish-helper-qos1-disconnect.py python/03-publish-helper-qos1-disconnect.test
$(PYTHON)
./04-retain-qos0.py python/04-retain-qos0.test
$(PYTHON)
./08-ssl-connect-no-auth.py python/08-ssl-connect-no-auth.test
$(PYTHON)
./08-ssl-connect-cert-auth.py python/08-ssl-connect-cert-auth.test
$(PYTHON)
./08-ssl-bad-cacert.py python/08-ssl-bad-cacert.test
test/lib/python/01-keepalive-pingreq.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
os
import
subprocess
...
...
test/lib/python/01-no-clean-session.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
paho
.
mqtt
.
client
as
mqtt
...
...
test/lib/python/01-unpwd-empty-password-set.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
paho
.
mqtt
.
client
as
mqtt
...
...
test/lib/python/01-unpwd-empty-set.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
paho
.
mqtt
.
client
as
mqtt
...
...
test/lib/python/01-unpwd-set.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
paho
.
mqtt
.
client
as
mqtt
...
...
test/lib/python/01-unpwd-unicode-set.test
100644 → 100755
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
from
__future__
import
unicode_literals
...
...
test/lib/python/01-will-set.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
paho
.
mqtt
.
client
as
mqtt
...
...
test/lib/python/01-will-unpwd-set.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
paho
.
mqtt
.
client
as
mqtt
...
...
test/lib/python/01-zero-length-clientid.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
os
import
subprocess
...
...
test/lib/python/02-subscribe-qos0.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
os
import
subprocess
...
...
test/lib/python/02-subscribe-qos1.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
os
import
subprocess
...
...
test/lib/python/02-subscribe-qos2.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
os
import
subprocess
...
...
test/lib/python/02-unsubscribe.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
os
import
subprocess
...
...
test/lib/python/03-publish-b2c-qos1.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
os
import
subprocess
...
...
test/lib/python/03-publish-b2c-qos2.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
os
import
subprocess
...
...
test/lib/python/03-publish-c2b-qos1-disconnect.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
os
import
subprocess
...
...
test/lib/python/03-publish-c2b-qos2-disconnect.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
os
import
subprocess
...
...
test/lib/python/03-publish-helper-qos0.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
paho
.
mqtt
.
publish
...
...
test/lib/python/03-publish-helper-qos1-disconnect.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
paho
.
mqtt
.
publish
...
...
test/lib/python/03-publish-qos0-no-payload.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
os
import
subprocess
...
...
test/lib/python/03-publish-qos0.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
os
import
subprocess
...
...
test/lib/python/04-retain-qos0.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
os
import
subprocess
...
...
test/lib/python/08-ssl-bad-cacert.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
os
import
subprocess
...
...
test/lib/python/08-ssl-connect-cert-auth.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
os
import
subprocess
...
...
test/lib/python/08-ssl-connect-no-auth.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
os
import
subprocess
...
...
test/lib/python/08-ssl-fake-cacert.test
浏览文件 @
ed0e1856
#!/usr/bin/env python
#!/usr/bin/env python
3
import
os
import
subprocess
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录