- Update to 0.2.6:
* Fix example for str.rjust(20, '_') * Add CodeQL workflow for GitHub code scanning * Switch to using importlib.metadata * Use a new jinja2 templating process to update library to latest unicode - Drop patch remove-pkg_resources.patch. - Remove Python 2 gubbins. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=39
This commit is contained in:
parent
1f5a0dc0fd
commit
cfe629c740
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 17 06:29:30 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Update to 0.2.6:
|
||||||
|
* Fix example for str.rjust(20, '_')
|
||||||
|
* Add CodeQL workflow for GitHub code scanning
|
||||||
|
* Switch to using importlib.metadata
|
||||||
|
* Use a new jinja2 templating process to update library to latest unicode
|
||||||
|
- Drop patch remove-pkg_resources.patch.
|
||||||
|
- Remove Python 2 gubbins.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 23 10:03:23 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>
|
Wed Nov 23 10:03:23 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-wcwidth
|
# spec file for package python-wcwidth
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 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
|
||||||
@ -16,28 +16,18 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
%bcond_without python2
|
|
||||||
Name: python-wcwidth
|
Name: python-wcwidth
|
||||||
Version: 0.2.5
|
Version: 0.2.6
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Number of Terminal column cells of wide-character codes
|
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
|
||||||
# PATCH-FIX-UPSTREAM gh#jquast/wcwidth#62
|
|
||||||
Patch0: remove-pkg_resources.patch
|
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with python2}
|
|
||||||
BuildRequires: python-backports.functools_lru_cache >= 1.2.1
|
|
||||||
%endif
|
|
||||||
%ifpython2
|
|
||||||
Requires: python-backports.functools_lru_cache >= 1.2.1
|
|
||||||
%endif
|
|
||||||
%if %python_version_nodots < 38
|
%if %python_version_nodots < 38
|
||||||
Requires: python-importlib_metadata
|
Requires: python-importlib_metadata
|
||||||
%endif
|
%endif
|
||||||
|
@ -1,51 +0,0 @@
|
|||||||
Index: wcwidth-0.2.5/tests/test_core.py
|
|
||||||
===================================================================
|
|
||||||
--- wcwidth-0.2.5.orig/tests/test_core.py
|
|
||||||
+++ wcwidth-0.2.5/tests/test_core.py
|
|
||||||
@@ -1,7 +1,10 @@
|
|
||||||
# coding: utf-8
|
|
||||||
"""Core tests for wcwidth module."""
|
|
||||||
# 3rd party
|
|
||||||
-import pkg_resources
|
|
||||||
+try:
|
|
||||||
+ import importlib.metadata as importmeta
|
|
||||||
+except ImportError:
|
|
||||||
+ import importlib_metadata as importmeta
|
|
||||||
|
|
||||||
# local
|
|
||||||
import wcwidth
|
|
||||||
@@ -10,7 +13,7 @@ import wcwidth
|
|
||||||
def test_package_version():
|
|
||||||
"""wcwidth.__version__ is expected value."""
|
|
||||||
# given,
|
|
||||||
- expected = pkg_resources.get_distribution('wcwidth').version
|
|
||||||
+ expected = importmeta.version('wcwidth')
|
|
||||||
|
|
||||||
# exercise,
|
|
||||||
result = wcwidth.__version__
|
|
||||||
Index: wcwidth-0.2.5/tests/test_ucslevel.py
|
|
||||||
===================================================================
|
|
||||||
--- wcwidth-0.2.5.orig/tests/test_ucslevel.py
|
|
||||||
+++ wcwidth-0.2.5/tests/test_ucslevel.py
|
|
||||||
@@ -6,7 +6,6 @@ import warnings
|
|
||||||
|
|
||||||
# 3rd party
|
|
||||||
import pytest
|
|
||||||
-import pkg_resources
|
|
||||||
|
|
||||||
# local
|
|
||||||
import wcwidth
|
|
||||||
Index: wcwidth-0.2.5/setup.py
|
|
||||||
===================================================================
|
|
||||||
--- wcwidth-0.2.5.orig/setup.py
|
|
||||||
+++ wcwidth-0.2.5/setup.py
|
|
||||||
@@ -52,7 +52,8 @@ def main():
|
|
||||||
author='Jeff Quast',
|
|
||||||
author_email='contact@jeffquast.com',
|
|
||||||
install_requires=('backports.functools-lru-cache>=1.2.1;'
|
|
||||||
- 'python_version < "3.2"'),
|
|
||||||
+ 'python_version < "3.2"',
|
|
||||||
+ 'importlib_metadata;python_version < "3.8"'),
|
|
||||||
license='MIT',
|
|
||||||
packages=['wcwidth'],
|
|
||||||
url='https://github.com/jquast/wcwidth',
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:b08fa4c7d7be1ba86950c2d746eb0d19de80842ab7457df5b3fcd3bf52e02b08
|
|
||||||
size 47514
|
|
BIN
wcwidth-0.2.6.tar.gz
(Stored with Git LFS)
Normal file
BIN
wcwidth-0.2.6.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user