From df450c47af63e6769507a79f0dd0f8eb633d11e657f6d2ff677dae4e9b41faf1 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 7 Jun 2018 16:10:05 +0000 Subject: [PATCH] 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 --- python-pydocstyle.changes | 6 ++++++ python-pydocstyle.spec | 13 +++++++++++++ 2 files changed, 19 insertions(+) diff --git a/python-pydocstyle.changes b/python-pydocstyle.changes index 3954a0f..f534176 100644 --- a/python-pydocstyle.changes +++ b/python-pydocstyle.changes @@ -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 diff --git a/python-pydocstyle.spec b/python-pydocstyle.spec index a0c3ea1..2644d92 100644 --- a/python-pydocstyle.spec +++ b/python-pydocstyle.spec @@ -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