15
0

Accepting request 894529 from home:pgajdos:python

- version update to 1.4
  * Add --docstring-length flag
  * Not add period for summary formatted as title
  * Added command line exclude option
- use %pytest macro

OBS-URL: https://build.opensuse.org/request/show/894529
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docformatter?expand=0&rev=17
This commit is contained in:
2021-05-20 08:14:30 +00:00
committed by Git OBS Bridge
parent b9c3d77fde
commit 7be6aa2f9d
4 changed files with 20 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-docformatter
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-docformatter
Version: 1.3.1
Version: 1.4
Release: 0
Summary: Utility to re-format docstrings per PEP 257
License: MIT
@@ -31,9 +31,13 @@ BuildRequires: python-rpm-macros
Requires: python-setuptools
Requires: python-untokenize
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
# SECTION test requirements
%if %{suse_version} <= 1500
BuildRequires: python2-mock
%endif
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module untokenize}
# /SECTION
%python_subpackages
@@ -71,7 +75,7 @@ sed -i -e '/^#!\//, 1d' docformatter.py
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
%pytest
%post
%python_install_alternative docformatter