Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-typer for openSUSE:Factory checked in at 2026-06-05 14:56:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-typer (Old) and /work/SRC/openSUSE:Factory/.python-typer.new.2375 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-typer" Fri Jun 5 14:56:05 2026 rev:35 rq:1357115 version:0.26.7 Changes: -------- --- /work/SRC/openSUSE:Factory/python-typer/python-typer.changes 2026-05-21 18:25:53.791005723 +0200 +++ /work/SRC/openSUSE:Factory/.python-typer.new.2375/python-typer.changes 2026-06-05 14:56:21.342518757 +0200 @@ -1,0 +2,17 @@ +Wed Jun 3 17:03:25 UTC 2026 - Matthias Bach <[email protected]> + +- Update to 0.26.7 + * Respect wait=False when launching URLs with xdg-open. + * Ensure that the default of a list argument is used correctly. + * Ensure that hidden commands are not shown when Rich markup is + disabled. + * Ensure that an envvar set for a typer.Option list is split on + whitespace. + * Vendor Click and streamline Typer's functionality and code base. + - Click is no longer a dependency but can be installed in + parallel. + - The codebase will evolve independently of Click. +- Add set-proper-pythonpath-for-file-argument-tests.patch to fix + PYTHONPATH issues with the test for file arguments. + +------------------------------------------------------------------- Old: ---- typer-0.25.1.tar.gz New: ---- set-proper-pythonpath-for-file-argument-tests.patch typer-0.26.7.tar.gz ----------(New B)---------- New: - The codebase will evolve independently of Click. - Add set-proper-pythonpath-for-file-argument-tests.patch to fix PYTHONPATH issues with the test for file arguments. ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-typer.spec ++++++ --- /var/tmp/diff_new_pack.4q6LJT/_old 2026-06-05 14:56:22.362560941 +0200 +++ /var/tmp/diff_new_pack.4q6LJT/_new 2026-06-05 14:56:22.374561437 +0200 @@ -25,15 +25,15 @@ %endif %{?sle15_python_module_pythons} Name: python-typer -Version: 0.25.1 +Version: 0.26.7 Release: 0 Summary: Typer, build great CLIs. Easy to code. Based on Python type hints License: MIT URL: https://github.com/tiangolo/typer Source: https://files.pythonhosted.org/packages/source/t/typer/typer-%{version}.tar.gz Patch1: set-proper-pythonpath-for-tutorial-script-tests.patch +Patch2: set-proper-pythonpath-for-file-argument-tests.patch BuildRequires: %{python_module annotated-doc} -BuildRequires: %{python_module click} BuildRequires: %{python_module coverage} BuildRequires: %{python_module pdm-backend} BuildRequires: %{python_module pip} @@ -45,7 +45,6 @@ # Work around Python dependency not being auto-added as there are no modules provided Requires: %{plainpython}(abi) = %{python_version} Requires: python-annotated-doc -Requires: python-click Requires: python-rich Requires: python-shellingham # both packages provide /usr/bin/typer @@ -91,6 +90,7 @@ # - test_enum/test_tutorial003 # - test_script_completion_run and test_completion_show_invalid_shell # - test_invalid_score stumbles over linebreaks in the output +export COLUMNS=256 # avoid linebreaks messing with test assertions %pytest -k 'not ((test_enum and test_tutorial003) or test_script_completion_run or test_completion_show_invalid_shell or test_invalid_score)' %post ++++++ set-proper-pythonpath-for-file-argument-tests.patch ++++++ From: Matthias Bach <[email protected]> Date: Wed, 3 Jun 2026 21:27:26 +0200 Subject: [PATCH] Ensure PYTHONPATH is passed in file argument tests References: https://github.com/tiangolo/typer/pull/407 Upstream: tbd --- tests/test_types_file.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_types_file.py b/tests/test_types_file.py index 3fb7d82..298d4f1 100644 --- a/tests/test_types_file.py +++ b/tests/test_types_file.py @@ -1,3 +1,4 @@ +import os import subprocess import sys from io import BytesIO, StringIO @@ -9,6 +10,7 @@ from typer._click._compat import get_best_encoding, should_strip_ansi from typer._click.utils import PacifyFlushWrapper from typer.testing import CliRunner +import tests from tests.utils import needs_linux, needs_windows app = typer.Typer() @@ -136,6 +138,12 @@ def test_binary_dash() -> None: def test_binary_stderr() -> None: + env = os.environ.copy() + if "PYTHONPATH" in env: + env["PYTHONPATH"] = ":".join( + [str(Path(tests.__path__[0]).parent)] + [env["PYTHONPATH"]] + ) + result = subprocess.run( [ sys.executable, @@ -146,6 +154,7 @@ def test_binary_stderr() -> None: "write-binary-stderr", ], capture_output=True, + env=env, ) assert result.returncode == 0 assert result.stderr == b"binary-stderr\n" -- 2.51.0 ++++++ typer-0.25.1.tar.gz -> typer-0.26.7.tar.gz ++++++ ++++ 13260 lines of diff (skipped)
