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:
parent
ec5e1a8c7c
commit
df450c47af
@ -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
|
Wed May 9 23:48:17 UTC 2018 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
@ -32,10 +32,14 @@ BuildRequires: python-rpm-macros
|
|||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module six}
|
||||||
BuildRequires: %{python_module snowballstemmer}
|
BuildRequires: %{python_module snowballstemmer}
|
||||||
|
BuildRequires: python-configparser
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
Requires: python-six
|
Requires: python-six
|
||||||
Requires: python-snowballstemmer
|
Requires: python-snowballstemmer
|
||||||
|
%ifpython2
|
||||||
|
Requires: python-configparser
|
||||||
|
%endif
|
||||||
Provides: python-pep257 = %{version}
|
Provides: python-pep257 = %{version}
|
||||||
Obsoletes: python-pep257 < %{version}
|
Obsoletes: python-pep257 < %{version}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -63,6 +67,15 @@ conventions.
|
|||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%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}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
|
Loading…
x
Reference in New Issue
Block a user