diff --git a/docformatter-1.3.1.tar.gz b/docformatter-1.3.1.tar.gz deleted file mode 100644 index 130abd2..0000000 --- a/docformatter-1.3.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d8db663665becccac75737b2635a06076f2c832bf861322a7bfc512f0a9fa7e3 -size 16795 diff --git a/docformatter-1.4.tar.gz b/docformatter-1.4.tar.gz new file mode 100644 index 0000000..be8b879 --- /dev/null +++ b/docformatter-1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:064e6d81f04ac96bc0d176cbaae953a0332482b22d3ad70d47c8a7f2732eef6f +size 208955 diff --git a/python-docformatter.changes b/python-docformatter.changes index 5593381..6eb8e6b 100644 --- a/python-docformatter.changes +++ b/python-docformatter.changes @@ -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 diff --git a/python-docformatter.spec b/python-docformatter.spec index 3f94a4e..d8ce49e 100644 --- a/python-docformatter.spec +++ b/python-docformatter.spec @@ -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