Skip to content

Commit e394ffb

Browse files
authored
Release 0.9.2 (#62)
1 parent f91d97c commit e394ffb

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

.github/workflows/python-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
python-version: ["3.8", "3.9", "3.10", "3.11"]
26+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12-dev"]
2727

2828
steps:
2929
- uses: actions/checkout@v4

async_tkinter_loop/async_tkinter_loop.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import _tkinter
21
import asyncio
32
import tkinter
43
from functools import wraps
4+
from tkinter import TclError
55
from typing import Any, Callable, Coroutine
66

7-
from tkinter import TclError
7+
import _tkinter
88

99

1010
async def main_loop(root: tkinter.Tk) -> None:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "async-tkinter-loop"
3-
version = "0.9.1"
3+
version = "0.9.2"
44
description = "Asynchronous mainloop implementation for tkinter"
55
authors = ["insolor <[email protected]>"]
66
license = "MIT"

tests/test_mixins.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import tkinter
22

3-
import customtkinter
3+
try:
4+
import customtkinter
5+
except ModuleNotFoundError:
6+
# Catch `ModuleNotFoundError: No module named 'distutils'` error in customtkinter
7+
customtkinter = None
8+
49
import pytest
510

611
from async_tkinter_loop.mixins import AsyncCTk, AsyncTk
@@ -18,6 +23,7 @@ class App(tkinter.Tk, AsyncTk):
1823
app.async_mainloop()
1924

2025

26+
@pytest.mark.skipif(customtkinter is None, reason="Skipped because customtkinter is incompatible with Python 3.12")
2127
@pytest.mark.timeout(TIMEOUT)
2228
def test_destroy_ctk():
2329
class App(customtkinter.CTk, AsyncCTk):

0 commit comments

Comments
 (0)