From ff4976a9709be9f47593bc7efdcbf3ecdaeeb4c5d76a68bf349a4564af12cb3f Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 25 Oct 2021 19:43:10 +0000 Subject: [PATCH] Accepting request 927204 from home:bnavigator:branches:devel:languages:python - Update to version 0.8.10 * Feature #545: The literal 'self' (default model parameter of Machine) has been replaced by the class variable Machine.self_literal = 'self'. Machine now performs an identity check (instead of a value check) with mod is self.self_literal to determine whether it should act as a model. While 'self' should still work when passed to the model parameter, we encourage using Machine.self_literal from now on. This was done to enable easier override of Machine.__eq__ in subclasses (thanks @VKSolovev). * Bug #547: Introduce HierarchicalMachine.prefix_path to resolve global state names since the HSM stack is not reliable when queued=True (thanks @jankrejci). * Bug #548: HSM source states were exited even though they are parents of the destination state (thanks @wes-public-apps). - Don't test optional extra graphviz on python36: pygraphviz dropped Python 3.6 support OBS-URL: https://build.opensuse.org/request/show/927204 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-transitions?expand=0&rev=18 --- python-transitions.changes | 21 +++++++++++++++++++++ python-transitions.spec | 18 +++++++++++------- transitions-0.8.10.tar.gz | 3 +++ transitions-0.8.9.tar.gz | 3 --- 4 files changed, 35 insertions(+), 10 deletions(-) create mode 100644 transitions-0.8.10.tar.gz delete mode 100644 transitions-0.8.9.tar.gz diff --git a/python-transitions.changes b/python-transitions.changes index d04ba72..a3b3577 100644 --- a/python-transitions.changes +++ b/python-transitions.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Sun Oct 24 17:34:22 UTC 2021 - Ben Greiner + +- Update to version 0.8.10 + * Feature #545: The literal 'self' (default model parameter of + Machine) has been replaced by the class variable + Machine.self_literal = 'self'. Machine now performs an identity + check (instead of a value check) with mod is self.self_literal + to determine whether it should act as a model. While 'self' + should still work when passed to the model parameter, we + encourage using Machine.self_literal from now on. This was done + to enable easier override of Machine.__eq__ in subclasses + (thanks @VKSolovev). + * Bug #547: Introduce HierarchicalMachine.prefix_path to resolve + global state names since the HSM stack is not reliable when + queued=True (thanks @jankrejci). + * Bug #548: HSM source states were exited even though they are + parents of the destination state (thanks @wes-public-apps). +- Don't test optional extra graphviz on python36: pygraphviz + dropped Python 3.6 support + ------------------------------------------------------------------- Thu Sep 2 15:58:41 UTC 2021 - Martin Hauke diff --git a/python-transitions.spec b/python-transitions.spec index 13e3e68..b50bcb5 100644 --- a/python-transitions.spec +++ b/python-transitions.spec @@ -18,8 +18,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-transitions -Version: 0.8.9 +Version: 0.8.10 Release: 0 Summary: A lightweight, object-oriented Python state machine implementation License: MIT @@ -35,12 +36,15 @@ Suggests: python-pytest BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module dill} -BuildRequires: %{python_module graphviz} -BuildRequires: %{python_module mock} BuildRequires: %{python_module pycodestyle} -BuildRequires: %{python_module pygraphviz} BuildRequires: %{python_module pytest} BuildRequires: %{python_module six} +# pygraphviz dropped support for Python 3.6 +BuildRequires: %{python_module graphviz if (%python-base without python36-base)} +BuildRequires: %{python_module pygraphviz if (%python-base without python36-base)} +%if %{with python2} +BuildRequires: python2-mock +%endif # png support for graphviz BuildRequires: graphviz-gnome # /SECTION @@ -63,12 +67,12 @@ sed -i 's/\r$//' LICENSE Changelog.md README.md %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -rm -v tests/test_codestyle.py -%pytest +%pytest --ignore tests/test_codestyle.py %files %{python_files} %license LICENSE %doc Changelog.md README.md -%{python_sitelib}/* +%{python_sitelib}/transitions +%{python_sitelib}/transitions-%{version}*-info %changelog diff --git a/transitions-0.8.10.tar.gz b/transitions-0.8.10.tar.gz new file mode 100644 index 0000000..ec0b58d --- /dev/null +++ b/transitions-0.8.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b0385975a842e885c1a55c719d2f90164471665794d39d51f9eb3f11e1d9c8ac +size 1150941 diff --git a/transitions-0.8.9.tar.gz b/transitions-0.8.9.tar.gz deleted file mode 100644 index e1e1767..0000000 --- a/transitions-0.8.9.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fc2ec6d6b6f986cd7e28e119eeb9ba1c9cc51ab4fbbdb7f2dedad01983fd2de0 -size 1150707