Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-invoke for openSUSE:Factory checked in at 2023-05-19 11:55:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-invoke (Old) and /work/SRC/openSUSE:Factory/.python-invoke.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-invoke" Fri May 19 11:55:25 2023 rev:17 rq:1087437 version:2.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-invoke/python-invoke.changes 2023-04-22 22:01:14.901499090 +0200 +++ /work/SRC/openSUSE:Factory/.python-invoke.new.1533/python-invoke.changes 2023-05-19 11:55:56.551407730 +0200 @@ -1,0 +2,79 @@ +Tue May 16 14:16:29 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- break python-invocations, invoke cycle on tests + +------------------------------------------------------------------- +Sun May 14 12:38:22 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 2.1.1: + * The `importlib` upgrade in 2.1 had a corner case + bug (regarding ``from . import <submodule>`` functionality + within package-like task trees which in turn exposed a + false-pass in our test suite. Both have now been fixed. + +------------------------------------------------------------------- +Thu May 11 06:22:55 UTC 2023 - Matej Cepl <mc...@suse.com> + +- Update to 2.1.0: + - [Bug] #910: Add more rigor around subprocess/runner shutdown + to avoid spurious exceptions & also fix downstream issues in + libraries like Fabric. Reported by Orlando RodrÃguez. + - [Bug] #934: The importlib upgrade in 2.1 had a corner case + bug (regarding from . import <submodule> functionality within + package-like task trees) which in turn exposed a false-pass + in our test suite. Both have now been fixed. Thanks to Greg + Meyer and Robert J. Berger for the bug reports. + - [Bug] #910: Add more rigor around subprocess/runner shutdown + to avoid spurious exceptions & also fix downstream issues in + libraries like Fabric. Reported by Orlando RodrÃguez. + - [Support] #901: (via #903) Tweak test suite setup methods to + be named setup_method so pytest stops whining about it. Patch + via Jesse P. Johnson. + - [Bug] #376: Resolve equality comparison bug for + non-collections. Patch via Jesse P. Johnson + - [Support] #901: (via #903) Tweak test suite setup methods to + be named setup_method so pytest stops whining about it. Patch + via Jesse P. Johnson. + - [Support] #906: Implement type hints and type checking + tests with mypy to reduce errors and impove code + documentation. Patches by Jesse P. Johnson and review by Sam + Bull. + - [Support] #675: Implement importlib and deprecate imp + module. Patches provided by Jesse P. Johnson + - [Support]: Task.argspec has changed its return value; it now + returns an inspect.Signature derived from that of the taskâs + body callable. + - Warning + This change is backwards incompatible if you were using this + method directly. + [Support]: Remove support for, and imports related to, + all Python versions less than 3.6 - including Python + 2. This also includes updates to vendored packages, such + as removing six and upgrading lexicon to the latest + version; and also treatment of things like Mock use within + invoke.context.MockContext (which now expects stdlibâs + unittest.mock instead of hunting for the old standalone mock + library). + This change is backwards incompatible in the following scenarios: + - You use Python <3.6. Shouldnât be an issue as we now + specify python_requires in packaging metadata. + - You call invoke.util.encode_output manually for some + reason. (This became a noop under Python 3, so justâ¦remove + it!) + - You use invoke.context.MockContext; its repeat init kwarg + changed its default value from False to True. This probably + wonât bite you, but we mention it just in case you somehow + relied upon the legacy behavior. + - You subclass invoke.runners.Runner and/or have had to + interact with its stop or stop_timer methods. The latter + has been merged into the former, and if you are overriding + stop, youâll want to make sure you now call super() + somewhere if you were not already. +- Remove upstreamed patches: + - 0001-Make-test-fallback-to-system-modules-when-vendorized.patch + - pytest4.patch +- Add remove-icecream.patch to remove unnecessary dependence on + icecream module. +- Skip temporarily failing tests (gh#pyinvoke/invoke#705). + +------------------------------------------------------------------- Old: ---- 0001-Make-test-fallback-to-system-modules-when-vendorized.patch invoke-1.7.3.tar.gz pytest4.patch New: ---- _multibuild invoke-2.1.1.tar.gz remove-icecream.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-invoke.spec ++++++ --- /var/tmp/diff_new_pack.mAube4/_old 2023-05-19 11:55:57.343412258 +0200 +++ /var/tmp/diff_new_pack.mAube4/_new 2023-05-19 11:55:57.347412281 +0200 @@ -1,5 +1,5 @@ # -# spec file for package python-invoke +# spec file # # Copyright (c) 2023 SUSE LLC # @@ -16,42 +16,47 @@ # -# broken with pytest-relaxed (same author -- all of this is unmaintained) +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} %bcond_with test +%endif -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} -Name: python-invoke -Version: 1.7.3 +Name: python-invoke%{psuffix} +Version: 2.1.1 Release: 0 Summary: Pythonic Task Execution License: BSD-2-Clause Group: Development/Languages/Python URL: https://www.pyinvoke.org Source: https://files.pythonhosted.org/packages/source/i/invoke/invoke-%{version}.tar.gz -Patch0: 0001-Make-test-fallback-to-system-modules-when-vendorized.patch -Patch1: pytest4.patch -BuildRequires: %{python_module setuptools} +# PATCH-FIX-OPENSUSE remove-icecream.patch mc...@suse.com +# We donât need icecream as yet another complication. +Patch0: remove-icecream.patch +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools > 56} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros 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 %if %{with test} BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module fluidity-sm} +BuildRequires: %{python_module invocations >= 3.0.1} +BuildRequires: %{python_module invoke >= %version} BuildRequires: %{python_module lexicon} -BuildRequires: %{python_module pexpect} -# pytest < 6.1 to resolve pytest-relaxed constraint -# https://github.com/bitprophet/pytest-relaxed/issues/12 -BuildRequires: %{python_module pytest < 6.1} BuildRequires: %{python_module pytest-relaxed} -BuildRequires: %{python_module six} +BuildRequires: %{python_module pytest} +BuildRequires: zsh %endif %python_subpackages @@ -65,18 +70,30 @@ rm -fr invoke/vendor/* %build -%python_build +%pyproject_wheel %install -%python_install +%if !%{with test} +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/inv %python_clone -a %{buildroot}%{_bindir}/invoke +%endif %if %{with test} %check -%pytest -s +# gh#pyinvoke/invoke#705 +skiptests="setcbreak_called_on_tty_stdins or setcbreak_not_called_if_process_not_foregrounded" +skiptests+=" or tty_stdins_have_settings_restored_by_default or tty_stdins_have_settings_restored_on_KeyboardInterrupt" +skiptests+=" or when_pty_True_we_use_pty_fork_and_os_exec or pty_uses_WEXITSTATUS_if_WIFEXITED" +skiptests+=" or pty_uses_WTERMSIG_if_WIFSIGNALED or WTERMSIG_result_turned_negative_to_match_subprocess" +skiptests+=" or pty_is_set_to_controlling_terminal_size or spurious_OSErrors_handled_gracefully" +skiptests+=" or other_spurious_OSErrors_handled_gracefully or non_spurious_OSErrors_bubble_up" +skiptests+=" or can_be_overridden_by_kwarg or can_be_overridden_by_config" +skiptests+=" or overridden_fallback_affects_result_pty_value or defaults_to_bash_or_cmdexe_when_pty_True" +skiptests+=" or may_be_overridden_when_pty_True or uses_execve_for_pty_True or stop_mutes_errors_on_pty_close" +%pytest -s -k "not ($skiptests)" tests %endif %post @@ -85,12 +102,14 @@ %postun %python_uninstall_alternative inv +%if !%{with test} %files %{python_files} %license LICENSE %doc README.rst %python_alternative %{_bindir}/inv %python_alternative %{_bindir}/invoke -%{python_sitelib}/invoke/ -%{python_sitelib}/invoke-%{version}-py* +%{python_sitelib}/invoke +%{python_sitelib}/invoke-%{version}*-info +%endif %changelog ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild> ++++++ invoke-1.7.3.tar.gz -> invoke-2.1.1.tar.gz ++++++ ++++ 26530 lines of diff (skipped) ++++++ remove-icecream.patch ++++++ --- dev-requirements.txt | 2 -- pyproject.toml | 4 ---- tests/conftest.py | 6 ------ 3 files changed, 12 deletions(-) --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -16,8 +16,6 @@ flake8>=4,<5 black>=22.8,<22.9 # Packaging setuptools>56 -# Debuggery -icecream>=2.1 # typing mypy==0.971 types-PyYAML==6.0.12.4 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,10 +40,6 @@ module = "alabaster" ignore_missing_imports = true [[tool.mypy.overrides]] -module = "icecream" -ignore_missing_imports = true - -[[tool.mypy.overrides]] module = "invocations" ignore_missing_imports = true --- a/tests/conftest.py +++ b/tests/conftest.py @@ -8,12 +8,6 @@ from unittest.mock import patch from _util import support -# Set up icecream globally for convenience. -from icecream import install - -install() - - # pytest seems to tweak logging such that Invoke's debug logs go to stderr, # which is then hella spammy if one is using --capture=no (which one must in # order to test low level terminal IO stuff, as we do!)