- Update to 1.1.1:
* Various tweaks for pytest and new py releases support - Switch to multibuild to run tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-invoke?expand=0&rev=11
This commit is contained in:
parent
dd27f24869
commit
2dcf9ec021
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:621181a0efae67b3dadec583cf2c6b5096136635bf6a326c481c73db412b36fc
|
|
||||||
size 292418
|
|
3
invoke-1.1.1.tar.gz
Normal file
3
invoke-1.1.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:1c2cf54c9b9af973ad9704d8ba81b225117cab612568cacbfb3fc42958cc20a9
|
||||||
|
size 311831
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Aug 11 10:04:46 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Update to 1.1.1:
|
||||||
|
* Various tweaks for pytest and new py releases support
|
||||||
|
- Switch to multibuild to run tests
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Apr 28 12:30:16 UTC 2018 - badshah400@gmail.com
|
Sat Apr 28 12:30:16 UTC 2018 - badshah400@gmail.com
|
||||||
|
|
||||||
|
@ -17,54 +17,43 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
# Tests have a dependency loop with python(2|3)-invocations
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "test"
|
||||||
|
%bcond_without test
|
||||||
|
%else
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
Name: python-invoke
|
%endif
|
||||||
Version: 0.22.1
|
Version: 1.1.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Pythonic Task Execution
|
Summary: Pythonic Task Execution
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://www.pyinvoke.org
|
URL: http://www.pyinvoke.org
|
||||||
Source: https://files.pythonhosted.org/packages/source/i/invoke/invoke-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/i/invoke/invoke-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel}
|
%if %{with test}
|
||||||
|
BuildRequires: %{python_module invocations >= 1.4}
|
||||||
|
BuildRequires: %{python_module invoke}
|
||||||
|
BuildRequires: %{python_module mock}
|
||||||
|
BuildRequires: %{python_module pytest-relaxed}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
%endif
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
%if %{with test}
|
|
||||||
BuildRequires: %{python_module invocations}
|
|
||||||
BuildRequires: %{python_module nose}
|
|
||||||
BuildRequires: python-mock
|
|
||||||
%endif
|
|
||||||
BuildArch: noarch
|
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
|
BuildArch: noarch
|
||||||
|
%if %{with test}
|
||||||
|
Name: python-invoke-%{flavor}
|
||||||
|
%else
|
||||||
|
Name: python-invoke
|
||||||
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Invoke is a Python (2.7 and 3.4+) task execution tool & library, drawing
|
Invoke is a Python (2.7 and 3.4+) task execution tool & library, drawing
|
||||||
inspiration from various sources to arrive at a powerful & clean feature set.
|
inspiration from various sources to arrive at a powerful & clean feature set.
|
||||||
|
|
||||||
* Like Ruby's Rake tool and Invoke's own predecessor Fabric 1.x, it provides a
|
|
||||||
clean, high level API for running shell commands and defining/organizing
|
|
||||||
task functions from a ``tasks.py`` file
|
|
||||||
|
|
||||||
* From GNU Make, it inherits an emphasis on minimal boilerplate for common
|
|
||||||
patterns and the ability to run multiple tasks in a single invocation::
|
|
||||||
|
|
||||||
$ invoke clean build
|
|
||||||
|
|
||||||
* Following the lead of most Unix CLI applications, it offers a traditional
|
|
||||||
flag-based style of command-line parsing, deriving flag names and value types
|
|
||||||
from task signatures (optionally, of course!)::
|
|
||||||
|
|
||||||
$ invoke clean --docs --bytecode build --docs --extra='**/*.pyo'
|
|
||||||
$ invoke clean -d -b build --docs -e '**/*.pyo'
|
|
||||||
$ invoke clean -db build -de '**/*.pyo'
|
|
||||||
|
|
||||||
* Like many of its predecessors, it offers advanced features as well --
|
|
||||||
namespacing, task aliasing, before/after hooks, parallel execution and more.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n invoke-%{version}
|
%setup -q -n invoke-%{version}
|
||||||
|
|
||||||
@ -72,31 +61,38 @@ inspiration from various sources to arrive at a powerful & clean feature set.
|
|||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if !%{with test}
|
||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%python_clone -a %{buildroot}%{_bindir}/inv
|
%python_clone -a %{buildroot}%{_bindir}/inv
|
||||||
%python_clone -a %{buildroot}%{_bindir}/invoke
|
%python_clone -a %{buildroot}%{_bindir}/invoke
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
%{python_expand export PYTHONPATH=%{$python_sitelib}
|
||||||
%{buildroot}%{_bindir}/inv-%{$python_bin_suffix} -l
|
py.test-%{$python_bin_suffix}
|
||||||
|
%{_bindir}/inv-%{$python_bin_suffix} -l
|
||||||
}
|
}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
%post
|
%post
|
||||||
%{python_install_alternative inv invoke}
|
%{python_install_alternative inv invoke}
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative inv
|
%python_uninstall_alternative inv
|
||||||
|
%endif
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
%license LICENSE
|
||||||
%doc LICENSE README.rst
|
%doc README.rst
|
||||||
|
%if !%{with test}
|
||||||
%python_alternative %{_bindir}/inv
|
%python_alternative %{_bindir}/inv
|
||||||
%python_alternative %{_bindir}/invoke
|
%python_alternative %{_bindir}/invoke
|
||||||
%{python_sitelib}/invoke/
|
%{python_sitelib}/invoke/
|
||||||
%{python_sitelib}/invoke-%{version}-py*
|
%{python_sitelib}/invoke-%{version}-py*
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user