Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,15 @@ jobs:
ls: dir
target: i686
python-architecture: x86
interpreter: 3.9 3.10 3.11 3.12 3.13
interpreter: 3.9 3.10 3.11 3.12 3.13 3.14
- os: windows
ls: dir
target: x86_64
interpreter: 3.9 3.10 3.11 3.12 3.13
interpreter: 3.9 3.10 3.11 3.12 3.13 3.14
- os: windows
ls: dir
target: aarch64
interpreter: 3.11 3.12 3.13
interpreter: 3.11 3.12 3.13 3.14
- os: ubuntu
platform: linux
target: i686
Expand All @@ -192,12 +192,12 @@ jobs:
runs-on: ${{ matrix.os }}-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: set up python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.11"
python-version: "3.13"
architecture: ${{ matrix.python-architecture || 'x64' }}

- name: check GITHUB_REF matches package version
Expand Down
30 changes: 15 additions & 15 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ rust-version = "1.77"
[dependencies]
crossbeam-channel = "0.5.15"
notify = { version = "8.0.0" }
pyo3 = { version = "0.25.1", features = [
pyo3 = { version = "0.26.0", features = [
"extension-module",
"generate-import-lib",
] }
Expand Down
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ impl RustNotify {
debounce_ms: u64,
step_ms: u64,
timeout_ms: u64,
stop_event: PyObject,
) -> PyResult<PyObject> {
stop_event: Py<PyAny>,
) -> PyResult<Py<PyAny>> {
if matches!(slf.borrow().watcher, WatcherEnum::None) {
return Err(PyRuntimeError::new_err("RustNotify watcher closed"));
}
Expand All @@ -282,7 +282,7 @@ impl RustNotify {
_ => Some(SystemTime::now() + Duration::from_millis(timeout_ms)),
};
loop {
py.allow_threads(|| sleep(step_time));
py.detach(|| sleep(step_time));
match py.check_signals() {
Ok(_) => (),
Err(_) => {
Expand Down Expand Up @@ -348,7 +348,7 @@ impl RustNotify {
self.watcher = WatcherEnum::None;
}

fn __exit__(&mut self, _exc_type: PyObject, _exc_value: PyObject, _traceback: PyObject) {
fn __exit__(&mut self, _exc_type: Py<PyAny>, _exc_value: Py<PyAny>, _traceback: Py<PyAny>) {
self.close();
}

Expand Down
Loading