forked from pool/python-wcwidth
Accepting request 810735 from home:mcalabkova:branches:devel:languages:python
- 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.
OBS-URL: https://build.opensuse.org/request/show/810735
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=23
This commit is contained in:
committed by
Git OBS Bridge
parent
a2929d0c6e
commit
940c1a1058
@@ -26,13 +26,13 @@
|
||||
%define psuffix %{nil}
|
||||
%endif
|
||||
Name: python-wcwidth%{psuffix}
|
||||
Version: 0.1.9
|
||||
Version: 0.2.2
|
||||
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
|
||||
Source: https://github.com/jquast/wcwidth/archive/%{version}.tar.gz#/wcwidth-%{version}.tar.gz
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module pytest}
|
||||
%endif
|
||||
@@ -57,6 +57,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 +65,18 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user