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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user