Skip to content

Commit 3968b55

Browse files
Pigbibicodex
andcommitted
fix(deps): resolve QPK pin consistently
Co-Authored-By: Codex <noreply@openai.com>
1 parent 2894077 commit 3968b55

3 files changed

Lines changed: 13 additions & 4 deletions

File tree

qsl.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ upgrade_ring = "ring_d"
55
allow_legacy = false
66

77
[qsl.requires]
8-
quant_platform_kit = "69a0256934d081b5ef309a885384b9eb9f62cf90"
8+
quant_platform_kit = "2381aa4577e9fd6329053a73a1c888929170eaf3"
99
us_equity_strategies = "17ddb86c72d44b2c7b78ba7a10d8f71b21180166"
1010
hk_equity_strategies = "b6a8ac2ad3c8110b5ea74fb059c8206388d63bcd"
1111

tests/test_qsl_metadata.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55

66

77
def test_qsl_metadata_has_runtime_platform_fields() -> None:
8-
qsl_path = Path(__file__).resolve().parents[1] / "qsl.toml"
9-
with qsl_path.open("rb") as f:
8+
root = Path(__file__).resolve().parents[1]
9+
with (root / "qsl.toml").open("rb") as f:
1010
qsl = tomllib.load(f)["qsl"]
11+
with (root / "pyproject.toml").open("rb") as f:
12+
project = tomllib.load(f)
1113

1214
assert qsl["tier"] == "runtime"
1315
assert qsl["upgrade_ring"] == "ring_d"
@@ -17,3 +19,10 @@ def test_qsl_metadata_has_runtime_platform_fields() -> None:
1719
assert "quant_platform_kit" in requires
1820
assert "us_equity_strategies" in requires
1921
assert "hk_equity_strategies" in requires
22+
23+
dependency = next(
24+
value for value in project["project"]["dependencies"] if value.startswith("quant-platform-kit @ ")
25+
)
26+
qpk_pin = dependency.rsplit("@", maxsplit=1)[1]
27+
assert requires["quant_platform_kit"] == qpk_pin
28+
assert f"QuantPlatformKit.git?rev={qpk_pin}#{qpk_pin}" in (root / "uv.lock").read_text(encoding="utf-8")

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)