forked from pool/python-entrypoints
Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-entrypoints?expand=0&rev=8
This commit is contained in:
parent
42239f1562
commit
8666c4820d
@ -24,10 +24,11 @@ Release: 0
|
||||
Summary: Discover and load entry points from installed packages
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/takluyver/entrypoints
|
||||
URL: https://github.com/takluyver/entrypoints
|
||||
Source: https://files.pythonhosted.org/packages/source/e/entrypoints/entrypoints-%{version}.tar.gz
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: python-configparser
|
||||
@ -35,8 +36,6 @@ BuildRequires: python-configparser
|
||||
%ifpython2
|
||||
Requires: python-configparser >= 3.5
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@ -62,15 +61,14 @@ plugins, or multiple groups if it has different kinds of plugins.
|
||||
%if %{with test}
|
||||
%check
|
||||
pushd tests
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||
$python test_entrypoints.py
|
||||
}
|
||||
popd
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE
|
||||
%license LICENSE
|
||||
%{python_sitelib}/entrypoints.py*
|
||||
%pycache_only %{python_sitelib}/__pycache__/entrypoints*.py*
|
||||
%{python_sitelib}/entrypoints-%{version}-py*.egg-info
|
||||
|
Loading…
x
Reference in New Issue
Block a user