Skip to content

Commit

Permalink
build(deps): update pyo3 requirement in /bindings/python
Browse files Browse the repository at this point in the history
Updates the requirements on [pyo3](https://github.com/pyo3/pyo3) to permit the latest version.
- [Release notes](https://github.com/pyo3/pyo3/releases)
- [Changelog](https://github.com/PyO3/pyo3/blob/main/CHANGELOG.md)
- [Commits](PyO3/pyo3@v0.21.0...v0.22.0)

---
updated-dependencies:
- dependency-name: pyo3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Dmitry Dygalo <[email protected]>
  • Loading branch information
dependabot[bot] authored and Stranger6667 committed Jul 6, 2024
1 parent ea6b923 commit 8fdeb61
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions bindings/python/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

### Changed

- Update `PyO3` to `0.22.0`.

## [0.14.1] - 2024-04-27

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ crate-type = ["cdylib"]
built = { version = "0.7.1", features = ["cargo-lock", "chrono"] }

[dependencies]
pyo3 = { version = "0.21.0", features = ["extension-module", "abi3-py37"] }
pyo3 = { version = "0.22.0", features = ["extension-module", "abi3-py37"] }
pyo3-built = "0.5"
rayon = "1"
url = "2"
Expand Down
12 changes: 6 additions & 6 deletions bindings/python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ struct StylesheetCache {
#[pymethods]
impl StylesheetCache {
#[new]
#[pyo3(text_signature = "(size=8)")]
#[pyo3(signature = (size))]
fn new(size: Option<&Bound<'_, PyAny>>) -> PyResult<Self> {
let size = if let Some(size) = size {
const ERROR_MESSAGE: &str = "Cache size must be an integer greater than zero";
Expand Down Expand Up @@ -135,7 +135,7 @@ macro_rules! inliner {
impl CSSInliner {
#[new]
#[pyo3(
text_signature = "(inline_style_tags=True, keep_style_tags=False, keep_link_tags=False, base_url=None, load_remote_stylesheets=True, cache=None, extra_css=None, preallocate_node_capacity=32)"
signature = (inline_style_tags=true, keep_style_tags=false, keep_link_tags=false, base_url=None, load_remote_stylesheets=true, cache=None, extra_css=None, preallocate_node_capacity=32)
)]
#[allow(clippy::too_many_arguments)]
fn new(
Expand Down Expand Up @@ -206,7 +206,7 @@ impl CSSInliner {
/// Inline CSS in the given HTML document
#[pyfunction]
#[pyo3(
text_signature = "(html, inline_style_tags=True, keep_style_tags=False, keep_link_tags=False, base_url=None, load_remote_stylesheets=True, cache=None, extra_css=None, preallocate_node_capacity=32)"
signature = (html, inline_style_tags=true, keep_style_tags=false, keep_link_tags=false, base_url=None, load_remote_stylesheets=true, cache=None, extra_css=None, preallocate_node_capacity=32)
)]
#[allow(clippy::too_many_arguments)]
fn inline(
Expand Down Expand Up @@ -238,7 +238,7 @@ fn inline(
/// Inline CSS in the given HTML fragment
#[pyfunction]
#[pyo3(
text_signature = "(html, css, inline_style_tags=True, keep_style_tags=False, keep_link_tags=False, base_url=None, load_remote_stylesheets=True, cache=None, extra_css=None, preallocate_node_capacity=32)"
signature = (html, css, inline_style_tags=true, keep_style_tags=false, keep_link_tags=false, base_url=None, load_remote_stylesheets=true, cache=None, extra_css=None, preallocate_node_capacity=32)
)]
#[allow(clippy::too_many_arguments)]
fn inline_fragment(
Expand Down Expand Up @@ -273,7 +273,7 @@ fn inline_fragment(
/// Inline CSS in multiple HTML documents
#[pyfunction]
#[pyo3(
text_signature = "(htmls, inline_style_tags=True, keep_style_tags=False, keep_link_tags=False, base_url=None, load_remote_stylesheets=True, cache=None, extra_css=None, preallocate_node_capacity=32)"
signature = (htmls, inline_style_tags=true, keep_style_tags=false, keep_link_tags=false, base_url=None, load_remote_stylesheets=true, cache=None, extra_css=None, preallocate_node_capacity=32)
)]
#[allow(clippy::too_many_arguments)]
fn inline_many(
Expand Down Expand Up @@ -318,7 +318,7 @@ fn inline_many_impl(
/// Inline CSS in multiple HTML fragments
#[pyfunction]
#[pyo3(
text_signature = "(htmls, css, inline_style_tags=True, keep_style_tags=False, keep_link_tags=False, base_url=None, load_remote_stylesheets=True, cache=None, extra_css=None, preallocate_node_capacity=32)"
signature = (htmls, css, inline_style_tags=true, keep_style_tags=false, keep_link_tags=false, base_url=None, load_remote_stylesheets=true, cache=None, extra_css=None, preallocate_node_capacity=32)
)]
#[allow(clippy::too_many_arguments)]
fn inline_many_fragments(
Expand Down

0 comments on commit 8fdeb61

Please sign in to comment.