Skip to content

Commit

Permalink
Merge pull request #453 from andfoy/update_dependencies
Browse files Browse the repository at this point in the history
Update PyO3 to 0.22.3 and winpty-rs to 0.4.0
  • Loading branch information
andfoy authored Oct 17, 2024
2 parents d8ca9cb + 2e651c1 commit 9987fbe
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 103 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
Expand Down Expand Up @@ -118,3 +119,6 @@ cywinpty.c
.vs/
.vscode/
CppProperties.json

# Debug VS files
*.sln
179 changes: 80 additions & 99 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ name = "winpty"
crate-type = ["cdylib"]

[dependencies]
winpty-rs = "0.3.15"
winpty-rs = "0.4"

[dependencies.pyo3]
version = "0.21.2"
version = "0.22.3"
features = ["extension-module"]

[package.metadata.docs.rs]
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,9 @@ impl PyPTY {
}

#[pymodule]
fn winpty(py: Python, m: &PyModule) -> PyResult<()> {
fn winpty(py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()> {
m.add("__version__", VERSION)?;
m.add("WinptyError", py.get_type::<WinptyError>())?;
m.add("WinptyError", py.get_type_bound::<WinptyError>())?;
m.add_class::<PyPTY>()?;
Ok(())
}

0 comments on commit 9987fbe

Please sign in to comment.