- Fix build without python2
- Really execute tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-entrypoints?expand=0&rev=12
This commit is contained in:
parent
122a334bbd
commit
6ae120b9db
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 16 10:30:18 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Fix build without python2
|
||||||
|
- Really execute tests
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 4 17:49:04 UTC 2019 - Hans-Peter Jansen <hpj@urpla.net>
|
Mon Feb 4 17:49:04 UTC 2019 - Hans-Peter Jansen <hpj@urpla.net>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-entrypoints
|
# spec file for package python-entrypoints
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,22 +17,21 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%bcond_without test
|
%bcond_without python2
|
||||||
Name: python-entrypoints
|
Name: python-entrypoints
|
||||||
Version: 0.3
|
Version: 0.3
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Discover and load entry points from installed packages
|
Summary: Discover and load entry points from installed packages
|
||||||
License: MIT
|
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
|
Source: https://files.pythonhosted.org/packages/source/e/entrypoints/entrypoints-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: %{python_module devel}
|
%if %{with python2}
|
||||||
%if %{with test}
|
BuildRequires: python-configparser >= 3.5
|
||||||
BuildRequires: %{python_module pytest}
|
|
||||||
BuildRequires: python-configparser
|
|
||||||
%endif
|
%endif
|
||||||
%ifpython2
|
%ifpython2
|
||||||
Requires: python-configparser >= 3.5
|
Requires: python-configparser >= 3.5
|
||||||
@ -59,14 +58,8 @@ plugins, or multiple groups if it has different kinds of plugins.
|
|||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%if %{with test}
|
|
||||||
%check
|
%check
|
||||||
pushd tests
|
%pytest
|
||||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
|
||||||
$python test_entrypoints.py
|
|
||||||
}
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user