Hello community, here is the log from the commit of package python-docformatter for openSUSE:Factory checked in at 2020-04-02 17:45:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-docformatter (Old) and /work/SRC/openSUSE:Factory/.python-docformatter.new.3248 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-docformatter" Thu Apr 2 17:45:10 2020 rev:6 rq:790889 version:1.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-docformatter/python-docformatter.changes 2019-07-26 17:34:06.968092209 +0200 +++ /work/SRC/openSUSE:Factory/.python-docformatter.new.3248/python-docformatter.changes 2020-04-02 17:45:33.181543677 +0200 @@ -1,0 +2,6 @@ +Thu Apr 2 12:38:39 UTC 2020 - Marketa Calabkova <mcalabk...@suse.com> + +- update to 1.3.1 + * A pydoc reference such as ':see:' should not be start of sentence + +------------------------------------------------------------------- Old: ---- docformatter-1.3.tar.gz New: ---- docformatter-1.3.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-docformatter.spec ++++++ --- /var/tmp/diff_new_pack.tMxlk9/_old 2020-04-02 17:45:34.129544822 +0200 +++ /var/tmp/diff_new_pack.tMxlk9/_new 2020-04-02 17:45:34.133544827 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-docformatter # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,12 +18,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-docformatter -Version: 1.3 +Version: 1.3.1 Release: 0 Summary: Utility to re-format docstrings per PEP 257 License: MIT Group: Development/Languages/Python -Url: https://github.com/myint/docformatter +URL: https://github.com/myint/docformatter Source: https://files.pythonhosted.org/packages/source/d/docformatter/docformatter-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes ++++++ docformatter-1.3.tar.gz -> docformatter-1.3.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/docformatter-1.3/PKG-INFO new/docformatter-1.3.1/PKG-INFO --- old/docformatter-1.3/PKG-INFO 2019-07-17 15:32:48.000000000 +0200 +++ new/docformatter-1.3.1/PKG-INFO 2019-11-10 17:22:49.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: docformatter -Version: 1.3 +Version: 1.3.1 Summary: Formats docstrings to follow PEP 257. Home-page: https://github.com/myint/docformatter Author: Steven Myint diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/docformatter-1.3/docformatter.egg-info/PKG-INFO new/docformatter-1.3.1/docformatter.egg-info/PKG-INFO --- old/docformatter-1.3/docformatter.egg-info/PKG-INFO 2019-07-17 15:32:47.000000000 +0200 +++ new/docformatter-1.3.1/docformatter.egg-info/PKG-INFO 2019-11-10 17:22:49.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: docformatter -Version: 1.3 +Version: 1.3.1 Summary: Formats docstrings to follow PEP 257. Home-page: https://github.com/myint/docformatter Author: Steven Myint diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/docformatter-1.3/docformatter.py new/docformatter-1.3.1/docformatter.py --- old/docformatter-1.3/docformatter.py 2019-07-17 15:23:41.000000000 +0200 +++ new/docformatter-1.3.1/docformatter.py 2019-11-10 17:20:52.000000000 +0100 @@ -42,7 +42,7 @@ import untokenize -__version__ = '1.3' +__version__ = '1.3.1' try: @@ -258,7 +258,11 @@ if re.search(r'\s' + token + r'\s', line): return True - return re.match(r'[^\w"\'`\(\)]', line.strip()) + stripped_line = line.strip() + is_beginning_of_sentence = re.match(r'[^\w"\'`\(\)]', stripped_line) + is_pydoc_ref = re.match(r'^:\w+:', stripped_line) + + return is_beginning_of_sentence and not is_pydoc_ref def split_summary_and_description(contents): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/docformatter-1.3/test_docformatter.py new/docformatter-1.3.1/test_docformatter.py --- old/docformatter-1.3/test_docformatter.py 2019-07-17 15:10:43.000000000 +0200 +++ new/docformatter-1.3.1/test_docformatter.py 2019-11-10 17:18:08.000000000 +0100 @@ -1168,6 +1168,10 @@ self.assertFalse(docformatter.is_probably_beginning_of_sentence( '(this just continues an existing sentence).')) + def test_is_probably_beginning_of_sentence_pydoc_ref(self): + self.assertFalse(docformatter.is_probably_beginning_of_sentence( + ':see:MyClass This is not the start of a sentence.')) + def test_format_docstring_make_summary_multi_line(self): self.assertEqual(('''\ """