14
0

Accepting request 1285276 from devel:languages:python

- Switch to pyproject macros.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/request/show/1285276
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wcwidth?expand=0&rev=21
This commit is contained in:
2025-06-13 16:43:17 +00:00
committed by Git OBS Bridge
2 changed files with 13 additions and 4 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jun 13 02:43:13 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jan 6 13:09:08 UTC 2024 - Dirk Müller <dmueller@suse.com> Sat Jan 6 13:09:08 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-wcwidth # spec file for package python-wcwidth
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -24,8 +24,10 @@ Summary: Number of Terminal column cells of wide-character codes
License: MIT License: MIT
URL: https://github.com/jquast/wcwidth URL: https://github.com/jquast/wcwidth
Source: https://github.com/jquast/wcwidth/archive/%{version}.tar.gz#/wcwidth-%{version}.tar.gz Source: https://github.com/jquast/wcwidth/archive/%{version}.tar.gz#/wcwidth-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
@@ -54,10 +56,10 @@ sed -i 's/--cov[-=a-z]*//g' tox.ini
sed -i 's/looponfailroots.*//' tox.ini sed -i 's/looponfailroots.*//' tox.ini
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -66,6 +68,7 @@ sed -i 's/looponfailroots.*//' tox.ini
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc docs/intro.rst %doc docs/intro.rst
%{python_sitelib}/* %{python_sitelib}/wcwidth
%{python_sitelib}/wcwidth-%{version}.dist-info
%changelog %changelog