Skip to content

Commit ca71dc0

Browse files
committed
chore(python): Update dependencies
1 parent 643fcb8 commit ca71dc0

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

bindings/python/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
- Update `cssparser` to `0.31.2`.
99
- Update `selectors` to `0.25`.
1010
- Bump MSRV to `1.65`.
11+
- Update `PyO3` to `0.20.0`.
12+
- Update `built` to `0.7.1`.
1113

1214
### Fixed
1315

bindings/python/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ name = "css_inline"
1111
crate-type = ["cdylib"]
1212

1313
[build-dependencies]
14-
built = { version = "0.6", features = ["chrono"] }
14+
built = { version = "0.7.1", features = ["cargo-lock", "chrono"] }
1515

1616
[dependencies.css-inline]
1717
path = "../../css-inline"
@@ -22,7 +22,7 @@ features = ["http", "file"]
2222
[dependencies]
2323
url = "2"
2424
rayon = "1"
25-
pyo3 = { version = "0.19.0", features = ["extension-module", "abi3-py37"] }
25+
pyo3 = { version = "0.20.0", features = ["extension-module", "abi3-py37"] }
2626
pyo3-built = "0.4"
2727

2828
[profile.release]

bindings/python/build.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
fn main() {
2-
let src = std::env::var("CARGO_MANIFEST_DIR").unwrap();
3-
let dst = std::path::Path::new(&std::env::var("OUT_DIR").unwrap()).join("built.rs");
4-
let mut opts = built::Options::default();
5-
opts.set_dependencies(true).set_compiler(true).set_env(true);
6-
built::write_built_file_with_opts(&opts, std::path::Path::new(&src), &dst)
7-
.expect("Failed to acquire build-time information");
2+
built::write_built_file().expect("Failed to acquire build-time information");
83
}

bindings/python/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ macro_rules! inliner {
9292

9393
#[pymethods]
9494
impl CSSInliner {
95-
#[new(
95+
#[new]
96+
#[pyo3(
9697
text_signature = "(inline_style_tags=True, keep_style_tags=False, keep_link_tags=False, base_url=None, load_remote_stylesheets=True, extra_css=None, preallocate_node_capacity=32)"
9798
)]
9899
fn new(

0 commit comments

Comments
 (0)