forked from pool/python-Automat
update to version v0.6.0 * use version-specific travis environments * tox/travis: enable tests on py3.5 * add a comment: this check doesn't catch non-None returns * improve function-is-empty test to work on py3.6 too * add more metadata to setup * graphviz() -> asDigraph() * Use inspect.getfullargspec on Py3 to avoid deprecation warnings with inspect.getargspec * add tracing API, with docs * Conform author metadata to `distutils.core` API * tracer can return a callable to see Output invocations * Make hashable classes frozen for attrs 17.1.0 (fixes #62). * Assert that 'input' function bodies are empty, to avoid surprises. * reject duplicate transitions (same starting state and input) * tox/travis: enable tests on py3.6 * improve tests: more cases, make pyflakes-clean * sigh, add more code to attain full test coverage * make setTrace a private API, document cautions about its use * cover the specimen functions in tests, remove ordify() * cleanup: s/assert_no_code/assertNoCode/ - convert to singlespec - fix Source url OBS-URL: https://build.opensuse.org/request/show/507966 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Automat?expand=0&rev=2
78 lines
2.4 KiB
RPMSpec
78 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package python-Automat
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-Automat
|
|
Version: 0.6.0
|
|
Release: 0
|
|
Summary: Self-service finite-state machines for the programmer on the go
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
Url: https://github.com/glyph/automat
|
|
Source: https://files.pythonhosted.org/packages/source/A/Automat/Automat-%{version}.tar.gz
|
|
BuildRequires: %{python_module Twisted}
|
|
BuildRequires: %{python_module attrs}
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module m2r}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools_scm}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module six}
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-attrs
|
|
Requires: python-six
|
|
Suggests: python-graphviz > 0.5.1
|
|
Suggests: python-Twisted >= 16.1.1
|
|
Requires(post): update-alternatives
|
|
Requires(preun): update-alternatives
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
%description
|
|
Automat is a library for concise, idiomatic Python expression of finite-state
|
|
automata (particularly deterministic finite-state transducers).
|
|
|
|
%prep
|
|
%setup -q -n Automat-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_clone -a %{buildroot}%{_bindir}/automat-visualize
|
|
|
|
%check
|
|
%python_exec setup.py test
|
|
|
|
%post
|
|
%python_install_alternative automat-visualize
|
|
|
|
%postun
|
|
%python_uninstall_alternative automat-visualize
|
|
|
|
%files %{python_files}
|
|
%defattr(-,root,root,-)
|
|
%doc LICENSE README.md
|
|
%python_alternative %{_bindir}/automat-visualize
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|