15
0
Files
python-transitions/python-transitions.spec
Tomáš Chvátal 51fe992611 Accepting request 788238 from home:pgajdos:python
- 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

OBS-URL: https://build.opensuse.org/request/show/788238
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-transitions?expand=0&rev=5
2020-03-25 15:12:19 +00:00

72 lines
2.2 KiB
RPMSpec

#
# spec file for package python-transitions
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2019, 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-transitions
Version: 0.8.0
Release: 0
Summary: A lightweight, object-oriented Python state machine implementation
License: MIT
Group: Development/Languages/Python
URL: https://github.com/pytransitions/transitions
Source: https://files.pythonhosted.org/packages/source/t/transitions/transitions-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-six
Suggests: python-pygraphviz
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}
# png support for graphviz
BuildRequires: graphviz-gnome
# /SECTION
%python_subpackages
%description
The transitions package makes it convenient and relatively easy to define and
implement FSMs (finite state machines) in python.
%prep
%setup -q -n transitions-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE
%doc Changelog.md README.md
%{python_sitelib}/*
%changelog