public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Avram Lubkin <aviso@rockhopper.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-wcwidth] rawhide: Update to 0.9.2 with C extension (#2494625)
Date: Thu, 08 Oct 2026 00:55:46 GMT [thread overview]
Message-ID: <179142094620.1.1496675681318746564.rpms-python-wcwidth-2f581260daab@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-wcwidth
Branch : rawhide
Commit : 2f581260daab027879ab93c8cc1b9144cbeff77b
Author : Avram Lubkin <aviso@rockhopper.net>
Date : 2026-10-07T20:55:25-04:00
Stats : +9/-5 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-wcwidth/c/2f581260daab027879ab93c8cc1b9144cbeff77b?branch=rawhide
Log:
Update to 0.9.2 with C extension (#2494625)
---
diff --git a/.gitignore b/.gitignore
index 6d927fa..3b680bb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,4 @@
/wcwidth-0.2.13.tar.gz
/wcwidth-0.6.0.tar.gz
/wcwidth-0.7.0.tar.gz
+/wcwidth-0.9.2.tar.gz
diff --git a/python-wcwidth.spec b/python-wcwidth.spec
index cf94cee..8293f38 100644
--- a/python-wcwidth.spec
+++ b/python-wcwidth.spec
@@ -1,16 +1,15 @@
%bcond tests 1
Name: python-wcwidth
-Version: 0.7.0
+Version: 0.9.2
Release: %autorelease
Summary: Measures number of Terminal column cells of wide-character codes
-# part of the code is under HPND-Markus-Kuhn
+# The original code was derived from wcwidth.c under an HPND license
License: MIT AND HPND-Markus-Kuhn
URL: https://github.com/jquast/wcwidth
Source: %{pypi_source wcwidth}
-BuildArch: noarch
%description
This API is mainly for Terminal Emulator implementors, or those writing programs
@@ -20,6 +19,7 @@ printable width of a string on a Terminal.
%package -n python3-wcwidth
Summary: %{summary}
BuildRequires: python3-devel
+BuildRequires: gcc
%if %{with tests}
BuildRequires: python3-pytest
%endif
@@ -47,8 +47,11 @@ sed -i -e 's|--cov[^[:space:]]*||g' tox.ini
%check
%pyproject_check_import
%if %{with tests}
-%pytest -v
+export PYTHONSAFEPATH=1
+%pytest -v --import-mode=importlib tests
%endif
+# Check to make sure C extension loads
+%{py3_test_envvars} %{python3} -c "import wcwidth; assert wcwidth.HAS_C_EXTENSION"
%files -n python3-wcwidth -f %{pyproject_files}
%doc docs/*.rst
diff --git a/sources b/sources
index f8080ec..c506eb2 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (wcwidth-0.7.0.tar.gz) = 5b8316ceb5be72e1eea2fc18ae4a237e726f6d649ef773aa6d4a3f8c75aae9bb1df83de7bbe24c97ee6dfa66b6eaa0ae462e22cc054f5965dc6c9e263fb504bc
+SHA512 (wcwidth-0.9.2.tar.gz) = e6ef4f6f89e6430d6f4179b09bf4866ac4d0b57b160b2f7dc8f1c810de19ce3f46b79a122ec0aa6f06ea0e29b9a6623aba3159ca2d5d763c512ec0268533307b
reply other threads:[~2026-10-08 0:55 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=179142094620.1.1496675681318746564.rpms-python-wcwidth-2f581260daab@fedoraproject.org \
--to=aviso@rockhopper.net \
--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