public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-wcwidth] rawhide: Update to 0.9.2 with C extension (#2494625)
@ 2026-10-08 0:55 Avram Lubkin
0 siblings, 0 replies; only message in thread
From: Avram Lubkin @ 2026-10-08 0:55 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-08 0:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-08 0:55 [rpms/python-wcwidth] rawhide: Update to 0.9.2 with C extension (#2494625) Avram Lubkin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox