public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <rosset.filipe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-tmuxp] rawhide: update tmuxp to 1.74.0
Date: Thu, 06 Aug 2026 20:57:27 GMT	[thread overview]
Message-ID: <178604984768.1.15853972179139033948.rpms-python-tmuxp-0b1644752a22@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-tmuxp
            Branch : rawhide
            Commit : 0b1644752a22cff3aa45ddab78aa4877b1a56181
            Author : Filipe Rosset <rosset.filipe@gmail.com>
            Date   : 2026-07-24T01:50:48-03:00
            Stats  : +108/-8 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-tmuxp/c/0b1644752a22cff3aa45ddab78aa4877b1a56181?branch=rawhide

            Log:
            update tmuxp to 1.74.0

Signed-off-by: Filipe Rosset <rosset.filipe@gmail.com>

---
diff --git a/fix-python315-argparse-theme.patch b/fix-python315-argparse-theme.patch
new file mode 100644
index 0000000..5548a92
--- /dev/null
+++ b/fix-python315-argparse-theme.patch
@@ -0,0 +1,95 @@
+--- a/src/tmuxp/cli/_formatter.py
++++ b/src/tmuxp/cli/_formatter.py
+@@ -72,7 +72,7 @@
+     This formatter extends RawDescriptionHelpFormatter to preserve formatting
+     of description text while adding syntax highlighting to example sections.
+ 
+-    The formatter uses a `_theme` attribute (set externally) to apply colors.
++    The formatter uses a `_tmuxp_theme` attribute (set externally) to apply colors.
+     If no theme is set, the formatter falls back to plain text output.
+ 
+     Examples
+@@ -83,7 +83,7 @@
+     """
+ 
+     # Theme for colorization, set by create_themed_formatter() or externally
+-    _theme: HelpTheme | None = None
++    _tmuxp_theme: HelpTheme | None = None
+ 
+     def _fill_text(self, text: str, width: int, indent: str) -> str:
+         """Fill text, colorizing examples sections if theme is available.
+@@ -110,7 +110,7 @@
+         >>> formatter._fill_text("hello", 80, "")
+         'hello'
+         """
+-        theme = getattr(self, "_theme", None)
++        theme = getattr(self, "_tmuxp_theme", None)
+         if not text or theme is None:
+             return super()._fill_text(text, width, indent)
+ 
+@@ -347,7 +347,7 @@
+     >>> colors = Colors(ColorMode.ALWAYS)
+     >>> formatter_cls = create_themed_formatter(colors)
+     >>> formatter = formatter_cls("test")
+-    >>> formatter._theme is not None
++    >>> formatter._tmuxp_theme is not None
+     True
+ 
+     With colors disabled:
+@@ -355,7 +355,7 @@
+     >>> colors = Colors(ColorMode.NEVER)
+     >>> formatter_cls = create_themed_formatter(colors)
+     >>> formatter = formatter_cls("test")
+-    >>> formatter._theme is None
++    >>> formatter._tmuxp_theme is None
+     True
+     """
+     # Import here to avoid circular import at module load
+@@ -372,6 +372,6 @@
+ 
+         def __init__(self, prog: str, **kwargs: t.Any) -> None:
+             super().__init__(prog, **kwargs)
+-            self._theme = theme
++            self._tmuxp_theme = theme
+ 
+     return ThemedTmuxpHelpFormatter
+--- a/tests/cli/test_formatter.py
++++ b/tests/cli/test_formatter.py
+@@ -30,8 +30,8 @@
+     formatter_cls = create_themed_formatter(colors)
+     formatter = formatter_cls("test")
+ 
+-    assert formatter._theme is not None
+-    assert formatter._theme.prog != ""  # Has color codes
++    assert formatter._tmuxp_theme is not None
++    assert formatter._tmuxp_theme.prog != ""  # Has color codes
+ 
+ 
+ def test_create_themed_formatter_with_colors_disabled() -> None:
+@@ -40,7 +40,7 @@
+     formatter_cls = create_themed_formatter(colors)
+     formatter = formatter_cls("test")
+ 
+-    assert formatter._theme is None
++    assert formatter._tmuxp_theme is None
+ 
+ 
+ def test_create_themed_formatter_auto_mode_respects_no_color(
+@@ -51,7 +51,7 @@
+     formatter_cls = create_themed_formatter()
+     formatter = formatter_cls("test")
+ 
+-    assert formatter._theme is None
++    assert formatter._tmuxp_theme is None
+ 
+ 
+ def test_create_themed_formatter_auto_mode_respects_force_color(
+@@ -63,7 +63,7 @@
+     formatter_cls = create_themed_formatter()
+     formatter = formatter_cls("test")
+ 
+-    assert formatter._theme is not None
++    assert formatter._tmuxp_theme is not None
+ 
+ 
+ def test_fill_text_with_theme_colorizes_examples(

diff --git a/python-tmuxp.spec b/python-tmuxp.spec
index 227cb65..9754acf 100644
--- a/python-tmuxp.spec
+++ b/python-tmuxp.spec
@@ -4,7 +4,7 @@
 %global srcname tmuxp
 
 Name:           python-%{srcname}
-Version:        1.52.2
+Version:        1.74.0
 Release:        %autorelease
 Summary:        Tmux session manager
 
@@ -12,6 +12,7 @@ Summary:        Tmux session manager
 License:        MIT
 URL:            https://tmuxp.git-pull.com/
 Source:         %{pypi_source}
+Patch0:         fix-python315-argparse-theme.patch
 
 BuildArch:      noarch
 
@@ -22,14 +23,15 @@ through simple configuration files.}
 %description %_description
 
 %package -n python3-%{srcname}
-Summary:	%{summary}
+Summary:        %{summary}
 BuildRequires:  python3-devel
 %if %{with tests}
-BuildRequires:  python3dist(pytest)
 BuildRequires:  python3dist(docutils)
+BuildRequires:  python3dist(pytest)
 BuildRequires:  python3dist(pytest-mock)
 BuildRequires:  python3dist(pytest-rerunfailures)
-BUildRequires:  python3dist(sphinx)
+BuildRequires:  python3dist(sphinx)
+BuildRequires:  tmux
 BuildRequires:  python3dist(typing-extensions)
 %endif
 
@@ -37,7 +39,8 @@ BuildRequires:  python3dist(typing-extensions)
 
 
 %prep
-%autosetup -n %{srcname}-%{version}
+%autosetup -p1 -n %{srcname}-%{version}
+sed -i -e '/^#!\//d' src/tmuxp/log.py
 
 
 %generate_buildrequires
@@ -55,9 +58,11 @@ BuildRequires:  python3dist(typing-extensions)
 
 %check
 %pyproject_check_import
-PYTHONPATH=src %pytest -v \
+%pytest -v tests \
 %if %{without all_tests}
-  --deselect tests/workspace/test_builder.py::test_window_shell
+  --deselect tests/workspace/test_builder.py::test_window_shell \
+  --deselect tests/workspace/test_builder.py::test_pane_readiness_call_count \
+  --deselect tests/workspace/test_builder.py::test_pane_readiness_custom_shell_skips_under_always
 %else
 %nil
 %endif

diff --git a/sources b/sources
index 0f3ff31..da0f415 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (tmuxp-1.52.2.tar.gz) = bda777b56af8ddbc1f7c0fdeb32f8908978103a23526fe91261ac7b694a1c031cac1d2b8371ac5cc660baa9770223f558e0db93f1f383f628b2784ddf7ebb839
+SHA512 (tmuxp-1.74.0.tar.gz) = 2c5d16f3c09b0cea632ce5e37280a318e4a7f99fec5c4f46ae5ff3fdbe2c7b3a04350b9ffb522117ce01a60ba1b142ca0720fb94f5a17490a2fb531f423a478d

                 reply	other threads:[~2026-08-06 20:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178604984768.1.15853972179139033948.rpms-python-tmuxp-0b1644752a22@fedoraproject.org \
    --to=rosset.filipe@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox