public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/toot] rawhide: Update to 0.52.1 + spec cleanup and modernization
@ 2026-08-05 23:24 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-08-05 23:24 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/toot
            Branch : rawhide
            Commit : 341266095e1345094edd6a70d68ccbf0f4b35df0
            Author : Filipe Rosset <rosset.filipe@gmail.com>
            Date   : 2026-08-05T20:21:50-03:00
            Stats  : +15/-43 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/toot/c/341266095e1345094edd6a70d68ccbf0f4b35df0?branch=rawhide

            Log:
            Update to 0.52.1 + spec cleanup and modernization

Resolves: rhbz#2455051 - toot-0.52.1 is available
Resolves: rhbz#2485529 - F45FailsToInstall, FTBFS: toot: nothing provides
requested (python3dist(urwid) >= 3 with python3dist(urwid) < 4)

---
diff --git a/.gitignore b/.gitignore
index 33f2bdb..afd2db7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,28 +1 @@
-/toot-0.27.0.tar.gz
-/toot-0.28.0.tar.gz
-/toot-0.28.1.tar.gz
-/toot-0.29.0.tar.gz
-/toot-0.30.0.tar.gz
-/toot-0.31.0.tar.gz
-/toot-0.32.1.tar.gz
-/toot-0.33.0.tar.gz
-/toot-0.33.1.tar.gz
-/toot-0.34.0.tar.gz
-/toot-0.34.1.tar.gz
-/toot-0.35.0.tar.gz
-/toot-0.36.0.tar.gz
-/toot-0.37.0.tar.gz
-/toot-0.38.1.tar.gz
-/toot-0.38.2.tar.gz
-/toot-0.39.0.tar.gz
-/toot-0.42.0.tar.gz
-/toot-0.43.0.tar.gz
-/toot-0.44.1.tar.gz
-/toot-0.45.0.tar.gz
-/toot-0.46.0.tar.gz
-/toot-0.47.0.tar.gz
-/toot-0.47.1.tar.gz
-/toot-0.48.0.tar.gz
-/toot-0.48.1.tar.gz
-/toot-0.51.0.tar.gz
-/toot-0.51.1.tar.gz
+/toot-*.tar.gz

diff --git a/sources b/sources
index ec4990a..10e231e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (toot-0.51.1.tar.gz) = b23d5cba1a9d43bb8918163d49742732eca292f47e10657633c2247fa72693466c61b564ec0f2e1ccfd0188340fd5d3860c515b84a6b65cd0c490e2402ebe311
+SHA512 (toot-0.52.1.tar.gz) = b4625b9c830592c7b055cfe370a9d3a75b4327c9d72d5e6c675a5c4815bb9c5c261f6db1fe329401a45c20f226b27f59ae1a1b7882d88c003f57107fabcc041b

diff --git a/toot.spec b/toot.spec
index fc22f02..4480291 100644
--- a/toot.spec
+++ b/toot.spec
@@ -1,34 +1,33 @@
 %global modname toot
 
 Name:           %{modname}
-Version:        0.51.1
+Version:        0.52.1
 Release:        %autorelease
 Summary:        A CLI and TUI tool for interacting with Mastodon
 
-# Automatically converted from old format: GPLv3 - review is highly recommended.
 License:        GPL-3.0-only
 URL:            https://github.com/ihabunek/%{modname}
-Source0:        https://github.com/ihabunek/%{modname}/archive/refs/tags/%{version}.tar.gz#/%{modname}-%{version}.tar.gz
-# https://github.com/ihabunek/toot/issues/540
-# but tui is broken
-# Patch0:         urwid.patch
+Source0:        %{url}/archive/refs/tags/%{version}.tar.gz#/%{modname}-%{version}.tar.gz
 
 BuildArch:      noarch
 
 BuildRequires:  python3-devel
+BuildRequires:  python3-pytest
 BuildRequires:  python3-setuptools
+BuildRequires:  python3dist(pillow)
 BuildRequires:  python3dist(setuptools-scm) >= 8
-BuildRequires:  python3dist(wheel) python3dist(pytest) python3dist(pillow)
-BuildRequires:  python3dist(urwid)
+BuildRequires:  python3dist(wheel)
 
 %description
 Toot is a CLI and TUI tool for interacting with Mastodon instances
 from the command line.
 
 %prep
-%autosetup -n %{modname}-%{version}
+%autosetup -n %{modname}-%{version} -p1
 rm -rf %{modname}.egg-info
 find . -type f -name "*.py" -exec sed -i '/^#![  ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';'
+# Relax urwid dependency to allow urwid >= 3.0 (including 4.x)
+sed -i 's/"urwid\~=3.0"/"urwid>=3.0"/' pyproject.toml
 
 %generate_buildrequires
 export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
@@ -40,14 +39,14 @@ export SETUPTOOLS_SCM_PRETEND_VERSION='%{version}'
 
 %install
 %pyproject_install
+%pyproject_save_files %{modname}
 
-#%check
-%{python3} -m pytest -k 'not test_console' --ignore=tests/tui/test_rich_text.py
+%check
+%pytest -k "not test_console" --ignore=tests/tui/test_rich_text.py
 
-%files -n %{modname}
+%files -n %{modname} -f %{pyproject_files}
 %{_bindir}/toot
-%{python3_sitelib}/%{modname}
-%{python3_sitelib}/%{modname}-%{version}.dist-info/
+%doc README.rst
 %license LICENSE
 
 %changelog

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-05 23:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-05 23:24 [rpms/toot] rawhide: Update to 0.52.1 + spec cleanup and modernization Filipe Rosset

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox