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