py-wecom-toolkit 4.2.0__tar.gz → 4.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/PKG-INFO +4 -4
- {py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/pyproject.toml +24 -28
- {py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/.gitignore +0 -0
- {py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/LICENSE +0 -0
- {py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/README.md +0 -0
- {py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/src/py_wecom_toolkit/__init__.py +0 -0
- {py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/src/py_wecom_toolkit/py.typed +0 -0
- {py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/src/py_wecom_toolkit/server/__init__.py +0 -0
- {py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/src/py_wecom_toolkit/server/_caches.py +0 -0
- {py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/src/py_wecom_toolkit/server/_clients.py +0 -0
- {py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/src/py_wecom_toolkit/server/_models.py +0 -0
- {py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/src/py_wecom_toolkit/server/materials/__init__.py +0 -0
- {py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/src/py_wecom_toolkit/server/materials/_clients.py +0 -0
- {py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/src/py_wecom_toolkit/server/materials/_models.py +0 -0
- {py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/src/py_wecom_toolkit/server/messages/__init__.py +0 -0
- {py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/src/py_wecom_toolkit/server/messages/_clients.py +0 -0
- {py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/src/py_wecom_toolkit/server/messages/_msgtypes.py +0 -0
- {py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/src/py_wecom_toolkit/webhook/__init__.py +0 -0
- {py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/src/py_wecom_toolkit/webhook/_clients.py +0 -0
- {py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/src/py_wecom_toolkit/webhook/_models.py +0 -0
- {py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/src/py_wecom_toolkit/webhook/_msgtypes.py +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name:
|
|
3
|
-
Version: 4.2.
|
|
4
|
-
Summary:
|
|
2
|
+
Name: py-wecom-toolkit
|
|
3
|
+
Version: 4.2.3
|
|
4
|
+
Summary: 企业微信 API 工具包
|
|
5
5
|
Project-URL: HomePage, https://gitee.com/guolei19850528/py_wecom_toolkit
|
|
6
6
|
Project-URL: Repository, https://gitee.com/guolei19850528/py_wecom_toolkit
|
|
7
7
|
Author-email: 郭磊 <174000902@qq.com>
|
|
8
8
|
License: MIT
|
|
9
9
|
License-File: LICENSE
|
|
10
|
-
Keywords:
|
|
10
|
+
Keywords: 企业微信,企业微信API,企业微信工具
|
|
11
11
|
Classifier: Development Status :: 4 - Beta
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 使用 Hatchling 构建源码包和 wheel。
|
|
2
2
|
[build-system]
|
|
3
3
|
requires = ["hatchling>=1.0.0"]
|
|
4
4
|
build-backend = "hatchling.build"
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# 项目发布元数据及支持的最低 Python 版本。
|
|
7
7
|
[project]
|
|
8
|
-
name = "
|
|
9
|
-
version = "4.2.
|
|
10
|
-
description = "
|
|
11
|
-
|
|
8
|
+
name = "py-wecom-toolkit"
|
|
9
|
+
version = "4.2.3"
|
|
10
|
+
description = "企业微信 API 工具包"
|
|
11
|
+
# 发布后不会自动更新 README.md 内容,需手动维护。
|
|
12
|
+
readme = { file = "README.md", content-type = "text/markdown" }
|
|
12
13
|
requires-python = ">=3.9"
|
|
13
14
|
license = { text = "MIT" }
|
|
14
15
|
authors = [
|
|
15
16
|
{ name = "郭磊", email = "174000902@qq.com" },
|
|
16
17
|
]
|
|
17
18
|
keywords = [
|
|
18
|
-
"wecom",
|
|
19
|
-
"enterprise-wechat",
|
|
20
|
-
"weixin-work",
|
|
21
|
-
"api",
|
|
22
|
-
"toolkit",
|
|
23
19
|
"企业微信",
|
|
24
20
|
"企业微信API",
|
|
25
21
|
"企业微信工具",
|
|
@@ -47,12 +43,12 @@ dependencies = [
|
|
|
47
43
|
"redis>=5.0.0",
|
|
48
44
|
]
|
|
49
45
|
|
|
50
|
-
#
|
|
46
|
+
# 在包索引页面展示的项目链接。
|
|
51
47
|
[project.urls]
|
|
52
48
|
HomePage = "https://gitee.com/guolei19850528/py_wecom_toolkit"
|
|
53
49
|
Repository = "https://gitee.com/guolei19850528/py_wecom_toolkit"
|
|
54
50
|
|
|
55
|
-
#
|
|
51
|
+
# 开发、测试和文档工具的可选依赖组。
|
|
56
52
|
[project.optional-dependencies]
|
|
57
53
|
dev = [
|
|
58
54
|
"ruff>=0.8.0",
|
|
@@ -71,27 +67,27 @@ docs = [
|
|
|
71
67
|
"mkdocs>=1.5.0",
|
|
72
68
|
"mkdocs-material>=9.0.0",
|
|
73
69
|
]
|
|
74
|
-
#
|
|
70
|
+
# 将所有可选工具组合为一个可安装的依赖组。
|
|
75
71
|
all = [
|
|
76
72
|
"py_wecom_toolkit[dev,test,docs]",
|
|
77
73
|
]
|
|
78
74
|
|
|
79
|
-
#
|
|
75
|
+
# 从 src 布局打包代码,并包含 PEP 561 类型标记。
|
|
80
76
|
[tool.hatch.build.targets.wheel]
|
|
81
77
|
packages = ["src/py_wecom_toolkit"]
|
|
82
78
|
include = ["src/py_wecom_toolkit/py.typed"]
|
|
83
79
|
|
|
84
|
-
#
|
|
80
|
+
# 将源码包内容限制为可分发的源码目录。
|
|
85
81
|
[tool.hatch.build.targets.sdist]
|
|
86
|
-
include = ["/src"]
|
|
82
|
+
include = ["/src","/pyproject.toml","/README.md",]
|
|
87
83
|
|
|
88
|
-
#
|
|
84
|
+
# 源码、示例和测试共用的 Ruff 配置。
|
|
89
85
|
[tool.ruff]
|
|
90
86
|
line-length = 100
|
|
91
87
|
target-version = "py39"
|
|
92
88
|
src = ["src"]
|
|
93
89
|
|
|
94
|
-
#
|
|
90
|
+
# 启用正确性、导入、潜在错误、推导式、语法现代化及 Ruff 规则。
|
|
95
91
|
[tool.ruff.lint]
|
|
96
92
|
select = [
|
|
97
93
|
"E",
|
|
@@ -111,23 +107,23 @@ unused-ignorable-exclude = [
|
|
|
111
107
|
"src/py_wecom_toolkit/**/__init__.py",
|
|
112
108
|
]
|
|
113
109
|
|
|
114
|
-
#
|
|
110
|
+
# 避免包导出和测试断言、夹具触发对应规则。
|
|
115
111
|
[tool.ruff.lint.per-file-ignores]
|
|
116
112
|
"__init__.py" = ["F401"]
|
|
117
113
|
"tests/**" = ["S101", "S311", "PT011", "PT012"]
|
|
118
114
|
|
|
119
|
-
#
|
|
115
|
+
# 统一 Python 文件的格式设置。
|
|
120
116
|
[tool.ruff.format]
|
|
121
117
|
quote-style = "double"
|
|
122
118
|
indent-style = "space"
|
|
123
119
|
magic-trailing-comma = "explode"
|
|
124
120
|
|
|
125
|
-
#
|
|
121
|
+
# 导入排序规则。
|
|
126
122
|
[tool.ruff.isort]
|
|
127
123
|
known-first-party = ["py_wecom_toolkit"]
|
|
128
124
|
force-sort-within-sections = true
|
|
129
125
|
|
|
130
|
-
#
|
|
126
|
+
# 配置 pytest 的用例发现、严格模式、异步支持和覆盖率报告。
|
|
131
127
|
[tool.pytest.ini_options]
|
|
132
128
|
testpaths = ["tests"]
|
|
133
129
|
python_files = ["test_*.py", "*_test.py"]
|
|
@@ -147,7 +143,7 @@ markers = [
|
|
|
147
143
|
]
|
|
148
144
|
asyncio_mode = "auto"
|
|
149
145
|
|
|
150
|
-
#
|
|
146
|
+
# mypy 使用的严格类型检查配置。
|
|
151
147
|
[tool.mypy]
|
|
152
148
|
python_version = "3.9"
|
|
153
149
|
warn_return_any = true
|
|
@@ -159,7 +155,7 @@ plugins = [
|
|
|
159
155
|
"pydantic.mypy",
|
|
160
156
|
]
|
|
161
157
|
|
|
162
|
-
#
|
|
158
|
+
# 第三方库和项目包的导入由各自的类型信息检查。
|
|
163
159
|
[[tool.mypy.overrides]]
|
|
164
160
|
module = [
|
|
165
161
|
"pydantic.*",
|
|
@@ -167,7 +163,7 @@ module = [
|
|
|
167
163
|
]
|
|
168
164
|
ignore_missing_imports = true
|
|
169
165
|
|
|
170
|
-
#
|
|
166
|
+
# 统计已安装包的覆盖率,并排除测试配置文件。
|
|
171
167
|
[tool.coverage.run]
|
|
172
168
|
source = ["py_wecom_toolkit"]
|
|
173
169
|
branch = true
|
|
@@ -176,12 +172,12 @@ omit = [
|
|
|
176
172
|
"*/conftest.py",
|
|
177
173
|
]
|
|
178
174
|
|
|
179
|
-
#
|
|
175
|
+
# 保留 Black 配置,供直接使用 Black 的贡献者使用。
|
|
180
176
|
[tool.black]
|
|
181
177
|
line-length = 100
|
|
182
178
|
target-version = ["py39", "py310", "py311", "py312"]
|
|
183
179
|
|
|
184
|
-
#
|
|
180
|
+
# 保留 isort 配置,供直接使用 isort 的贡献者使用。
|
|
185
181
|
[tool.isort]
|
|
186
182
|
profile = "black"
|
|
187
183
|
line_length = 100
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/src/py_wecom_toolkit/server/materials/__init__.py
RENAMED
|
File without changes
|
{py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/src/py_wecom_toolkit/server/materials/_clients.py
RENAMED
|
File without changes
|
{py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/src/py_wecom_toolkit/server/materials/_models.py
RENAMED
|
File without changes
|
{py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/src/py_wecom_toolkit/server/messages/__init__.py
RENAMED
|
File without changes
|
{py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/src/py_wecom_toolkit/server/messages/_clients.py
RENAMED
|
File without changes
|
{py_wecom_toolkit-4.2.0 → py_wecom_toolkit-4.2.3}/src/py_wecom_toolkit/server/messages/_msgtypes.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|