Skip to content

Commit

Permalink
chore(python): Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Stranger6667 committed Dec 4, 2023
1 parent 643fcb8 commit ca71dc0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 2 additions & 0 deletions bindings/python/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
- Update `cssparser` to `0.31.2`.
- Update `selectors` to `0.25`.
- Bump MSRV to `1.65`.
- Update `PyO3` to `0.20.0`.
- Update `built` to `0.7.1`.

### Fixed

Expand Down
4 changes: 2 additions & 2 deletions bindings/python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name = "css_inline"
crate-type = ["cdylib"]

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

[dependencies.css-inline]
path = "../../css-inline"
Expand All @@ -22,7 +22,7 @@ features = ["http", "file"]
[dependencies]
url = "2"
rayon = "1"
pyo3 = { version = "0.19.0", features = ["extension-module", "abi3-py37"] }
pyo3 = { version = "0.20.0", features = ["extension-module", "abi3-py37"] }
pyo3-built = "0.4"

[profile.release]
Expand Down
7 changes: 1 addition & 6 deletions bindings/python/build.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
fn main() {
let src = std::env::var("CARGO_MANIFEST_DIR").unwrap();
let dst = std::path::Path::new(&std::env::var("OUT_DIR").unwrap()).join("built.rs");
let mut opts = built::Options::default();
opts.set_dependencies(true).set_compiler(true).set_env(true);
built::write_built_file_with_opts(&opts, std::path::Path::new(&src), &dst)
.expect("Failed to acquire build-time information");
built::write_built_file().expect("Failed to acquire build-time information");
}
3 changes: 2 additions & 1 deletion bindings/python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ macro_rules! inliner {

#[pymethods]
impl CSSInliner {
#[new(
#[new]
#[pyo3(
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)"
)]
fn new(
Expand Down

0 comments on commit ca71dc0

Please sign in to comment.