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
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
os: [ubuntu, windows, macos-x86_64, macos-arm64]
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
qt-version: ["pyside2", "pyside6", "pyqt5", "pyqt6"]
include:
- os: ubuntu
Expand All @@ -38,6 +38,8 @@ jobs:
# pyside2 requires python <3.11
- python-version: "3.11"
qt-version: pyside2
- python-version: "3.12"
qt-version: pyside2
# pyside6 and pyqt6 require python >=3.9
- python-version: "3.8"
qt-version: pyside6
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

With `qasync`, you can use `asyncio` functionalities directly inside Qt app's event loop, in the main thread. Using async functions for Python tasks can be much easier and cleaner than using `threading.Thread` or `QThread`.

If you need some CPU-intensive tasks to be executed in parallel, `qasync` also got that covered, providing `QEventLoop.run_in_executor` which is functionally identical to that of `asyncio`.
If you need some CPU-intensive tasks to be executed in parallel, `qasync` also got that covered, providing `QEventLoop.run_in_executor` which is functionally identical to that of `asyncio`. By default `QThreadExecutor` is used, but any class implementing the `concurrent.futures.Executor` interface will do the job.

### Basic Example

Expand Down Expand Up @@ -69,7 +69,7 @@ More detailed examples can be found [here](https://github.com/CabbageDevelopment

## Requirements

- Python >= 3.8
- Python >=3.8, <3.13
- PyQt5/PyQt6 or PySide2/PySide6

`qasync` is tested on Ubuntu, Windows and MacOS.
Expand Down
178 changes: 176 additions & 2 deletions poetry.lock

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

17 changes: 13 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,24 @@ classifiers = [
]

[tool.poetry.dependencies]
python = ">=3.8, <3.12"
python = ">=3.8, <3.13"

[tool.poetry.group.dev.dependencies]
pre-commit = "^2.21"

[tool.poetry.group.test.dependencies]
pytest = "^7.4"
pytest-cov = "^4.1"
pytest-xdist = { version = "^3.3", extras = ["psutil"] }
pytest = [
{ version = "^7.4", python = "<3.9" },
{ version = "^8.4", python = ">=3.9" },
]
pytest-cov = [
{ version = "^4.1", python = "<3.9" },
{ version = "^6.2", python = ">=3.9" },
]
pytest-xdist = [
{ version = "^3.3", extras = [ "psutil", ], python = "<3.9" },
{ version = "^3.8", extras = [ "psutil", ], python = ">=3.9" },
]

[tool.poetry.group.typing.dependencies]
mypy = ">=1.0"
Expand Down
Loading