Accepting request 614992 from home:TheBlackCat:branches:devel:languages:python

- Add missing dependency.
- Attempt to import as a basic test.

OBS-URL: https://build.opensuse.org/request/show/614992
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydocstyle?expand=0&rev=3
This commit is contained in:
Todd R 2018-06-07 16:10:05 +00:00 committed by Git OBS Bridge
parent ec5e1a8c7c
commit df450c47af
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jun 7 16:09:18 UTC 2018 - toddrme2178@gmail.com
- Add missing dependency.
- Attempt to import as a basic test.
-------------------------------------------------------------------
Wed May 9 23:48:17 UTC 2018 - toddrme2178@gmail.com

View File

@ -32,10 +32,14 @@ BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module six}
BuildRequires: %{python_module snowballstemmer}
BuildRequires: python-configparser
%endif
BuildRequires: fdupes
Requires: python-six
Requires: python-snowballstemmer
%ifpython2
Requires: python-configparser
%endif
Provides: python-pep257 = %{version}
Obsoletes: python-pep257 < %{version}
BuildArch: noarch
@ -63,6 +67,15 @@ conventions.
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
mkdir empty
pushd empty
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
$python -c "import pydocstyle"
$python -c "from pydocstyle import *"
}
popd
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst