Accepting request 998089 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/998089
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=45
This commit is contained in:
Dominique Leuenberger 2022-08-20 18:27:44 +00:00 committed by Git OBS Bridge
commit 93dcd3ab6c
4 changed files with 23 additions and 16 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f3b0467daca18fca0dc7838de7726a72ab64127a018a377a86a6ed8ebfdbb25f
size 676903

3
cmd2-2.4.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:073e555c05853b0f6965f3d03329babdf9e38a5f2cea028e61a64cd7eeb74ad5
size 677598

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Thu Aug 18 15:38:40 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Update to 2.4.2
* Updated argparse decorator to remove annotations when the
docstring is used for a command's help text.
* Updated unit test to be Python 3.11 compliant.
- Clean specfile, remove coverage
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jun 4 15:00:50 UTC 2022 - Dirk Müller <dmueller@suse.com> Sat Jun 4 15:00:50 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1 %define skip_python2 1
Name: python-cmd2 Name: python-cmd2
Version: 2.4.1 Version: 2.4.2
Release: 0 Release: 0
Summary: Extra features for standard library's cmd module Summary: Extra features for standard library's cmd module
License: MIT License: MIT
@ -36,23 +36,19 @@ Requires: python-attrs >= 16.3.0
Requires: python-pyperclip >= 1.6 Requires: python-pyperclip >= 1.6
Requires: python-wcwidth >= 0.1.7 Requires: python-wcwidth >= 0.1.7
BuildArch: noarch BuildArch: noarch
%if %{python3_version_nodots} < 35 %if 0%{?python_version_nodots} < 38
Requires: python-contextlib2 Requires: python-importlib_metadata >= 1.6
Requires: python-typing Requires: python-typing_extensions
%endif %endif
# SECTION Test requirements # SECTION Test requirements
BuildRequires: %{python_module attrs >= 16.3.0} BuildRequires: %{python_module attrs >= 16.3.0}
BuildRequires: %{python_module importlib_metadata >= 1.6 if %python-base < 3.8}
BuildRequires: %{python_module pyperclip >= 1.6} BuildRequires: %{python_module pyperclip >= 1.6}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest-mock} BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module typing_extensions if %python-base < 3.8}
BuildRequires: %{python_module wcwidth >= 0.1.7} BuildRequires: %{python_module wcwidth >= 0.1.7}
# Required by tests.
BuildRequires: vim BuildRequires: vim
%if 0%{?suse_version} <= 1315
BuildRequires: %{python_module contextlib2}
BuildRequires: %{python_module typing}
%endif
# /SECTION # /SECTION
%python_subpackages %python_subpackages
@ -79,6 +75,7 @@ Drop-in replacement adds several features for command-prompt tools:
%setup -q -n cmd2-%{version} %setup -q -n cmd2-%{version}
# Fix spurious-executable-perm # Fix spurious-executable-perm
chmod a-x README.md chmod a-x README.md
sed -i '/--cov/d' setup.cfg
%build %build
%python_build %python_build
@ -88,12 +85,13 @@ chmod a-x README.md
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
rm -v tests/test_transcript.py tests/test_parsing.py tests/test_cmd2.py # -q: prevent to colorize the terminal from color commands in parametrized test names
%pytest %pytest -q
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc CHANGELOG.md README.md %doc CHANGELOG.md README.md
%{python_sitelib}/* %{python_sitelib}/cmd2
%{python_sitelib}/cmd2-%{version}*-info
%changelog %changelog