Hello community, here is the log from the commit of package python-invoke for openSUSE:Leap:15.2 checked in at 2020-03-09 18:06:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/python-invoke (Old) and /work/SRC/openSUSE:Leap:15.2/.python-invoke.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-invoke" Mon Mar 9 18:06:32 2020 rev:15 rq:776684 version:1.3.0 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/python-invoke/python-invoke.changes 2020-01-15 15:49:22.243457842 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-invoke.new.26092/python-invoke.changes 2020-03-09 18:06:35.260853917 +0100 @@ -1,0 +2,51 @@ +Tue Sep 17 10:08:41 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Update patch pytest4.patch to make it really work with new pytests + +------------------------------------------------------------------- +Mon Aug 12 11:36:59 UTC 2019 - Marketa Calabkova <[email protected]> + +- Update to version 1.3.0 + * Allow the configuration system to override which Executor + subclass to use when executing tasks. + * Add support for command timeouts, i.e. the ability to add an + upper bound on how long a call to run may take to execute. + * Add basic dry-run support, in the form of a new --dry CLI option. + * Add a new Runner method, close_proc_stdin, and call it when + standard input processing detects an EOF. + +------------------------------------------------------------------- +Wed Jul 24 07:25:08 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Disable tests for now as they break with new pytest-relaxed +- Add another patch fixing errors with new pytest: + * pytest4.patch + +------------------------------------------------------------------- +Fri Jul 19 09:59:13 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Restrict pytest5 and pytest4 for now upstream tests only with + pytest3... + +------------------------------------------------------------------- +Tue Mar 26 14:02:06 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Update to 1.2.0: + * [Feature] #301: (via #414) Overhaul tab completion mechanisms so users can print a completion script which automatically matches the emitting binary’s configured names (compared to the previous hardcoded scripts, which only worked for inv/invoke by default). Thanks to Nicolas Höning for the foundational patchset. + +------------------------------------------------------------------- +Sat Aug 11 11:42:30 UTC 2018 - [email protected] + +- Add patch to not use vendored libs: + * 0001-Make-test-fallback-to-system-modules-when-vendorized.patch +- Remove unneeded deps +- Remove the multibuild again as we no longer cycle + +------------------------------------------------------------------- +Sat Aug 11 10:04:46 UTC 2018 - [email protected] + +- Update to 1.1.1: + * Various tweaks for pytest and new py releases support +- Switch to multibuild to run tests + +------------------------------------------------------------------- Old: ---- invoke-0.22.1.tar.gz New: ---- 0001-Make-test-fallback-to-system-modules-when-vendorized.patch invoke-1.3.0.tar.gz pytest4.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-invoke.spec ++++++ --- /var/tmp/diff_new_pack.l0tgV3/_old 2020-03-09 18:06:36.528854547 +0100 +++ /var/tmp/diff_new_pack.l0tgV3/_new 2020-03-09 18:06:36.568854567 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-invoke # -# Copyright (c) 2018 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,61 +12,53 @@ # 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-%{**}} -# Tests have a dependency loop with python(2|3)-invocations -%bcond_with test Name: python-invoke -Version: 0.22.1 +Version: 1.3.0 Release: 0 Summary: Pythonic Task Execution License: BSD-2-Clause 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 -BuildRequires: %{python_module devel} +Patch0: 0001-Make-test-fallback-to-system-modules-when-vendorized.patch +Patch1: pytest4.patch +BuildRequires: %{python_module PyYAML} +BuildRequires: %{python_module fluidity-sm} +BuildRequires: %{python_module lexicon} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pexpect} +BuildRequires: %{python_module pytest-relaxed} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} BuildRequires: fdupes BuildRequires: python-rpm-macros -%if %{with test} -BuildRequires: %{python_module invocations} -BuildRequires: %{python_module nose} -BuildRequires: python-mock -%endif -BuildArch: noarch +Requires: python-PyYAML +Requires: python-fluidity-sm +Requires: python-lexicon +Requires: python-pexpect +Requires: python-six Requires(post): update-alternatives Requires(postun): update-alternatives +BuildArch: noarch %python_subpackages %description 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. -* 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 %setup -q -n invoke-%{version} +# Remove bundled libs, import will fallback to system provided libs +rm -fr invoke/vendor/* + +%patch0 -p1 +%patch1 -p1 %build %python_build @@ -78,12 +70,10 @@ %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 +# broken with new pytest-relaxed (same author), just disable until he +# gets around to release new version +#%%pytest %post %{python_install_alternative inv invoke} @@ -92,8 +82,8 @@ %python_uninstall_alternative inv %files %{python_files} -%defattr(-,root,root) -%doc LICENSE README.rst +%license LICENSE +%doc README.rst %python_alternative %{_bindir}/inv %python_alternative %{_bindir}/invoke %{python_sitelib}/invoke/ ++++++ 0001-Make-test-fallback-to-system-modules-when-vendorized.patch ++++++ >From 4cd025415f0ef2c1d72bf4832051971c1e7eef8b Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj <[email protected]> Date: Fri, 11 May 2018 19:47:18 +0100 Subject: [PATCH] Make test fallback to system modules when vendorized one are not available --- tests/_util.py | 5 ++++- tests/concurrency.py | 5 ++++- tests/conftest.py | 6 +++++- tests/executor.py | 5 ++++- tests/runners.py | 5 ++++- tests/watchers.py | 5 ++++- 6 files changed, 25 insertions(+), 6 deletions(-) Index: invoke-1.1.1/tests/_util.py =================================================================== --- invoke-1.1.1.orig/tests/_util.py +++ invoke-1.1.1/tests/_util.py @@ -8,7 +8,10 @@ except ImportError: termios = None from contextlib import contextmanager -from invoke.vendor.six import BytesIO, b, wraps +try: + from invoke.vendor.six import BytesIO, b, wraps +except ImportError: + from six import BytesIO, b, wraps from mock import patch, Mock from pytest import skip Index: invoke-1.1.1/tests/concurrency.py =================================================================== --- invoke-1.1.1.orig/tests/concurrency.py +++ invoke-1.1.1/tests/concurrency.py @@ -1,4 +1,7 @@ -from invoke.vendor.six.moves.queue import Queue +try: + from invoke.vendor.six.moves.queue import Queue +except ImportError: + from six.moves.queue import Queue from invoke.util import ExceptionWrapper, ExceptionHandlingThread as EHThread Index: invoke-1.1.1/tests/conftest.py =================================================================== --- invoke-1.1.1.orig/tests/conftest.py +++ invoke-1.1.1/tests/conftest.py @@ -3,7 +3,11 @@ import os import sys import termios -from invoke.vendor.six import iteritems +try: + from invoke.vendor.six import iteritems +except ImportError: + from six import iteritems + import pytest from mock import patch Index: invoke-1.1.1/tests/runners.py =================================================================== --- invoke-1.1.1.orig/tests/runners.py +++ invoke-1.1.1/tests/runners.py @@ -6,7 +6,10 @@ import types from io import BytesIO from itertools import chain, repeat -from invoke.vendor.six import StringIO, b, PY2, iteritems +try: + from invoke.vendor.six import StringIO, b, PY2, iteritems +except ImportError: + from six import StringIO, b, PY2, iteritems from pytest import raises, skip from pytest_relaxed import trap Index: invoke-1.1.1/tests/watchers.py =================================================================== --- invoke-1.1.1.orig/tests/watchers.py +++ invoke-1.1.1/tests/watchers.py @@ -1,6 +1,9 @@ from threading import Thread, Event -from invoke.vendor.six.moves.queue import Queue, Empty +try: + from invoke.vendor.six.moves.queue import Queue, Empty +except: + from six.moves.queue import Queue, Empty from invoke import Responder, FailingResponder, ResponseNotAccepted ++++++ invoke-0.22.1.tar.gz -> invoke-1.3.0.tar.gz ++++++ ++++ 23886 lines of diff (skipped) ++++++ pytest4.patch ++++++ >From 84f296062a48d30a6c1497e523c21ef3fd9ab534 Mon Sep 17 00:00:00 2001 From: Marcus Crane <[email protected]> Date: Fri, 26 Oct 2018 10:52:19 +1300 Subject: [PATCH 1/3] Updated inspect method --- invoke/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: invoke-1.3.0/invoke/tasks.py =================================================================== --- invoke-1.3.0.orig/invoke/tasks.py +++ invoke-1.3.0/invoke/tasks.py @@ -4,7 +4,6 @@ generate new tasks. """ from copy import deepcopy -import inspect import types from .context import Context @@ -16,6 +15,11 @@ if six.PY3: else: from itertools import izip_longest as zip_longest +try: + from inspect import getfullargspec as getargspec +except ImportError: + from inspect import getargspec + #: Sentinel object representing a truly blank value (vs ``None``). NO_DEFAULT = object() @@ -150,7 +154,7 @@ class Task(object): # TODO: __call__ exhibits the 'self' arg; do we manually nix 1st result # in argspec, or is there a way to get the "really callable" spec? func = body if isinstance(body, types.FunctionType) else body.__call__ - spec = inspect.getargspec(func) + spec = getargspec(func) arg_names = spec.args[:] matched_args = [reversed(x) for x in [spec.args, spec.defaults or []]] spec_dict = dict(zip_longest(*matched_args, fillvalue=NO_DEFAULT))
