forked from pool/python-transitions
Accepting request 883668 from home:mnhauke:network:automation
- Update to version 0.8.8
Bugfix
* AsyncMachine does not remove models when remove_models is
called.
Feature
* Introduce try/except for finalize callbacks in Machine and
HierachicalMachine. Thus, errors occurring in finalize
callbacks will be suppressed and only the original error will
be raised.
* Show references in graphs and markup. Introduce
MarkupMachine.format_references to tweak reference formatting.
* Introduce Machine.on_exception to handle raised exceptions in
callbacks.
* Machine.get_triggers now supports State and Enum as arguments.
* NestedState and HierachicalMachine.add_states now accept
(lists of) states and enums as initial parameter.
- Update to version 0.8.7
* State configuration dictionaries passed to HierarchicalMachine
can also use states as a keyword to define substates. If
children and states are present, only children will be
considered.
* HierarchicalMachine with custom separator now adds
is_state partials for nested states (e.g. is_C.s3.a()) to
models.
* Use model_attribute consistently in AsyncMachine.
* HierarchicalMachine now checks whether state_cls, event_cls
and transition_cls have been subclassed from nested base
classes (e.g. NestedState) to prevent hard to debug
inheritance errors
- Update to version 0.8.6
OBS-URL: https://build.opensuse.org/request/show/883668
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-transitions?expand=0&rev=15
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#
|
||||
# spec file for package python-transitions
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2019, Martin Hauke <mardnh@gmx.de>
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2019-2021, Martin Hauke <mardnh@gmx.de>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-transitions
|
||||
Version: 0.8.2
|
||||
Version: 0.8.8
|
||||
Release: 0
|
||||
Summary: A lightweight, object-oriented Python state machine implementation
|
||||
License: MIT
|
||||
|
||||
Reference in New Issue
Block a user