1
0

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
This commit is contained in:
Todd R 2018-05-09 23:49:05 +00:00 committed by Git OBS Bridge
commit c33bf66032
5 changed files with 116 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
pydocstyle-2.1.1.tar.gz Normal file
View File

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

16
python-pydocstyle.changes Normal file
View File

@ -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

73
python-pydocstyle.spec Normal file
View File

@ -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