Accepting request 682364 from devel:languages:python

- Add mulitbuild to make sure we do not cycle

- Update to version 0.7.0:
  * test updates
  * pep fixes
- Run tests

- update to version v0.6.0

OBS-URL: https://build.opensuse.org/request/show/682364
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Automat?expand=0&rev=2
This commit is contained in:
2019-03-08 10:01:39 +00:00
committed by Git OBS Bridge
5 changed files with 47 additions and 22 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3c1fd04ecf08ac87b4dd3feae409542e9bf7827257097b2b6ed5692f69d6f6a8
size 31767

3
Automat-0.7.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cbd78b83fa2d81fe2a4d23d258e1661dd7493c9a50ee2f1a5b2cac61c1793b0e
size 61461

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@@ -1,7 +1,20 @@
-------------------------------------------------------------------
Thu Mar 7 09:09:35 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Add mulitbuild to make sure we do not cycle
-------------------------------------------------------------------
Tue Mar 5 12:01:41 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to version 0.7.0:
* test updates
* pep fixes
- Run tests
-------------------------------------------------------------------
Tue Jul 4 04:45:19 UTC 2017 - tbechtold@suse.com
update to version v0.6.0
- 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

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Automat
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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
@@ -12,39 +12,44 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
Name: python-Automat
Version: 0.6.0
%endif
Name: python-Automat%{psuffix}
Version: 0.7.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
URL: https://github.com/glyph/automat
Source: https://files.pythonhosted.org/packages/source/A/Automat/Automat-%{version}.tar.gz
BuildRequires: %{python_module m2r}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module Twisted}
BuildRequires: %{python_module attrs}
BuildRequires: %{python_module graphviz}
%endif
Requires: python-attrs
Requires: python-attrs >= 16.1.0
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
Suggests: python-Twisted >= 16.1.1
Suggests: python-graphviz > 0.5.1
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module Twisted >= 16.1.1}
BuildRequires: %{python_module attrs >= 16.1.0}
BuildRequires: %{python_module graphviz >= 0.5.1}
%endif
%python_subpackages
%description
@@ -58,15 +63,18 @@ automata (particularly deterministic finite-state transducers).
%python_build
%install
%if !%{with test}
%python_install
%python_clone -a %{buildroot}%{_bindir}/automat-visualize
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
%if %{with test}
%python_exec setup.py test
%endif
%if !%{with test}
%post
%python_install_alternative automat-visualize
@@ -74,9 +82,10 @@ automata (particularly deterministic finite-state transducers).
%python_uninstall_alternative automat-visualize
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.md
%license LICENSE
%doc README.md
%python_alternative %{_bindir}/automat-visualize
%{python_sitelib}/*
%endif
%changelog