15
0

Accepting request 894546 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/894546
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-docformatter?expand=0&rev=8
This commit is contained in:
2021-05-20 17:25:17 +00:00
committed by Git OBS Bridge
4 changed files with 20 additions and 7 deletions

View File

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

3
docformatter-1.4.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Thu May 20 07:18:31 UTC 2021 - pgajdos@suse.com
- 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
-------------------------------------------------------------------
Tue May 26 07:22:42 UTC 2020 - Petr Gajdos <pgajdos@suse.com>

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