Hello community, here is the log from the commit of package python-invoke for openSUSE:Factory checked in at 2017-10-27 14:00:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-invoke (Old) and /work/SRC/openSUSE:Factory/.python-invoke.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-invoke" Fri Oct 27 14:00:23 2017 rev:3 rq:535233 version:0.21.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-invoke/python-invoke.changes 2017-02-05 16:25:06.747687161 +0100 +++ /work/SRC/openSUSE:Factory/.python-invoke.new/python-invoke.changes 2017-10-27 14:00:25.474813094 +0200 @@ -1,0 +2,11 @@ +Wed Oct 18 15:59:42 UTC 2017 - [email protected] + +- Update to 0.21.0 + * No changelog + +------------------------------------------------------------------- +Thu Aug 24 13:41:17 UTC 2017 - [email protected] + +- singlespec auto-conversion + +------------------------------------------------------------------- @@ -116,0 +128 @@ + Old: ---- invoke-0.9.0.tar.gz New: ---- invoke-0.21.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-invoke.spec ++++++ --- /var/tmp/diff_new_pack.4WS1AZ/_old 2017-10-27 14:00:27.162734191 +0200 +++ /var/tmp/diff_new_pack.4WS1AZ/_new 2017-10-27 14:00:27.166734004 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-invoke # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -16,24 +16,30 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +# Tests have a dependency loop with python(2|3)-invocations +%bcond_with test Name: python-invoke -Version: 0.9.0 +Version: 0.21.0 Release: 0 Summary: Pythonic Task Execution License: BSD-2-Clause Group: Development/Languages/Python Url: http://docs.pyinvoke.org -Source: https://pypi.python.org/packages/source/i/invoke/invoke-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools +Source: https://files.pythonhosted.org/packages/source/i/invoke/invoke-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +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(postun): update-alternatives -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else -BuildArch: noarch -%endif +%python_subpackages %description Invoke is a Python (2.6+ and 3.2+) task execution tool & library, drawing @@ -59,45 +65,38 @@ * Like many of its predecessors, it offers advanced features as well -- namespacing, task aliasing, before/after hooks, parallel execution and more. - - %prep %setup -q -n invoke-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} -mv %{buildroot}%{_bindir}/inv %{buildroot}%{_bindir}/inv-%{py_ver} -mv %{buildroot}%{_bindir}/invoke %{buildroot}%{_bindir}/invoke-%{py_ver} -ln -s %{_bindir}/inv-%{py_ver} %{buildroot}%{_bindir}/inv -ln -s %{_bindir}/invoke-%{py_ver} %{buildroot}%{_bindir}/invoke - -%pre -p /bin/bash -# Since /usr/bin/* became ghosted to be used with update-alternatives, we have to get rid -# of the old binary resulting from the non-update-alternativies-ified package: -[[ ! -L %{_bindir}/inv ]] && rm -f %{_bindir}/inv -[[ ! -L %{_bindir}/invoke ]] && rm -f %{_bindir}/invoke -exit 0 +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%python_clone -a %{buildroot}%{_bindir}/inv +%python_clone -a %{buildroot}%{_bindir}/invoke + +%if %{with test} +%check +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} +%{buildroot}%{_bindir}/inv-%{$python_bin_suffix} -l +} +%endif %post -update-alternatives \ - --install %{_bindir}/invoke invoke %{_bindir}/invoke-%{py_ver} 30 \ - --slave %{_bindir}/inv inv %{_bindir}/inv%{py_ver} \ - -%preun -if [ $1 -eq 0 ] ; then - update-alternatives --remove invoke %{_bindir}/invoke-%{py_ver} -fi +%{python_install_alternative inv invoke} -%files -%defattr(-,root,root,-) +%postun +%python_uninstall_alternative inv + +%files %{python_files} +%defattr(-,root,root) %doc LICENSE README.rst -%{_bindir}/inv-%{py_ver} -%{_bindir}/invoke-%{py_ver} -%ghost %{_bindir}/inv -%ghost %{_bindir}/invoke -%{python_sitelib}/* +%python_alternative %{_bindir}/inv +%python_alternative %{_bindir}/invoke +%{python_sitelib}/invoke/ +%{python_sitelib}/invoke-%{version}-py* + -%changelog ++++++ invoke-0.9.0.tar.gz -> invoke-0.21.0.tar.gz ++++++ ++++ 35293 lines of diff (skipped)
