File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ """
2+ Build backend wrapper for maturin that suppresses RUST_LOG to prevent
3+ INFO-level span close events from being printed to stdout after the wheel path,
4+ which would cause maturin's Python wrapper to misidentify the log line as the path.
5+ """
6+ import os
7+
8+ os .environ .setdefault ("RUST_LOG" , "warn" )
9+ if os .environ .get ("RUST_LOG" , "warn" ).lower () == "info" :
10+ os .environ ["RUST_LOG" ] = "warn"
11+
12+ from maturin import (
13+ build_editable ,
14+ build_sdist ,
15+ build_wheel ,
16+ get_requires_for_build_editable ,
17+ get_requires_for_build_sdist ,
18+ get_requires_for_build_wheel ,
19+ prepare_metadata_for_build_editable ,
20+ prepare_metadata_for_build_wheel ,
21+ )
22+
23+ __all__ = [
24+ "build_editable" ,
25+ "build_sdist" ,
26+ "build_wheel" ,
27+ "get_requires_for_build_editable" ,
28+ "get_requires_for_build_sdist" ,
29+ "get_requires_for_build_wheel" ,
30+ "prepare_metadata_for_build_editable" ,
31+ "prepare_metadata_for_build_wheel" ,
32+ ]
Original file line number Diff line number Diff line change @@ -13,15 +13,16 @@ license = {text = "MIT"}
1313name = " markdown-query"
1414readme = " README.md"
1515requires-python = " >=3.10"
16- version = " 0.5.25 "
16+ version = " 0.5.26 "
1717
1818[tool .maturin ]
1919module-name = " mq.mq"
2020python-packages = [" mq" ]
2121python-source = " src"
2222
2323[build-system ]
24- build-backend = " maturin"
24+ build-backend = " _maturin_wrapper"
25+ backend-path = [" ." ]
2526requires = [" maturin>=1.0,<2.0" ]
2627
2728[dependency-groups ]
You can’t perform that action at this time.
0 commit comments