forked from pool/python-transitions
* removed legacy implementation of `HierarchicalMachine` from
the package
* Bug #551: Fix active state styling in `GraphMachine` (thanks
@betaboon)
* Bug #554: Fix issues related to scopes and queueing in
`HierachicalMachine` (thanks @jankrejci)
* Bug #568: Reflexive transitions (dest: '=') had not been
resolved correctly when source was a wildcard (thanks @jnu)
* Bug #568: HSM did not detect reflexive transitions if src was
a parent state (thanks @lostcontrol)
* Bug #569: Fix implicit fallback to `graphviz` when
`pygraphviz` was not installed (thanks @FridjofAmundsen)
* Bug #580: Fix `on_timeout` callback resolution when timeout
had been initialized with `timeout=0` (thanks @Rysbai)
* Bug #582: Last label in `GraphSupport` was not correctly
aligned when `show_attributes=True` (thanks @spagh-eddie)
* Feature: Add pyi stub files for better type hinting. Since
many functions and constructors allow rather arbitrary
arguments time will tell whether typing should be strict (and
cause more mypy issues) or more relaxed (and thus less
precise).
* Feature: Reviewed and improved method documentation
* Feature #549: Add `may` transition check to transitions
(thanks @artofhuman)
* Feature #552: Refactored error handling to be able to handle
`MachineError` in `on_exception` callbacks (thanks @kpihus)
* Feature: Add `mypy` to test workflow
* PR #461: Add `Retry` state to supported state stereotypes
(thanks @rgov)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-transitions?expand=0&rev=20
74 lines
2.3 KiB
RPMSpec
74 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-transitions
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
# Copyright (c) 2019-2021, 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/
|
|
#
|
|
|
|
|
|
Name: python-transitions
|
|
Version: 0.9.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 pycodestyle}
|
|
BuildRequires: %{python_module pygraphviz}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module six}
|
|
# png support for graphviz
|
|
BuildRequires: graphviz-gnome
|
|
BuildRequires: noto-sans-fonts
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
The transitions package makes it convenient and relatively easy to define and
|
|
implement FSMs (finite state machines) in python.
|
|
|
|
%prep
|
|
%autosetup -p 1 -n transitions-%{version}
|
|
find . -type f -exec chmod -x {} \;
|
|
sed -i 's/\r$//' LICENSE Changelog.md README.md
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest -k "not TestCodeFormat"
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc Changelog.md README.md
|
|
%{python_sitelib}/transitions
|
|
%{python_sitelib}/transitions-%{version}*-info
|
|
|
|
%changelog
|