Skip to content

Commit 9addfce

Browse files
committed
Merge tag '2.1.2' into develop
2.1.2
2 parents a17fe7f + dbfc4e9 commit 9addfce

6 files changed

Lines changed: 30 additions & 8 deletions

File tree

docs/actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ All actions and {ref}`guards` support multiple method signatures. They follow th
8787

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

90-
### Declare state actions by naming convention
90+
### Bind state actions by naming convention
9191

9292
Callbacks by naming convention will be searched on the StateMachine and on the
9393
model, using the patterns:

docs/releases/2.1.2.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# StateMachine 2.1.2
2+
3+
*October 6, 2023*
4+
5+
This release improves the setup performance of the library by a 10x factor, with a major
6+
refactoring on how we handle the callbacks registry and validations.
7+
8+
See [#401](https://github.com/fgmacedo/python-statemachine/issues/401) for the technical details.
9+
10+
11+
## Python compatibility 2.1.2
12+
13+
StateMachine 2.1.2 supports Python 3.7, 3.8, 3.9, 3.10, 3.11 and 3.12.
14+
15+
On the next major release (3.0.0), we will drop support for Python 3.7.
16+
17+
## Bugfixes in 2.1.2
18+
19+
- Fixes [#406](https://github.com/fgmacedo/python-statemachine/issues/406) action callback being
20+
called twice when mixing decorator syntax combined with the naming convention.

docs/releases/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ Below are release notes through StateMachine and its patch releases.
1313
### 2.0 releases
1414

1515
```{toctree}
16-
:maxdepth: 1
16+
:maxdepth: 2
1717
18+
2.1.2
1819
2.1.1
1920
2.1.0
2021
2.0.0

poetry.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "python-statemachine"
3-
version = "2.1.1"
3+
version = "2.1.2"
44
description = "Python Finite State Machines made easy."
55
authors = ["Fernando Macedo <fgmacedo@gmail.com>"]
66
maintainers = [
@@ -26,14 +26,15 @@ classifiers = [
2626
"Programming Language :: Python :: 3.9",
2727
"Programming Language :: Python :: 3.10",
2828
"Programming Language :: Python :: 3.11",
29+
"Programming Language :: Python :: 3.12",
2930
"Topic :: Software Development :: Libraries"
3031
]
3132

3233
[tool.poetry.extras]
3334
diagrams = ["pydot"]
3435

3536
[tool.poetry.dependencies]
36-
python = ">=3.7, <3.12"
37+
python = ">=3.7, <3.13"
3738

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

6869
[tool.mypy]
69-
python_version = "3.11"
70+
python_version = "3.12"
7071
warn_return_any = true
7172
warn_unused_configs = true
7273
disable_error_code = "annotation-unchecked"

statemachine/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
__author__ = """Fernando Macedo"""
55
__email__ = "fgmacedo@gmail.com"
6-
__version__ = "2.1.1"
6+
__version__ = "2.1.2"
77

88
__all__ = ["StateMachine", "State"]

0 commit comments

Comments
 (0)