From 3bcceb882f0f63edd7a8686b485618033e32a2929875f1e4352c804fdf5bdb3e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 26 Mar 2022 18:59:42 +0000 Subject: [PATCH] - update 6.1.1: * Split ``--source`` by lines instead of by characters (#536). * Enable full toml configuration and pyproject.toml (#534). * Support for Python 3.5 has been dropped (#510). * Add flag to disable `# noqa` comment processing in API (#485). * Methods, Functions and Nested functions that have a docstring now throw D418 (#511). * Methods decorated with @overload no longer reported as D102 (#511). * Functions and nested functions decorated with @overload no longer reported as D103 (#511). * Treat "package" as an imperative verb for D401 (#356). * Fix the parsing of decorated one line functions (#499). * Methods, Functions and Nested functions that have a docstring now throw D418 (#511). * Methods decorated with @overload no longer reported as D102. * Functions and nested functions decorated with @overload no longer reported as D103. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydocstyle?expand=0&rev=21 --- integration-tests-invocation.patch | 19 +++++-------------- pydocstyle-5.1.1.tar.gz | 3 --- pydocstyle-6.1.1.tar.gz | 3 +++ python-pydocstyle.changes | 17 +++++++++++++++++ python-pydocstyle.spec | 6 +++--- 5 files changed, 28 insertions(+), 20 deletions(-) delete mode 100644 pydocstyle-5.1.1.tar.gz create mode 100644 pydocstyle-6.1.1.tar.gz diff --git a/integration-tests-invocation.patch b/integration-tests-invocation.patch index 2856bc9..a529d75 100644 --- a/integration-tests-invocation.patch +++ b/integration-tests-invocation.patch @@ -10,11 +10,11 @@ Closes https://github.com/PyCQA/pydocstyle/issues/177 src/tests/test_integration.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) -diff --git a/src/tests/test_integration.py b/src/tests/test_integration.py -index d4ee72b..1f9507f 100644 ---- a/src/tests/test_integration.py -+++ b/src/tests/test_integration.py -@@ -81,9 +81,10 @@ def invoke(self, args="", target=None): +Index: pydocstyle-6.1.1/src/tests/test_integration.py +=================================================================== +--- pydocstyle-6.1.1.orig/src/tests/test_integration.py ++++ pydocstyle-6.1.1/src/tests/test_integration.py +@@ -99,9 +99,10 @@ class SandboxEnv: run_target = self.tempdir if target is None else \ os.path.join(self.tempdir, target) @@ -28,12 +28,3 @@ index d4ee72b..1f9507f 100644 p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) -@@ -201,7 +202,7 @@ def test_run_as_named_module(): - """ - # Add --match='' so that no files are actually checked (to make sure that - # the return code is 0 and to reduce execution time). -- cmd = shlex.split("python -m pydocstyle --match=''") -+ cmd = shlex.split("\"{}\" -m pydocstyle --match=''".format(sys.executable)) - p = subprocess.Popen(cmd, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE) diff --git a/pydocstyle-5.1.1.tar.gz b/pydocstyle-5.1.1.tar.gz deleted file mode 100644 index 67a01ed..0000000 --- a/pydocstyle-5.1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:904bce3084dc4cb2f3802d1795f3fa8aa1e01e83823e117e44c6a93c4aa60a17 -size 70759 diff --git a/pydocstyle-6.1.1.tar.gz b/pydocstyle-6.1.1.tar.gz new file mode 100644 index 0000000..fa06aa4 --- /dev/null +++ b/pydocstyle-6.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ec238b731737da7c9ce3f7c135ee35b992b76a8bfa896007b90bf69a112927c +size 73982 diff --git a/python-pydocstyle.changes b/python-pydocstyle.changes index 8501cc4..77d8454 100644 --- a/python-pydocstyle.changes +++ b/python-pydocstyle.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Sat Mar 26 18:56:53 UTC 2022 - Dirk Müller + +- update 6.1.1: + * Split ``--source`` by lines instead of by characters (#536). + * Enable full toml configuration and pyproject.toml (#534). + * Support for Python 3.5 has been dropped (#510). + * Add flag to disable `# noqa` comment processing in API (#485). + * Methods, Functions and Nested functions that have a docstring now throw D418 (#511). + * Methods decorated with @overload no longer reported as D102 (#511). + * Functions and nested functions decorated with @overload no longer reported as D103 (#511). + * Treat "package" as an imperative verb for D401 (#356). + * Fix the parsing of decorated one line functions (#499). + * Methods, Functions and Nested functions that have a docstring now throw D418 (#511). + * Methods decorated with @overload no longer reported as D102. + * Functions and nested functions decorated with @overload no longer reported as D103. + ------------------------------------------------------------------- Sat Oct 10 18:42:12 UTC 2020 - Arun Persaud diff --git a/python-pydocstyle.spec b/python-pydocstyle.spec index a591839..59f68f0 100644 --- a/python-pydocstyle.spec +++ b/python-pydocstyle.spec @@ -1,7 +1,7 @@ # # spec file for package python-pydocstyle # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-pydocstyle -Version: 5.1.1 +Version: 6.1.1 Release: 0 Summary: Python docstring style checker License: MIT @@ -43,7 +43,7 @@ BuildRequires: python-rpm-macros Requires: python-six > 1.10.0 Requires: python-snowballstemmer Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives Provides: python-pep257 = %{version} Obsoletes: python-pep257 < %{version} BuildArch: noarch