public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: releng-bot <releng-bot@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/python-blessings] rawhide: Unretirement request: https://forge.fedoraproject.org/releng/fedora-scm-requests/issues/1910
Date: Tue, 17 Nov 2026 17:06:17 GMT	[thread overview]
Message-ID: <179493517700.1.8467887886875564843.rpms-python-blessings-60a09b2902a9@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-blessings
Branch : rawhide
Commit : 60a09b2902a92712eee69b14de398d6fa7429551
Author : releng-bot <releng-bot@fedoraproject.org>
Date   : 2026-11-17T17:06:13+00:00
Stats  : +400/-1 in 7 file(s)
URL    : https://src.fedoraproject.org/rpms/python-blessings/c/60a09b2902a92712eee69b14de398d6fa7429551?branch=rawhide

Log:
Unretirement request: https://forge.fedoraproject.org/releng/fedora-scm-requests/issues/1910

---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..7c3d1b0
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/blessings-1.5.tar.gz
+/blessings-1.7.tar.gz

diff --git a/0001-fix-tests-when-run-without-a-tty-fixes-25.patch b/0001-fix-tests-when-run-without-a-tty-fixes-25.patch
new file mode 100644
index 0000000..cded4ae
--- /dev/null
+++ b/0001-fix-tests-when-run-without-a-tty-fixes-25.patch
@@ -0,0 +1,52 @@
+From 125981259d2045f47fc7dde2b6f0f71fed0f1d85 Mon Sep 17 00:00:00 2001
+From: Dan Callaghan <dcallagh@redhat.com>
+Date: Fri, 30 Nov 2012 14:05:04 +1000
+Subject: [PATCH] fix tests when run without a tty (fixes #25)
+
+---
+ blessings/tests.py | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/blessings/tests.py b/blessings/tests.py
+index a03eb8d..da1a71b 100644
+--- a/blessings/tests.py
++++ b/blessings/tests.py
+@@ -43,6 +43,8 @@ def test_capability():
+ 
+     """
+     t = TestTerminal()
++    if not t.is_a_tty:
++        raise SkipTest
+     sc = unicode_cap('sc')
+     eq_(t.save, sc)
+     eq_(t.save, sc)  # Make sure caching doesn't screw it up.
+@@ -64,7 +66,7 @@ def test_capability_with_forced_tty():
+ 
+ def test_parametrization():
+     """Test parametrizing a capability."""
+-    eq_(TestTerminal().cup(3, 4), unicode_parm('cup', 3, 4))
++    eq_(TestTerminal(force_styling=True).cup(3, 4), unicode_parm('cup', 3, 4))
+ 
+ 
+ def test_height_and_width():
+@@ -144,7 +146,7 @@ def test_mnemonic_colors():
+ 
+     # Avoid testing red, blue, yellow, and cyan, since they might someday
+     # change depending on terminal type.
+-    t = TestTerminal()
++    t = TestTerminal(force_styling=True)
+     eq_(t.white, color(7))
+     eq_(t.green, color(2))  # Make sure it's different than white.
+     eq_(t.on_black, on_color(0))
+@@ -250,7 +252,7 @@ def test_nice_formatting_errors():
+ def test_init_descriptor_always_initted():
+     """We should be able to get a height and width even on no-tty Terminals."""
+     t = Terminal(stream=StringIO())
+-    eq_(type(t.height), int)
++    assert isinstance(t.height, int) or t.height is None
+ 
+ 
+ def test_force_styling_none():
+-- 
+2.50.1
+

diff --git a/0002-more-fixes-for-tests-without-a-tty.patch b/0002-more-fixes-for-tests-without-a-tty.patch
new file mode 100644
index 0000000..dd9c64a
--- /dev/null
+++ b/0002-more-fixes-for-tests-without-a-tty.patch
@@ -0,0 +1,34 @@
+From 5e8d1ecde4389f88af3d1c7927d570a62c9236f3 Mon Sep 17 00:00:00 2001
+From: Dan Callaghan <dcallagh@redhat.com>
+Date: Tue, 26 Jun 2018 15:51:46 +1000
+Subject: [PATCH] more fixes for tests without a tty
+
+---
+ blessings/tests.py | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/blessings/tests.py b/blessings/tests.py
+index da1a71b..1ee238b 100644
+--- a/blessings/tests.py
++++ b/blessings/tests.py
+@@ -72,6 +72,8 @@ def test_parametrization():
+ def test_height_and_width():
+     """Assert that ``height_and_width()`` returns ints."""
+     t = TestTerminal()  # kind shouldn't matter.
++    if not t.is_a_tty:
++        raise SkipTest()
+     assert isinstance(t.height, int)
+     assert isinstance(t.width, int)
+ 
+@@ -193,7 +195,7 @@ def test_number_of_colors_without_tty():
+ 
+ def test_number_of_colors_with_tty():
+     """``number_of_colors`` should work."""
+-    t = TestTerminal()
++    t = TestTerminal(force_styling=True)
+     eq_(t.number_of_colors, 256)
+ 
+ 
+-- 
+2.50.1
+

diff --git a/0003-chore-replace-nose-with-pytest.patch b/0003-chore-replace-nose-with-pytest.patch
new file mode 100644
index 0000000..0286b4b
--- /dev/null
+++ b/0003-chore-replace-nose-with-pytest.patch
@@ -0,0 +1,96 @@
+From c9cf1d4bf78480a26c45cf4f4b6df5186ed52eb2 Mon Sep 17 00:00:00 2001
+From: Jamison Lahman <jamison@lahman.dev>
+Date: Thu, 28 Aug 2025 01:50:45 -0700
+Subject: [PATCH] chore: replace nose with pytest
+
+(cherry picked from commit 50655345d28627b6fe00210afa253ed0551c8dee)
+---
+ blessings/tests.py | 14 +++++++++-----
+ setup.py           |  3 +--
+ tox.ini            |  4 ++--
+ 3 files changed, 12 insertions(+), 9 deletions(-)
+
+diff --git a/blessings/tests.py b/blessings/tests.py
+index 1ee238b..2360e7b 100644
+--- a/blessings/tests.py
++++ b/blessings/tests.py
+@@ -13,8 +13,7 @@ from curses import tigetstr, tparm
+ from functools import partial
+ import sys
+ 
+-from nose import SkipTest
+-from nose.tools import eq_
++import pytest
+ from six import StringIO
+ 
+ # This tests that __all__ is correct, since we use below everything that should
+@@ -25,6 +24,11 @@ from blessings import *
+ TestTerminal = partial(Terminal, kind='xterm-256color')
+ 
+ 
++def eq_(a, b):
++    """Assert equality of two objects."""
++    assert a == b
++
++
+ def unicode_cap(cap):
+     """Return the result of ``tigetstr`` except as Unicode."""
+     return tigetstr(cap).decode('latin1')
+@@ -44,7 +48,7 @@ def test_capability():
+     """
+     t = TestTerminal()
+     if not t.is_a_tty:
+-        raise SkipTest
++        pytest.skip()
+     sc = unicode_cap('sc')
+     eq_(t.save, sc)
+     eq_(t.save, sc)  # Make sure caching doesn't screw it up.
+@@ -73,7 +77,7 @@ def test_height_and_width():
+     """Assert that ``height_and_width()`` returns ints."""
+     t = TestTerminal()  # kind shouldn't matter.
+     if not t.is_a_tty:
+-        raise SkipTest()
++        pytest.skip()
+     assert isinstance(t.height, int)
+     assert isinstance(t.width, int)
+ 
+@@ -185,7 +189,7 @@ def test_number_of_colors_without_tty():
+     """``number_of_colors`` should return 0 when there's no tty."""
+     # Hypothesis: once setupterm() has run and decided the tty supports 256
+     # colors, it never changes its mind.
+-    raise SkipTest
++    pytest.skip()
+ 
+     t = TestTerminal(stream=StringIO())
+     eq_(t.number_of_colors, 0)
+diff --git a/setup.py b/setup.py
+index 01488fc..b515c3e 100644
+--- a/setup.py
++++ b/setup.py
+@@ -20,8 +20,7 @@ setup(
+     license='MIT',
+     packages=find_packages(exclude=['ez_setup']),
+     install_requires=['six'],
+-    tests_require=['nose'],
+-    test_suite='nose.collector',
++    tests_require=['pytest'],
+     url='https://github.com/erikrose/blessings',
+     include_package_data=True,
+     python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
+diff --git a/tox.ini b/tox.ini
+index 558601e..6fd2f90 100644
+--- a/tox.ini
++++ b/tox.ini
+@@ -2,7 +2,7 @@
+ envlist = py{27,34,35,36,py}
+ 
+ [testenv]
+-commands = nosetests blessings
++commands = pytest -s blessings/tests.py
+ deps =
+-    nose
++    pytest
+     six
+-- 
+2.50.1
+

diff --git a/dead.package b/dead.package
deleted file mode 100644
index 5204a84..0000000
--- a/dead.package
+++ /dev/null
@@ -1 +0,0 @@
-Orphaned for 6+ weeks

diff --git a/python-blessings.spec b/python-blessings.spec
new file mode 100644
index 0000000..40dc31a
--- /dev/null
+++ b/python-blessings.spec
@@ -0,0 +1,215 @@
+%bcond tests 1
+
+Name:           python-blessings
+Version:        1.7
+Release:        35%{?dist}
+Summary:        Thin, practical wrapper around terminal coloring, styling, and positioning
+License:        MIT
+URL:            https://github.com/erikrose/blessings
+Source:         %{pypi_source blessings}
+# https://github.com/erikrose/blessings/issues/25
+Patch:          0001-fix-tests-when-run-without-a-tty-fixes-25.patch
+Patch:          0002-more-fixes-for-tests-without-a-tty.patch
+# https://github.com/erikrose/blessings/pull/167
+Patch:          0003-chore-replace-nose-with-pytest.patch
+BuildArch:      noarch
+
+%global _description %{expand:
+Blessings lifts several of curses' limiting assumptions, and it makes your code
+pretty, too:
+
+* Use styles, color, and maybe a little positioning without necessarily
+  clearing the whole screen first.
+* Leave more than one screenful of scrollback in the buffer after your program
+  exits, like a well-behaved command-line app should.
+* Get rid of all those noisy, C-like calls to tigetstr and tparm, so your code
+  does not get crowded out by terminal bookkeeping.
+* Act intelligently when somebody redirects your output to a file, omitting the
+  terminal control codes the user does not want to see (optional).}
+
+%description %{_description}
+
+%package -n python3-blessings
+Summary:        %{summary}
+BuildRequires:  python3-devel
+
+%description -n python3-blessings %{_description}
+
+%prep
+%autosetup -p 1 -n blessings-%{version}
+
+%generate_buildrequires
+%pyproject_buildrequires %{?with_tests:-t}
+
+%build
+%pyproject_wheel
+
+%install
+%pyproject_install
+%pyproject_save_files blessings
+
+%check
+%if %{with tests}
+%tox
+%else
+%pyproject_check_import -e blessings.tests
+%endif
+
+%files -n python3-blessings -f %{pyproject_files}
+%doc README.rst
+
+%changelog
+* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-35
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
+
+* Wed Jun 03 2026 Python Maint <python-maint@redhat.com> - 1.7-34
+- Rebuilt for Python 3.15
+
+* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-33
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
+
+* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 1.7-32
+- Rebuilt for Python 3.14.0rc3 bytecode
+
+* Fri Aug 29 2025 Carl George <carlwgeorge@fedoraproject.org> - 1.7-31
+- Re-enable tests via upstream patch
+
+* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 1.7-30
+- Rebuilt for Python 3.14.0rc2 bytecode
+
+* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-29
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
+
+* Mon Jun 02 2025 Python Maint <python-maint@redhat.com> - 1.7-28
+- Rebuilt for Python 3.14
+
+* Wed Mar 19 2025 Michel Lind <salimma@fedoraproject.org> - 1.7-27
+- Disable nose tests on Fedora >= 43
+- Resolves: RHBZ#2349839
+
+* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-26
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
+
+* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-25
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
+
+* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 1.7-24
+- Rebuilt for Python 3.13
+
+* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-23
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
+
+* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-22
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
+
+* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-21
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
+
+* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 1.7-20
+- Rebuilt for Python 3.12
+
+* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-19
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
+
+* Fri Aug 26 2022 Carl George <carl@george.computer> - 1.7-18
+- Convert to pyproject macros
+
+* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-17
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
+
+* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.7-16
+- Rebuilt for Python 3.11
+
+* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-15
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
+
+* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-14
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
+
+* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.7-13
+- Rebuilt for Python 3.10
+
+* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-12
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
+
+* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-11
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
+
+* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.7-10
+- Rebuilt for Python 3.9
+
+* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-9
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
+
+* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7-8
+- Rebuilt for Python 3.8.0rc1 (#1748018)
+
+* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7-7
+- Rebuilt for Python 3.8
+
+* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-6
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
+
+* Thu May 09 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7-5
+- Subpackage python2-blessings has been removed
+  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
+
+* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
+
+* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
+
+* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 1.7-2
+- Rebuilt for Python 3.7
+
+* Tue Jun 26 2018 Dan Callaghan <dcallagh@redhat.com> - 1.7-1
+- Upstream release 1.7 (RHBZ#1594040)
+
+* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.5-16
+- Rebuilt for Python 3.7
+
+* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-15
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
+* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-14
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+
+* Fri Jun 23 2017 Dan Callaghan <dcallagh@redhat.com> - 1.5-13
+- forgot to add %%python_provide macro
+
+* Fri Jun 23 2017 Dan Callaghan <dcallagh@redhat.com> - 1.5-12
+- renamed python-blessings to python2-blessings
+
+* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-11
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+
+* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.5-10
+- Rebuild for Python 3.6
+
+* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-9
+- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
+
+* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-8
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
+
+* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-7
+- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
+
+* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-6
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
+
+* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+
+* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.5-4
+- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
+
+* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
+
+* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
+
+* Fri Nov 30 2012 Dan Callaghan <dcallagh@redhat.com> - 1.5-1
+- initial version

diff --git a/sources b/sources
new file mode 100644
index 0000000..ab976e7
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (blessings-1.7.tar.gz) = 66a8e7af6a8807c8be68f4d71db25ca6c26f46ddfa9a7e4792a2f73033df81d8392633ff75e6fa131039d9136030844ed93b11316b9f7e2e6ea77675f2f3e528

                 reply	other threads:[~2026-11-17 17:06 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=179493517700.1.8467887886875564843.rpms-python-blessings-60a09b2902a9@fedoraproject.org \
    --to=releng-bot@fedoraproject.org \
    --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