Skip to content

Commit 263f9ca

Browse files
authored
Merge pull request #319 from QuantStrategyLab/auto/qpk-pin-sync-2381aa4577e9
chore(deps): align QPK pin to 2381aa4577e9
2 parents c05cac4 + fa632fd commit 263f9ca

4 files changed

Lines changed: 17 additions & 8 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies = [
1818
"google-cloud-storage",
1919
"google-auth",
2020
"longport==3.0.23",
21-
"quant-platform-kit @ git+https://github.com/QuantStrategyLab/QuantPlatformKit.git@69a0256934d081b5ef309a885384b9eb9f62cf90",
21+
"quant-platform-kit @ git+https://github.com/QuantStrategyLab/QuantPlatformKit.git@2381aa4577e9fd6329053a73a1c888929170eaf3",
2222
"us-equity-strategies @ git+https://github.com/QuantStrategyLab/UsEquityStrategies.git@17ddb86c72d44b2c7b78ba7a10d8f71b21180166",
2323
"hk-equity-strategies @ git+https://github.com/QuantStrategyLab/HkEquityStrategies.git@b6a8ac2ad3c8110b5ea74fb059c8206388d63bcd",
2424
]
@@ -61,5 +61,5 @@ include = [
6161

6262
[tool.uv]
6363
override-dependencies = [
64-
"quant-platform-kit @ git+https://github.com/QuantStrategyLab/QuantPlatformKit.git@69a0256934d081b5ef309a885384b9eb9f62cf90",
64+
"quant-platform-kit @ git+https://github.com/QuantStrategyLab/QuantPlatformKit.git@2381aa4577e9fd6329053a73a1c888929170eaf3",
6565
]

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: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)