diff --git a/Cargo.lock b/Cargo.lock index 20add6d..5abcca0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -103,9 +103,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chrono" -version = "0.4.32" +version = "0.4.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41daef31d7a747c5c847246f36de49ced6f7403b4cdabc807a97b5cc184cda7a" +checksum = "9f13690e35a5e4ace198e7beea2895d29f3a9cc55015fcebe6336bd2010af9eb" dependencies = [ "android-tzdata", "iana-time-zone", @@ -647,7 +647,7 @@ checksum = "b62dbe01f0b06f9d8dc7d49e05a0785f153b00b2c227856282f671e0318c9b15" dependencies = [ "aho-corasick", "memchr", - "regex-automata 0.4.4", + "regex-automata 0.4.5", "regex-syntax 0.8.2", ] @@ -662,9 +662,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.4" +version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b7fa1134405e2ec9353fd416b17f8dacd46c473d7d3fd1cf202706a14eb792a" +checksum = "5bb987efffd3c6d0d8f5f89510bb458559eab11e4f869acb20bf845e016259cd" dependencies = [ "aho-corasick", "memchr", diff --git a/Cargo.toml b/Cargo.toml index 981a649..d2ba9d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ crate-type = ["cdylib"] [dependencies] ryo3 = { path = "./crates/ryo3" } -pyo3.workspace = true +pyo3 = { workspace = true, features = ["experimental-inspect"] } pyo3-asyncio = {workspace = true, features = ["attributes", "tokio-runtime"] } tokio.workspace = true tracing.workspace = true @@ -52,7 +52,7 @@ license = "MIT OR Apache-2.0" anyhow = "1.0.75" chrono = "0.4.31" dirs = { version = "5.0.1", features = [] } -pyo3 = "0.20.0" +pyo3 = { version = "0.20.0", features = ["experimental-inspect"] } pyo3-asyncio = { version = "0.20.0", features = ["attributes", "tokio-runtime"] } pyo3-build-config = "0.20.0" regex = "1.10.3" diff --git a/crates/ryo3/Cargo.toml b/crates/ryo3/Cargo.toml index 409a844..49aec1d 100644 --- a/crates/ryo3/Cargo.toml +++ b/crates/ryo3/Cargo.toml @@ -7,7 +7,7 @@ edition.workspace = true [dependencies] dirs.workspace = true fnv = "1.0.7" -pyo3 = { workspace = true } +pyo3 = { workspace = true, features = ["experimental-inspect"] } pyo3-asyncio = { workspace = true, features = ["attributes", "tokio-runtime"] } regex.workspace = true serde.workspace = true diff --git a/crates/ryo3/src/sh.rs b/crates/ryo3/src/sh.rs index 641a0b0..3b3c5e7 100644 --- a/crates/ryo3/src/sh.rs +++ b/crates/ryo3/src/sh.rs @@ -19,6 +19,8 @@ pub fn pwd() -> String { .to_string() } + +/// Change the current working directory to the specified path #[pyfunction] pub fn cd( // py: Python<'_>, diff --git a/python/tests/test_version.py b/python/tests/test_version.py index 512f639..6c6d57a 100644 --- a/python/tests/test_version.py +++ b/python/tests/test_version.py @@ -48,7 +48,7 @@ def test_version() -> None: cargo_version = _version_from_workspace_package() assert ry.__version__ == cargo_version - pyproject_dict = tomli.loads(Path(PYPROJECT_TOML).read_text()) - print(pyproject_dict) - pyproject_version = pyproject_dict["project"]["version"] - assert ry.__version__ == pyproject_version + # pyproject_dict = tomli.loads(Path(PYPROJECT_TOML).read_text()) + # print(pyproject_dict) + # pyproject_version = pyproject_dict["project"]["version"] + # assert ry.__version__ == pyproject_version