From c33bf66032d7d45e022b840af9a57ab9cc0ca272969374ec909c3997c8fc45cd Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 9 May 2018 23:49:05 +0000 Subject: [PATCH] Accepting request 605973 from devel:languages:python:misc Docstring format checker for python OBS-URL: https://build.opensuse.org/request/show/605973 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydocstyle?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + pydocstyle-2.1.1.tar.gz | 3 ++ python-pydocstyle.changes | 16 +++++++++ python-pydocstyle.spec | 73 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 116 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pydocstyle-2.1.1.tar.gz create mode 100644 python-pydocstyle.changes create mode 100644 python-pydocstyle.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pydocstyle-2.1.1.tar.gz b/pydocstyle-2.1.1.tar.gz new file mode 100644 index 0000000..ff37c63 --- /dev/null +++ b/pydocstyle-2.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4d5bcde961107873bae621f3d580c3e35a426d3687ffc6f8fb356f6628da5a97 +size 28542 diff --git a/python-pydocstyle.changes b/python-pydocstyle.changes new file mode 100644 index 0000000..3954a0f --- /dev/null +++ b/python-pydocstyle.changes @@ -0,0 +1,16 @@ +------------------------------------------------------------------- +Wed May 9 23:48:17 UTC 2018 - toddrme2178@gmail.com + +- Use license tag + +------------------------------------------------------------------- +Wed Oct 18 10:47:05 UTC 2017 - alarrosa@suse.com + +- Update to version 2.1.1 +- singlespec version + +------------------------------------------------------------------- +Thu Jul 7 15:50:50 UTC 2016 - toddrme2178@gmail.com + +- Initial version + diff --git a/python-pydocstyle.spec b/python-pydocstyle.spec new file mode 100644 index 0000000..a0c3ea1 --- /dev/null +++ b/python-pydocstyle.spec @@ -0,0 +1,73 @@ +# +# spec file for package python-pydocstyle +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test +Name: python-pydocstyle +Version: 2.1.1 +Release: 0 +Summary: Python docstring style checker +License: MIT +Group: Development/Languages/Python +Url: https://github.com/PyCQA/pydocstyle/ +Source: https://files.pythonhosted.org/packages/source/p/pydocstyle/pydocstyle-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +%if %{with test} +BuildRequires: %{python_module six} +BuildRequires: %{python_module snowballstemmer} +%endif +BuildRequires: fdupes +Requires: python-six +Requires: python-snowballstemmer +Provides: python-pep257 = %{version} +Obsoletes: python-pep257 < %{version} +BuildArch: noarch + +%python_subpackages + +%description +pydocstyle is a static analysis tool for checking compliance with +Python docstring conventions. + +pydocstyle supports most of PEP 257 out of the box, but it should not +be considered a reference implementation. + +The framework for checking docstring style is flexible, and custom +checks can be easily added, for example to cover NumPy docstring +conventions. + +%prep +%setup -q -n pydocstyle-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%defattr(-,root,root,-) +%doc README.rst +%license LICENSE-MIT +%python3_only %{_bindir}/pydocstyle +%{python_sitelib}/* + +%changelog