From da73bf978db3411f1f5912cafceb5959018bf053291416cab0f569145893b707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 5 Mar 2019 12:04:20 +0000 Subject: [PATCH 1/2] - Update to version 0.7.0: * test updates * pep fixes - Run tests - update to version v0.6.0 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Automat?expand=0&rev=6 --- Automat-0.6.0.tar.gz | 3 --- Automat-0.7.0.tar.gz | 3 +++ python-Automat.changes | 9 ++++++++- python-Automat.spec | 31 ++++++++++++------------------- 4 files changed, 23 insertions(+), 23 deletions(-) delete mode 100644 Automat-0.6.0.tar.gz create mode 100644 Automat-0.7.0.tar.gz diff --git a/Automat-0.6.0.tar.gz b/Automat-0.6.0.tar.gz deleted file mode 100644 index c11be50..0000000 --- a/Automat-0.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3c1fd04ecf08ac87b4dd3feae409542e9bf7827257097b2b6ed5692f69d6f6a8 -size 31767 diff --git a/Automat-0.7.0.tar.gz b/Automat-0.7.0.tar.gz new file mode 100644 index 0000000..aaa1791 --- /dev/null +++ b/Automat-0.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cbd78b83fa2d81fe2a4d23d258e1661dd7493c9a50ee2f1a5b2cac61c1793b0e +size 61461 diff --git a/python-Automat.changes b/python-Automat.changes index 6184da2..c58e6a9 100644 --- a/python-Automat.changes +++ b/python-Automat.changes @@ -1,7 +1,14 @@ ------------------------------------------------------------------- +Tue Mar 5 12:01:41 UTC 2019 - Tomáš Chvátal + +- 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 diff --git a/python-Automat.spec b/python-Automat.spec index 259a2af..8ad2b2c 100644 --- a/python-Automat.spec +++ b/python-Automat.spec @@ -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,34 @@ # 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-%{**}} -%bcond_with test Name: python-Automat -Version: 0.6.0 +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 Twisted >= 16.1.1} +BuildRequires: %{python_module attrs >= 16.1.0} +BuildRequires: %{python_module graphviz >= 0.5.1} 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 - %python_subpackages %description @@ -62,10 +57,8 @@ automata (particularly deterministic finite-state transducers). %python_clone -a %{buildroot}%{_bindir}/automat-visualize %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check %python_exec setup.py test -%endif %post %python_install_alternative automat-visualize @@ -74,8 +67,8 @@ 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}/* From 64d2cfaee70348b9f555af637e761b8d12f2d2641c40b00a026d52a885560af6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 7 Mar 2019 09:14:52 +0000 Subject: [PATCH 2/2] - Add mulitbuild to make sure we do not cycle OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Automat?expand=0&rev=7 --- _multibuild | 3 +++ python-Automat.changes | 6 ++++++ python-Automat.spec | 24 ++++++++++++++++++++---- 3 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 _multibuild diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/python-Automat.changes b/python-Automat.changes index c58e6a9..efdeaf5 100644 --- a/python-Automat.changes +++ b/python-Automat.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 7 09:09:35 UTC 2019 - Tomáš Chvátal + +- Add mulitbuild to make sure we do not cycle + ------------------------------------------------------------------- Tue Mar 5 12:01:41 UTC 2019 - Tomáš Chvátal @@ -5,6 +10,7 @@ Tue Mar 5 12:01:41 UTC 2019 - Tomáš Chvátal * test updates * pep fixes - Run tests + ------------------------------------------------------------------- Tue Jul 4 04:45:19 UTC 2017 - tbechtold@suse.com diff --git a/python-Automat.spec b/python-Automat.spec index 8ad2b2c..b523bd9 100644 --- a/python-Automat.spec +++ b/python-Automat.spec @@ -17,7 +17,15 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-Automat +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +Name: python-Automat%{psuffix} Version: 0.7.0 Release: 0 Summary: Self-service finite-state machines for the programmer on the go @@ -25,9 +33,6 @@ 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 >= 16.1.1} -BuildRequires: %{python_module attrs >= 16.1.0} -BuildRequires: %{python_module graphviz >= 0.5.1} BuildRequires: %{python_module m2r} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} @@ -40,6 +45,11 @@ Requires(preun): update-alternatives 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 @@ -53,13 +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 %check +%if %{with test} %python_exec setup.py test +%endif +%if !%{with test} %post %python_install_alternative automat-visualize @@ -71,5 +86,6 @@ automata (particularly deterministic finite-state transducers). %doc README.md %python_alternative %{_bindir}/automat-visualize %{python_sitelib}/* +%endif %changelog