Skip to content

Commit a58cb1d

Browse files
committed
python: fix unable to import SecurityBoard
1 parent 47f410f commit a58cb1d

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

python/Makefile.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ dependencies = ["install-maturin"]
66

77
[tasks.install-maturin]
88
command = "pip"
9-
#args = ["install", "maturin>=1.0,<2.0"]
10-
args = ["install", "maturin==1.7.4"]
9+
args = ["install", "maturin>=1.0,<2.0"]
1110

1211
[tasks.install-python-sdk.windows]
1312
command = "pip"
1413
args = [
1514
"install",
16-
"target/wheels/longport-3.0.5-cp311-cp311-win_amd64.whl",
15+
"target/wheels/longport-3.0.9-cp311-cp311-win_amd64.whl",
1716
"-I",
1817
]
1918
dependencies = ["python"]

python/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ dependencies = []
1717
text = "MIT OR Apache-2.0"
1818

1919
[build-system]
20-
# requires = ["maturin>=1.0,<2.0"]
21-
requires = ["maturin==1.7.4"]
20+
requires = ["maturin>=1.0,<2.0"]
2221
build-backend = "maturin"
2322

2423
[project.urls]

python/src/quote/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ pub(crate) fn register_types(parent: &Bound<PyModule>) -> PyResult<()> {
5757
parent.add_class::<types::MarketTradingDays>()?;
5858
parent.add_class::<types::CapitalFlowLine>()?;
5959
parent.add_class::<types::CapitalDistributionResponse>()?;
60+
parent.add_class::<types::SecurityBoard>()?;
6061

6162
parent.add_class::<context::QuoteContext>()?;
6263
Ok(())

0 commit comments

Comments
 (0)