diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..2d56d41 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,21 @@ +# Version History + +## 0.2.0 + +### Added + +* Added support for python 3.13 with free threading. +* Added support for python 3.9 with nogil. +* Added support for providing explicit background executor to decorators. +* Added call and iterate benchmarks. + +### Changed + +* Added `call`, `iterate` and `generate` functions. +* Added call benchmarks. diff --git a/pyproject.toml b/pyproject.toml index 94995b0..a060d4c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "athreading" -version = "0.1.2" +version = "0.2.0" description = "Asynchronous threading package for Python" readme = "README.md" authors = ["Callan Gray "] diff --git a/src/athreading/__init__.py b/src/athreading/__init__.py index 31cf38a..175d648 100644 --- a/src/athreading/__init__.py +++ b/src/athreading/__init__.py @@ -5,7 +5,7 @@ from .iterator import ThreadedAsyncIterator, iterate from .type_aliases import AsyncGeneratorContext, AsyncIteratorContext -__version__ = "0.1.2" +__version__ = "0.2.0" __all__ = ( diff --git a/tests/unit/test_athreading.py b/tests/unit/test_athreading.py index f8f27e8..f1d64ef 100644 --- a/tests/unit/test_athreading.py +++ b/tests/unit/test_athreading.py @@ -1,8 +1,12 @@ """Tests for the main module.""" +from importlib.metadata import version + from athreading import __version__ +PACKAGE_VER = version("athreading") + -def test_version(): - """Check that the version is acceptable.""" - assert __version__ == "0.1.2" +def test_module_version(): + """Check that the module and package versions match.""" + assert __version__ == PACKAGE_VER