wop-python-sdk 0.2.0__tar.gz → 0.2.1__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.
- {wop_python_sdk-0.2.0/src/wop_python_sdk.egg-info → wop_python_sdk-0.2.1}/PKG-INFO +1 -1
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/pyproject.toml +14 -1
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1/src/wop_python_sdk.egg-info}/PKG-INFO +1 -1
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/config/_loader.py +1 -1
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/config/_parser.py +1 -1
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/transport_discovery.py +1 -1
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_bdd.py +0 -1
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_config.py +1 -3
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_config_loading.py +0 -1
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_suites.py +1 -1
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/LICENSE +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/README.md +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/setup.cfg +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_python_sdk.egg-info/SOURCES.txt +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_python_sdk.egg-info/dependency_links.txt +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_python_sdk.egg-info/requires.txt +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_python_sdk.egg-info/top_level.txt +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/__init__.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/canonical.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/client.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/config/__init__.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/config/_models.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/config/_validator.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/config/wopSdkConfig.json +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/digest.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/encoding.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/envelope.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/errors.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/keys.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/signature.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/sm2crypto.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/sm4gcm.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/suites.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/transports/__init__.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/transports/httpx_transport.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/transports/requests_transport.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/transports/urllib_transport.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_canonical.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_client.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_coverage_gaps.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_digest.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_encoding.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_envelope.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_interop.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_keys.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_mutation_gaps.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_signature.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_submchid.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_transports.py +0 -0
- {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_transports_real.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "wop-python-sdk"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.1"
|
|
8
8
|
description = "WOP 商户侧官方 Python SDK:协议核心(签名/摘要/数字信封/验签解密)+ 可插拔 HTTP 适配层"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "MIT" }
|
|
@@ -64,3 +64,16 @@ branch = true
|
|
|
64
64
|
[tool.coverage.report]
|
|
65
65
|
show_missing = true
|
|
66
66
|
precision = 2
|
|
67
|
+
|
|
68
|
+
[tool.ruff]
|
|
69
|
+
target-version = "py39"
|
|
70
|
+
line-length = 120
|
|
71
|
+
# .factory:从上游同步的 vendored 工厂副本,不在本仓维护,排除以免同步覆盖与噪声
|
|
72
|
+
extend-exclude = [".factory"]
|
|
73
|
+
|
|
74
|
+
[tool.ruff.lint]
|
|
75
|
+
# E4/E7/E9/F:语法/未定义名/未用导入变量/重定义等真实错误。
|
|
76
|
+
# E741/E702/E731 是历史代码纯风格(歧义单字母名、分号多语句、lambda 赋值——后者
|
|
77
|
+
# 是模块级公共 API `request_id_generator`,改为 def 会动 griffe API 快照),基线忽略。
|
|
78
|
+
select = ["E4", "E7", "E9", "F"]
|
|
79
|
+
ignore = ["E741", "E702", "E731"]
|
|
@@ -6,7 +6,7 @@ import os
|
|
|
6
6
|
import threading
|
|
7
7
|
from importlib import resources
|
|
8
8
|
from pathlib import Path
|
|
9
|
-
from typing import Callable, Dict,
|
|
9
|
+
from typing import Callable, Dict, Union
|
|
10
10
|
|
|
11
11
|
from ..errors import ConfigurationError
|
|
12
12
|
from ._models import WopSdkConfig
|
|
@@ -4,7 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
import json
|
|
6
6
|
import math
|
|
7
|
-
from typing import Any, Dict, List, Mapping,
|
|
7
|
+
from typing import Any, Dict, List, Mapping, Tuple
|
|
8
8
|
|
|
9
9
|
from ..errors import ConfigurationError
|
|
10
10
|
from ._models import DEFAULT_EXPIRED_SECONDS, HttpClientSettings, WopSdkConfig
|
|
@@ -4,7 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
import importlib.util
|
|
6
6
|
import os
|
|
7
|
-
from typing import Dict, List
|
|
7
|
+
from typing import Dict, List # noqa: F401 — List 是 wildcard 导出的 API 别名(tests/api_snapshot.json 记录),非内部使用
|
|
8
8
|
|
|
9
9
|
from .errors import ConfigurationError
|
|
10
10
|
from .transports import Transport, UrllibTransport
|
|
@@ -3,15 +3,13 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import json
|
|
6
|
-
import os
|
|
7
6
|
import threading
|
|
8
7
|
from pathlib import Path
|
|
9
|
-
from unittest import mock
|
|
10
8
|
|
|
11
9
|
import pytest
|
|
12
10
|
|
|
13
11
|
from wop_sdk.client import WopClient, WopConfig
|
|
14
|
-
from wop_sdk.config import
|
|
12
|
+
from wop_sdk.config import WopSdkConfig, clear_cache, load, load_default
|
|
15
13
|
from wop_sdk.config._parser import parse_config_json
|
|
16
14
|
from wop_sdk.config._validator import join_url, validate_api_path, validate_gateway_url
|
|
17
15
|
from wop_sdk.errors import ConfigurationError, WopGatewayResponseError
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_python_sdk.egg-info/dependency_links.txt
RENAMED
|
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
|
|
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
|
|
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
|
|
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
|