commit python-transitions for openSUSE:Factory
Hello community, here is the log from the commit of package python-transitions for openSUSE:Factory checked in at 2020-08-25 09:38:05 Comparing /work/SRC/openSUSE:Factory/python-transitions (Old) and /work/SRC/openSUSE:Factory/.python-transitions.new.3399 (New) Package is "python-transitions" Tue Aug 25 09:38:05 2020 rev:7 rq:829015 version:0.8.2 Changes: --- /work/SRC/openSUSE:Factory/python-transitions/python-transitions.changes 2020-06-28 23:08:47.099348601 +0200 +++ /work/SRC/openSUSE:Factory/.python-transitions.new.3399/python-transitions.changes 2020-08-25 09:39:40.840237248 +0200 @@ -1,0 +2,5 @@ +Mon Aug 24 12:06:21 UTC 2020 - Marketa Calabkova + +- Use recent pytest + +--- Other differences: -- ++ python-transitions.spec ++ --- /var/tmp/diff_new_pack.hCI2lG/_old 2020-08-25 09:39:41.556237573 +0200 +++ /var/tmp/diff_new_pack.hCI2lG/_new 2020-08-25 09:39:41.560237574 +0200 @@ -39,7 +39,7 @@ BuildRequires: %{python_module mock} BuildRequires: %{python_module pycodestyle} BuildRequires: %{python_module pygraphviz} -BuildRequires: %{python_module pytest < 5} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module six} # png support for graphviz BuildRequires: graphviz-gnome
commit python-transitions for openSUSE:Factory
Hello community, here is the log from the commit of package python-transitions for openSUSE:Factory checked in at 2020-06-28 23:07:29 Comparing /work/SRC/openSUSE:Factory/python-transitions (Old) and /work/SRC/openSUSE:Factory/.python-transitions.new.3060 (New) Package is "python-transitions" Sun Jun 28 23:07:29 2020 rev:6 rq:817508 version:0.8.2 Changes: --- /work/SRC/openSUSE:Factory/python-transitions/python-transitions.changes 2020-06-10 00:49:16.911080868 +0200 +++ /work/SRC/openSUSE:Factory/.python-transitions.new.3060/python-transitions.changes 2020-06-28 23:08:47.099348601 +0200 @@ -1,0 +2,24 @@ +Sun Jun 28 09:27:04 UTC 2020 - Martin Hauke + +- Update to version 0.8.2 + * Improved testing without any optional graphviz package + * _check_event_result failed when model was in parallel state + * Only allow explicit dest=None in Machine.add_transition (not +just falsy) for internal transitions + * Fix state creation of nested enums + * HierarchicalGraphMachine did not find/apply styling for +parallel states + * Bugfix: Model.trigger now considers the machine's and current +state's ignore_invalid_triggers attribute and can be called +with non-existing events + * Child states may not have been exited when the executed +transition had been defined on a parent + * Introduced transitions.extensions.asyncio.AsyncTimeout as a +state decorator to avoid threads used +in transitions.extensions.state.Timeout + * Use sets instead of lists to cache already covered transitions +in nested state machines + * Improve handling of unresolved attributes for easier inheritance + * Refactored AsyncMachine to enable trio/anyio override + +--- Old: transitions-0.8.1.tar.gz New: transitions-0.8.2.tar.gz Other differences: -- ++ python-transitions.spec ++ --- /var/tmp/diff_new_pack.E4Mnp2/_old 2020-06-28 23:08:47.659350461 +0200 +++ /var/tmp/diff_new_pack.E4Mnp2/_new 2020-06-28 23:08:47.663350474 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-transitions -Version:0.8.1 +Version:0.8.2 Release:0 Summary:A lightweight, object-oriented Python state machine implementation License:MIT ++ transitions-0.8.1.tar.gz -> transitions-0.8.2.tar.gz ++ 4281 lines of diff (skipped)
commit python-transitions for openSUSE:Factory
Hello community, here is the log from the commit of package python-transitions for openSUSE:Factory checked in at 2020-06-10 00:49:13 Comparing /work/SRC/openSUSE:Factory/python-transitions (Old) and /work/SRC/openSUSE:Factory/.python-transitions.new.3606 (New) Package is "python-transitions" Wed Jun 10 00:49:13 2020 rev:5 rq:812806 version:0.8.1 Changes: --- /work/SRC/openSUSE:Factory/python-transitions/python-transitions.changes 2020-04-04 12:25:37.815944135 +0200 +++ /work/SRC/openSUSE:Factory/.python-transitions.new.3606/python-transitions.changes 2020-06-10 00:49:16.911080868 +0200 @@ -1,0 +2,6 @@ +Tue Jun 9 07:44:24 UTC 2020 - Dirk Mueller + +- remove pep8 unit tests, those are not useful to execute and + fail + +--- Other differences: -- ++ python-transitions.spec ++ --- /var/tmp/diff_new_pack.LQzujU/_old 2020-06-10 00:49:17.619082720 +0200 +++ /var/tmp/diff_new_pack.LQzujU/_new 2020-06-10 00:49:17.619082720 +0200 @@ -39,7 +39,7 @@ BuildRequires: %{python_module mock} BuildRequires: %{python_module pycodestyle} BuildRequires: %{python_module pygraphviz} -BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest < 5} BuildRequires: %{python_module six} # png support for graphviz BuildRequires: graphviz-gnome @@ -63,6 +63,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +rm -v tests/test_codestyle.py %pytest %files %{python_files}
commit python-transitions for openSUSE:Factory
Hello community, here is the log from the commit of package python-transitions for openSUSE:Factory checked in at 2020-04-04 12:24:52 Comparing /work/SRC/openSUSE:Factory/python-transitions (Old) and /work/SRC/openSUSE:Factory/.python-transitions.new.3248 (New) Package is "python-transitions" Sat Apr 4 12:24:52 2020 rev:4 rq:791102 version:0.8.1 Changes: --- /work/SRC/openSUSE:Factory/python-transitions/python-transitions.changes 2020-03-25 23:49:42.812029824 +0100 +++ /work/SRC/openSUSE:Factory/.python-transitions.new.3248/python-transitions.changes 2020-04-04 12:25:37.815944135 +0200 @@ -1,0 +2,12 @@ +Fri Apr 3 06:23:04 UTC 2020 - Martin Hauke + +- Update to versino 0.8.1 + * Feature: Introduced experimental HierarchicalAsync(Graph)Machine + * Feature #405: Support for nested Enums in HierarchicalMachine + * Bugfix #400: Fix style initialization when initial state is an Enum + * Bugfix #403: AsyncMachine.dispatch now returns a boolean asexpected + * Bugfix #413: Improve diagram output for HierarchicalMachine + * Increased coverage + * Introduced xdist for parallel testing with pytest + +--- Old: transitions-0.8.0.tar.gz New: transitions-0.8.1.tar.gz Other differences: -- ++ python-transitions.spec ++ --- /var/tmp/diff_new_pack.pXvvXL/_old 2020-04-04 12:25:38.591944802 +0200 +++ /var/tmp/diff_new_pack.pXvvXL/_new 2020-04-04 12:25:38.595944805 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-transitions -Version:0.8.0 +Version:0.8.1 Release:0 Summary:A lightweight, object-oriented Python state machine implementation License:MIT @@ -52,6 +52,8 @@ %prep %setup -q -n transitions-%{version} +find . -type f -exec chmod -x {} \; +sed -i 's/\r$//' LICENSE Changelog.md README.md %build %python_build ++ transitions-0.8.0.tar.gz -> transitions-0.8.1.tar.gz ++ 2618 lines of diff (skipped)
commit python-transitions for openSUSE:Factory
Hello community, here is the log from the commit of package python-transitions for openSUSE:Factory checked in at 2020-03-25 23:47:38 Comparing /work/SRC/openSUSE:Factory/python-transitions (Old) and /work/SRC/openSUSE:Factory/.python-transitions.new.3160 (New) Package is "python-transitions" Wed Mar 25 23:47:38 2020 rev:3 rq:788243 version:0.8.0 Changes: --- /work/SRC/openSUSE:Factory/python-transitions/python-transitions.changes 2020-01-13 22:21:29.874517492 +0100 +++ /work/SRC/openSUSE:Factory/.python-transitions.new.3160/python-transitions.changes 2020-03-25 23:49:42.812029824 +0100 @@ -1,0 +2,16 @@ +Wed Mar 25 14:51:54 UTC 2020 - pgaj...@suse.com + +- version update to 0.8.0 + - Feature: `HierarchicalMachine` has been rewritten to support parallel states. Please have a look at the ReadMe.md to check what has changed. ++ The previous version can be found in `transitions.extensions.nesting_legacy` for now + - Feature: Introduced `AsyncMachine` (see discussion #259); note that async HSMs are not yet supported + - Feature #390: String callbacks can now point to properties and attributes (thanks @jsenecal) + - Bugfix: Auto transitions are added multiple times when add_states is called more than once + - Bugfix: Convert state._name from `Enum` into strings in `MarkupMachine` when necessary + - Bugfix #392: Allow `Machine.add_ordered_transitions` to be called without the initial state (thanks @mkaranki and @facundofc) + - `GraphMachine` now attempts to fall back to `graphviz` when importing `pygraphviz` fails + - Not implemented/tested so far (contributions are welcome!): ++ Proper Graphviz support of parallel states ++ AsyncHierachicalMachine + +--- Old: transitions-0.7.2.tar.gz New: transitions-0.8.0.tar.gz Other differences: -- ++ python-transitions.spec ++ --- /var/tmp/diff_new_pack.qTOtyy/_old 2020-03-25 23:49:44.416029400 +0100 +++ /var/tmp/diff_new_pack.qTOtyy/_new 2020-03-25 23:49:44.416029400 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-transitions # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # Copyright (c) 2019, Martin Hauke # # All modifications and additions to the file contributed by third parties @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-transitions -Version:0.7.2 +Version:0.8.0 Release:0 Summary:A lightweight, object-oriented Python state machine implementation License:MIT ++ transitions-0.7.2.tar.gz -> transitions-0.8.0.tar.gz ++ 25518 lines of diff (skipped)
commit python-transitions for openSUSE:Factory
Hello community, here is the log from the commit of package python-transitions for openSUSE:Factory checked in at 2020-01-13 22:21:21 Comparing /work/SRC/openSUSE:Factory/python-transitions (Old) and /work/SRC/openSUSE:Factory/.python-transitions.new.6675 (New) Package is "python-transitions" Mon Jan 13 22:21:21 2020 rev:2 rq:763815 version:0.7.2 Changes: --- /work/SRC/openSUSE:Factory/python-transitions/python-transitions.changes 2019-10-02 11:59:11.354986548 +0200 +++ /work/SRC/openSUSE:Factory/.python-transitions.new.6675/python-transitions.changes 2020-01-13 22:21:29.874517492 +0100 @@ -1,0 +2,8 @@ +Fri Jan 10 19:57:29 UTC 2020 - Martin Hauke + +- Update to version 0.7.2 + * Fix transitions for enums with str behavior + * Don't mask away KeyError when executing a transition + * Add support for dynamic model state attribute + +--- Old: transitions-0.7.1.tar.gz New: transitions-0.7.2.tar.gz Other differences: -- ++ python-transitions.spec ++ --- /var/tmp/diff_new_pack.XAI53h/_old 2020-01-13 22:21:30.638517847 +0100 +++ /var/tmp/diff_new_pack.XAI53h/_new 2020-01-13 22:21:30.638517847 +0100 @@ -1,6 +1,7 @@ # # spec file for package python-transitions # +# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019, Martin Hauke # # All modifications and additions to the file contributed by third parties @@ -18,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-transitions -Version:0.7.1 +Version:0.7.2 Release:0 Summary:A lightweight, object-oriented Python state machine implementation License:MIT ++ transitions-0.7.1.tar.gz -> transitions-0.7.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/transitions-0.7.1/Changelog.md new/transitions-0.7.2/Changelog.md --- old/transitions-0.7.1/Changelog.md 2019-09-13 09:35:29.0 +0200 +++ new/transitions-0.7.2/Changelog.md 2020-01-10 08:51:20.0 +0100 @@ -1,5 +1,13 @@ # Changelog +## 0.7.2 (January 2020) + +Release 0.7.2 is a minor release and contains bugfixes and and a new feature + +- Bugfix #386: Fix transitions for enums with str behavior (thanks @artofhuman) +- Bugfix #378: Don't mask away KeyError when executing a transition (thanks @facundofc) +- Feature #387: Add support for dynamic model state attribute (thanks @v1k45) + ## 0.7.1 (September 2019) Release 0.7.1 is a minor release and contains several documentation improvements and a new feature: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/transitions-0.7.1/PKG-INFO new/transitions-0.7.2/PKG-INFO --- old/transitions-0.7.1/PKG-INFO 2019-09-13 09:49:33.0 +0200 +++ new/transitions-0.7.2/PKG-INFO 2020-01-10 09:41:44.0 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: transitions -Version: 0.7.1 +Version: 0.7.2 Summary: A lightweight, object-oriented Python state machine implementation. Home-page: http://github.com/pytransitions/transitions Author: Tal Yarkoni @@ -8,7 +8,7 @@ Maintainer: Alexander Neumann Maintainer-email: alen...@gmail.com License: MIT -Download-URL: https://github.com/pytransitions/transitions/archive/0.7.1.tar.gz +Download-URL: https://github.com/pytransitions/transitions/archive/0.7.2.tar.gz Description: ## Quickstart They say [a good example is worth](https://www.google.com/webhp?ie=UTF-8#q=%22a+good+example+is+worth%22=20) 100 pages of API documentation, a million directives, or a thousand words. @@ -278,6 +278,8 @@ Now, any time `lump` transitions to state `A`, the `on_enter_A()` method defined in the `Matter` class will fire. + Checking state + You can always check the current state of the model by either: - inspecting the `.state` attribute, or @@ -296,6 +298,15 @@ >>> 'solid' ``` +If you'd like you track it using a different attribute, you could do that using the `model_attribute` argument while initializing the `Machine`. + +```python +lump = Matter() +machine = Machine(lump, states=['solid', 'liquid', 'gas'], model='matter_state', initial='solid') +lump.matter_state +>>> 'solid' +``` + Enumerations So far we have seen how we can give state names and use these names to work with our state machine. If you favour stricter typing and more IDE code completion (or you just can't type 'sesquipedalophobia' any