diff --git a/python-wcwidth.changes b/python-wcwidth.changes index 280905a..50391f9 100644 --- a/python-wcwidth.changes +++ b/python-wcwidth.changes @@ -1,3 +1,25 @@ +------------------------------------------------------------------- +Mon Jun 8 13:45:57 UTC 2020 - Dirk Mueller + +- update to 0.2.3 + * add tests + +------------------------------------------------------------------- +Mon Jun 8 07:13:36 UTC 2020 - Tomáš Chvátal + +- Add missing python2 dependency for Leap to work + +------------------------------------------------------------------- +Tue Jun 2 06:52:39 UTC 2020 - Marketa Calabkova + +- Update to version 0.2.2 + * Enhancement: Unicode version may be selected by exporting the + Environment variable UNICODE_VERSION, such as 13.0, or 6.3.0. + See the jquast/ucs-detect CLI utility for automatic detection. + * Enhancement: API Documentation is published to readthedocs.org. + * Updated tables for all Unicode Specifications with files published + in a programmatically consumable format. + ------------------------------------------------------------------- Wed May 6 02:25:29 UTC 2020 - Steve Kowalik diff --git a/python-wcwidth.spec b/python-wcwidth.spec index aa34c43..d04e2a0 100644 --- a/python-wcwidth.spec +++ b/python-wcwidth.spec @@ -19,27 +19,34 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" -%bcond_without test %define psuffix -%{flavor} +%bcond_without test %else -%bcond_with test %define psuffix %{nil} +%bcond_with test %endif +%bcond_without python2 Name: python-wcwidth%{psuffix} -Version: 0.1.9 +Version: 0.2.3 Release: 0 Summary: Number of Terminal column cells of wide-character codes License: MIT -Group: Development/Languages/Python URL: https://github.com/jquast/wcwidth -Source: https://files.pythonhosted.org/packages/source/w/wcwidth/wcwidth-%{version}.tar.gz -%if %{with test} -BuildRequires: %{python_module pytest} -%endif +Source: https://github.com/jquast/wcwidth/archive/%{version}.tar.gz#/wcwidth-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch +%if %{with test} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module wcwidth >= %{version}} +%if %{with python2} +BuildRequires: python-backports.functools_lru_cache >= 1.2.1 +%endif +%endif +%ifpython2 +Requires: python-backports.functools_lru_cache >= 1.2.1 +%endif %python_subpackages %description @@ -57,6 +64,7 @@ release files, which this project aims to track. %prep %setup -q -n wcwidth-%{version} +sed -i 's/--cov[-=a-z]*//g' tox.ini %build %python_build @@ -64,22 +72,17 @@ release files, which this project aims to track. %install %if ! %{with test} %python_install - -# Remove tests from runtime -%{python_expand rm -r %{buildroot}%{$python_sitelib}/wcwidth/tests/ -%fdupes %{buildroot}%{$python_sitelib} -} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %endif %check %if %{with test} -%pytest +%pytest tests %endif %if ! %{with test} - %files %{python_files} -%license LICENSE.txt +%license LICENSE %doc README.rst %{python_sitelib}/* %endif diff --git a/wcwidth-0.1.9.tar.gz b/wcwidth-0.1.9.tar.gz deleted file mode 100644 index 2f56dd8..0000000 --- a/wcwidth-0.1.9.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ee73862862a156bf77ff92b09034fc4825dd3af9cf81bc5b360668d425f3c5f1 -size 24764 diff --git a/wcwidth-0.2.3.tar.gz b/wcwidth-0.2.3.tar.gz new file mode 100644 index 0000000..5329d20 --- /dev/null +++ b/wcwidth-0.2.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:60fdf9c1f3b1fe8dc39e772e603aa4ee739a432c7586c405564bae56f8639149 +size 46938