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.
Files changed (50) hide show
  1. {wop_python_sdk-0.2.0/src/wop_python_sdk.egg-info → wop_python_sdk-0.2.1}/PKG-INFO +1 -1
  2. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/pyproject.toml +14 -1
  3. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1/src/wop_python_sdk.egg-info}/PKG-INFO +1 -1
  4. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/config/_loader.py +1 -1
  5. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/config/_parser.py +1 -1
  6. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/transport_discovery.py +1 -1
  7. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_bdd.py +0 -1
  8. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_config.py +1 -3
  9. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_config_loading.py +0 -1
  10. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_suites.py +1 -1
  11. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/LICENSE +0 -0
  12. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/README.md +0 -0
  13. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/setup.cfg +0 -0
  14. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_python_sdk.egg-info/SOURCES.txt +0 -0
  15. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_python_sdk.egg-info/dependency_links.txt +0 -0
  16. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_python_sdk.egg-info/requires.txt +0 -0
  17. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_python_sdk.egg-info/top_level.txt +0 -0
  18. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/__init__.py +0 -0
  19. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/canonical.py +0 -0
  20. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/client.py +0 -0
  21. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/config/__init__.py +0 -0
  22. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/config/_models.py +0 -0
  23. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/config/_validator.py +0 -0
  24. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/config/wopSdkConfig.json +0 -0
  25. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/digest.py +0 -0
  26. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/encoding.py +0 -0
  27. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/envelope.py +0 -0
  28. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/errors.py +0 -0
  29. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/keys.py +0 -0
  30. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/signature.py +0 -0
  31. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/sm2crypto.py +0 -0
  32. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/sm4gcm.py +0 -0
  33. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/suites.py +0 -0
  34. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/transports/__init__.py +0 -0
  35. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/transports/httpx_transport.py +0 -0
  36. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/transports/requests_transport.py +0 -0
  37. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/src/wop_sdk/transports/urllib_transport.py +0 -0
  38. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_canonical.py +0 -0
  39. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_client.py +0 -0
  40. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_coverage_gaps.py +0 -0
  41. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_digest.py +0 -0
  42. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_encoding.py +0 -0
  43. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_envelope.py +0 -0
  44. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_interop.py +0 -0
  45. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_keys.py +0 -0
  46. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_mutation_gaps.py +0 -0
  47. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_signature.py +0 -0
  48. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_submchid.py +0 -0
  49. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_transports.py +0 -0
  50. {wop_python_sdk-0.2.0 → wop_python_sdk-0.2.1}/tests/test_transports_real.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wop-python-sdk
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: WOP 商户侧官方 Python SDK:协议核心(签名/摘要/数字信封/验签解密)+ 可插拔 HTTP 适配层
5
5
  Author: wop-platform
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "wop-python-sdk"
7
- version = "0.2.0"
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"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wop-python-sdk
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: WOP 商户侧官方 Python SDK:协议核心(签名/摘要/数字信封/验签解密)+ 可插拔 HTTP 适配层
5
5
  Author: wop-platform
6
6
  License: MIT
@@ -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, Optional, Union
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, MutableMapping, Tuple
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
@@ -10,7 +10,6 @@ D5 纪律(入向测试的平台侧构造,禁止复用被测出向路径)
10
10
  import base64
11
11
  import hashlib
12
12
  import json
13
- import os
14
13
  import re
15
14
 
16
15
  import pytest
@@ -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 HttpClientSettings, WopSdkConfig, clear_cache, load, load_default
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
@@ -5,7 +5,6 @@
5
5
  transport_discovery 59%),PR 新增加载链未带测试。本文件按 term-missing 行号逐段闭合。
6
6
  """
7
7
  import json
8
- import sys
9
8
  from pathlib import Path
10
9
 
11
10
  import pytest
@@ -3,7 +3,7 @@
3
3
  import pytest
4
4
 
5
5
  from wop_sdk.errors import SuiteParseError, UnsupportedSuiteError
6
- from wop_sdk.suites import Suite, parse_suite
6
+ from wop_sdk.suites import parse_suite
7
7
 
8
8
 
9
9
  class TestParsePositive:
File without changes
File without changes
File without changes