forked from pool/python-transitions
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
This commit is contained in:
@@ -1,3 +1,24 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 24 17:34:22 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- 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 <mardnh@gmx.de>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
3
transitions-0.8.10.tar.gz
Normal file
3
transitions-0.8.10.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b0385975a842e885c1a55c719d2f90164471665794d39d51f9eb3f11e1d9c8ac
|
||||
size 1150941
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fc2ec6d6b6f986cd7e28e119eeb9ba1c9cc51ab4fbbdb7f2dedad01983fd2de0
|
||||
size 1150707
|
||||
Reference in New Issue
Block a user