Skip to content

Commit 0610c9d

Browse files
committed
Merge branch 'release/2.3.6'
2 parents a1501f9 + 97e4576 commit 0610c9d

14 files changed

Lines changed: 77 additions & 21 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
4242
- name: Install dependencies
4343
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
44-
run: poetry install --no-interaction --no-root
44+
run: poetry install --no-interaction --no-root --all-extras
4545
#----------------------------------------------
4646
# run ruff
4747
#----------------------------------------------

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
4242
- name: Install dependencies
4343
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
44-
run: poetry install --no-interaction --no-root
44+
run: poetry install --no-interaction --no-root --all-extras
4545
- name: Test with pytest
4646
run: |
4747
source .venv/bin/activate

docs/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Ready to contribute? Here's how to set up `python-statemachine` for local develo
9898

9999
1. Run `poetry install` once to install all the dependencies and create a virtual environment::
100100

101-
poetry install
101+
poetry install --all-extras
102102

103103
1. Run `poetry shell` to enter the provided virtual
104104

docs/releases/2.3.6.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# StateMachine 2.3.6
2+
3+
*September 11, 2024*
4+
5+
6+
## Bugfixes in 2.3.6
7+
8+
- Fixes [#474](https://github.com/fgmacedo/python-statemachine/issues/474) install with extra was not working to install `pydot`.
9+
- Fixes [#480](https://github.com/fgmacedo/python-statemachine/issues/480) error when trying to trigger an event inside the initial callback.

docs/releases/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Below are release notes through StateMachine and its patch releases.
1515
```{toctree}
1616
:maxdepth: 2
1717
18+
2.3.6
1819
2.3.5
1920
2.3.4
2021
2.3.3

poetry.lock

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

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "python-statemachine"
3-
version = "2.3.5"
3+
version = "2.3.6"
44
description = "Python Finite State Machines made easy."
55
authors = ["Fernando Macedo <[email protected]>"]
66
maintainers = [
@@ -33,14 +33,14 @@ classifiers = [
3333
"Intended Audience :: Developers",
3434
]
3535

36-
[tool.poetry.extras]
37-
diagrams = ["pydot"]
38-
3936
[tool.poetry.dependencies]
4037
python = ">=3.7"
38+
pydot = { version = ">=2.0.0", optional = true }
39+
40+
[tool.poetry.extras]
41+
diagrams = ["pydot"]
4142

4243
[tool.poetry.group.dev.dependencies]
43-
pydot = "^2.0.0"
4444
ruff = "^0.4.8"
4545
pre-commit = "*"
4646
mypy = "*"

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__ = "[email protected]"
6-
__version__ = "2.3.5"
6+
__version__ = "2.3.6"
77

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

statemachine/engines/async_.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
class AsyncEngine:
1717
def __init__(self, sm: "StateMachine", rtc: bool = True):
18+
sm._engine = self
1819
self.sm = proxy(sm)
1920
self._sentinel = object()
2021
if not rtc:

statemachine/engines/sync.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
class SyncEngine:
1515
def __init__(self, sm: "StateMachine", rtc: bool = True):
16+
sm._engine = self
1617
self.sm = proxy(sm)
1718
self._sentinel = object()
1819
self._rtc = rtc

0 commit comments

Comments
 (0)