Skip to content

Commit

Permalink
Merge tag '2.1.2' into develop
Browse files Browse the repository at this point in the history
2.1.2
  • Loading branch information
fgmacedo committed Oct 6, 2023
2 parents a17fe7f + dbfc4e9 commit 9addfce
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ All actions and {ref}`guards` support multiple method signatures. They follow th

For each defined {ref}`state`, you can declare `enter` and `exit` callbacks.

### Declare state actions by naming convention
### Bind state actions by naming convention

Callbacks by naming convention will be searched on the StateMachine and on the
model, using the patterns:
Expand Down
20 changes: 20 additions & 0 deletions docs/releases/2.1.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# StateMachine 2.1.2

*October 6, 2023*

This release improves the setup performance of the library by a 10x factor, with a major
refactoring on how we handle the callbacks registry and validations.

See [#401](https://github.com/fgmacedo/python-statemachine/issues/401) for the technical details.


## Python compatibility 2.1.2

StateMachine 2.1.2 supports Python 3.7, 3.8, 3.9, 3.10, 3.11 and 3.12.

On the next major release (3.0.0), we will drop support for Python 3.7.

## Bugfixes in 2.1.2

- Fixes [#406](https://github.com/fgmacedo/python-statemachine/issues/406) action callback being
called twice when mixing decorator syntax combined with the naming convention.
3 changes: 2 additions & 1 deletion docs/releases/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ Below are release notes through StateMachine and its patch releases.
### 2.0 releases

```{toctree}
:maxdepth: 1
:maxdepth: 2
2.1.2
2.1.1
2.1.0
2.0.0
Expand Down
4 changes: 2 additions & 2 deletions poetry.lock

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

7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "python-statemachine"
version = "2.1.1"
version = "2.1.2"
description = "Python Finite State Machines made easy."
authors = ["Fernando Macedo <fgmacedo@gmail.com>"]
maintainers = [
Expand All @@ -26,14 +26,15 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries"
]

[tool.poetry.extras]
diagrams = ["pydot"]

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

[tool.poetry.group.dev.dependencies]
pytest = "^7.2.0"
Expand Down Expand Up @@ -66,7 +67,7 @@ addopts = "--ignore=docs/conf.py --ignore=docs/auto_examples/ --ignore=docs/_bui
doctest_optionflags = "ELLIPSIS IGNORE_EXCEPTION_DETAIL NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL"

[tool.mypy]
python_version = "3.11"
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
disable_error_code = "annotation-unchecked"
Expand Down
2 changes: 1 addition & 1 deletion statemachine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

__author__ = """Fernando Macedo"""
__email__ = "fgmacedo@gmail.com"
__version__ = "2.1.1"
__version__ = "2.1.2"

__all__ = ["StateMachine", "State"]

0 comments on commit 9addfce

Please sign in to comment.