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/invocations-0.20.0.tar.gz b/invocations-0.20.0.tar.gz deleted file mode 100644 index 2f6bc50..0000000 --- a/invocations-0.20.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:085d03a47fc46bb6d626ff59ad3a4439a95c213f27e9d71fe59b8d658d897a42 -size 23724 diff --git a/invocations-1.4.0.tar.gz b/invocations-1.4.0.tar.gz new file mode 100644 index 0000000..df2760c --- /dev/null +++ b/invocations-1.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b0b5e8c2a62b7b4267a31ff0c2ae4544fd97dcc70ac6081400f4fb530261a07c +size 27512 diff --git a/python-invocations.changes b/python-invocations.changes index 5e9c7b1..e041173 100644 --- a/python-invocations.changes +++ b/python-invocations.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Sat Aug 11 10:01:08 UTC 2018 - tchvatal@suse.com + +- Version update to 1.4: + * Various py3 fixes + * pytest for testing +- Use multibuild to run tests + ------------------------------------------------------------------- Thu May 10 03:05:07 UTC 2018 - toddrme2178@gmail.com diff --git a/python-invocations.spec b/python-invocations.spec index 3550fcf..fb5df1c 100644 --- a/python-invocations.spec +++ b/python-invocations.spec @@ -1,5 +1,5 @@ # -# spec file for package python-invocations +# spec file for package python # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # @@ -13,38 +13,49 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_with test -Name: python-invocations -Version: 0.20.0 +%global flavor @BUILD_FLAVOR@%{nil} +%bcond_with test +%if "%{flavor}" == "test" +%bcond_without test +%endif +%if %{with test} +Name: python-requests-%{flavor} +%else +Name: python-requests +%endif +Version: 1.4.0 Release: 0 -License: BSD-2-Clause Summary: Reusable Invoke tasks -Url: http://pyinvoke.org +License: BSD-2-Clause Group: Development/Languages/Python +URL: http://pyinvoke.org Source: https://files.pythonhosted.org/packages/source/i/invocations/invocations-%{version}.tar.gz -BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-blessings >= 1.6 +Requires: python-invoke >= 1.0 +Requires: python-releases >= 1.2 +Requires: python-semantic_version >= 2.4 +Requires: python-tabulate >= 0.7.5 +Requires: python-tqdm >= 4.8.1 +%ifpython2 +Requires: python-enum34 +%endif +BuildRequires: python2-enum34 +BuildArch: noarch %if %{with test} BuildRequires: %{python_module blessings >= 1.6} -BuildRequires: %{python_module invoke >= 0.13} +BuildRequires: %{python_module invoke >= 1.0} BuildRequires: %{python_module releases >= 1.2} BuildRequires: %{python_module semantic_version >= 2.4} BuildRequires: %{python_module tabulate >= 0.7.5} BuildRequires: %{python_module tqdm >= 4.8.1} %endif -BuildRequires: fdupes -Requires: python-blessings >= 1.6 -Requires: python-invoke >= 0.13 -Requires: python-releases >= 1.2 -Requires: python-semantic_version >= 2.4 -Requires: python-tabulate >= 0.7.5 -Requires: python-tqdm >= 4.8.1 -BuildArch: noarch - %python_subpackages %description @@ -65,8 +76,10 @@ the Invoke project's communication channels for updates. Thanks! %python_build %install +%if !%{with test} %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif %if %{with test} %check @@ -74,9 +87,10 @@ the Invoke project's communication channels for updates. Thanks! %endif %files %{python_files} -%defattr(-,root,root,-) %doc README.rst %license LICENSE +%if !%{with test} %{python_sitelib}/* +%endif %changelog