2017-03-31 02:09:34 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-entrypoints
|
|
|
|
#
|
2022-10-06 15:11:12 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2017-03-31 02:09:34 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-04 13:25:31 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-03-31 02:09:34 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2020-03-16 10:30:40 +00:00
|
|
|
%bcond_without python2
|
2017-03-31 02:09:34 +00:00
|
|
|
Name: python-entrypoints
|
2022-10-06 15:11:12 +00:00
|
|
|
Version: 0.4
|
2017-03-31 02:09:34 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Discover and load entry points from installed packages
|
|
|
|
License: MIT
|
2018-12-04 17:12:45 +00:00
|
|
|
URL: https://github.com/takluyver/entrypoints
|
2017-11-03 14:36:29 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/e/entrypoints/entrypoints-%{version}.tar.gz
|
2022-10-06 15:11:12 +00:00
|
|
|
BuildRequires: %{python_module flit-core}
|
|
|
|
BuildRequires: %{python_module pip}
|
2020-03-16 10:30:40 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2022-10-06 15:11:12 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-11-10 16:23:25 +00:00
|
|
|
BuildRequires: fdupes
|
2017-11-03 14:36:29 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-12-04 17:12:45 +00:00
|
|
|
BuildArch: noarch
|
2020-03-16 10:30:40 +00:00
|
|
|
%if %{with python2}
|
|
|
|
BuildRequires: python-configparser >= 3.5
|
2017-03-31 02:09:34 +00:00
|
|
|
%endif
|
2017-11-10 16:23:25 +00:00
|
|
|
%ifpython2
|
|
|
|
Requires: python-configparser >= 3.5
|
|
|
|
%endif
|
2017-03-31 02:09:34 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Entry points are a way for Python packages to advertise objects with
|
|
|
|
some common interface. The most common examples are console_scripts
|
|
|
|
entry points, which define shell commands by identifying a Python
|
|
|
|
function to run.
|
|
|
|
|
|
|
|
Groups of entry points, such as console_scripts, point to objects with
|
|
|
|
similar interfaces. An application might use a group to find its
|
|
|
|
plugins, or multiple groups if it has different kinds of plugins.
|
|
|
|
|
|
|
|
%prep
|
2017-11-03 14:36:29 +00:00
|
|
|
%setup -q -n entrypoints-%{version}
|
2017-03-31 02:09:34 +00:00
|
|
|
|
|
|
|
%build
|
2022-10-06 15:11:12 +00:00
|
|
|
%pyproject_wheel
|
2017-03-31 02:09:34 +00:00
|
|
|
|
|
|
|
%install
|
2022-10-06 15:11:12 +00:00
|
|
|
%pyproject_install
|
2017-11-10 16:23:25 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2017-03-31 02:09:34 +00:00
|
|
|
|
|
|
|
%check
|
2020-03-16 10:30:40 +00:00
|
|
|
%pytest
|
2017-03-31 02:09:34 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
2018-12-04 17:12:45 +00:00
|
|
|
%license LICENSE
|
2017-11-10 16:23:25 +00:00
|
|
|
%{python_sitelib}/entrypoints.py*
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__/entrypoints*.py*
|
2022-10-06 15:11:12 +00:00
|
|
|
%{python_sitelib}/entrypoints-%{version}.dist-info
|
2017-03-31 02:09:34 +00:00
|
|
|
|
|
|
|
%changelog
|