2021-09-10 21:27:51 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-backports.entry_points_selectable
|
|
|
|
#
|
2023-04-21 16:53:20 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2021-09-10 21:27:51 +02: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-04-21 16:53:20 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2021-09-10 21:27:51 +02:00
|
|
|
Name: python-backports.entry_points_selectable
|
2023-12-02 09:57:54 +01:00
|
|
|
Version: 1.3.0
|
2021-09-10 21:27:51 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Compatibility shim providing selectable entry points for older implementations
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/jaraco/backports.entry_points_selectable
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/b/backports.entry_points_selectable/backports.entry_points_selectable-%{version}.tar.gz
|
2023-05-08 13:08:21 +02:00
|
|
|
BuildRequires: %{python_module pip}
|
2021-09-29 23:17:27 +02:00
|
|
|
BuildRequires: %{python_module pytest >= 4.6}
|
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
|
|
|
BuildRequires: %{python_module toml}
|
2023-05-08 13:08:21 +02:00
|
|
|
BuildRequires: %{python_module wheel}
|
2021-09-10 21:27:51 +02:00
|
|
|
BuildRequires: fdupes
|
2021-09-29 23:17:27 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2021-09-10 21:27:51 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Compatibility shim providing selectable entry points for older implementations
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1 -n backports.entry_points_selectable-%{version}
|
|
|
|
|
|
|
|
%build
|
2023-05-08 13:08:21 +02:00
|
|
|
%pyproject_wheel
|
2021-09-10 21:27:51 +02:00
|
|
|
|
|
|
|
%install
|
2023-05-08 13:08:21 +02:00
|
|
|
%pyproject_install
|
2021-09-10 21:27:51 +02:00
|
|
|
|
2021-09-29 23:17:27 +02:00
|
|
|
# PEP-420 allows implicit packages without an additional __init__.py for python >= 3.3,
|
|
|
|
# gh#jaraco/backports.entry_points_selectable#5
|
|
|
|
%{python_expand # remove explicit __init__.py files (unless we need it for the python2 tests)
|
|
|
|
if [ "${python_flavor}" != "python2" ]; then
|
|
|
|
rm -v %{buildroot}%{$python_sitelib}/backports/__init__.py* \
|
|
|
|
%{buildroot}%{$python_sitelib}/backports/__pycache__/__init__.*
|
|
|
|
%fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
fi
|
2021-09-10 21:27:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
%check
|
2021-09-29 23:17:27 +02:00
|
|
|
%pytest --pyargs backports
|
2021-09-10 21:27:51 +02:00
|
|
|
|
|
|
|
%files %{python_files}
|
2023-12-02 09:57:54 +01:00
|
|
|
%doc README.rst
|
2021-09-10 21:27:51 +02:00
|
|
|
%license LICENSE
|
|
|
|
%dir %{python_sitelib}/backports
|
2021-09-29 23:17:27 +02:00
|
|
|
%{python_sitelib}/backports/entry_points_selectable.py*
|
|
|
|
%pycache_only %dir %{python_sitelib}/backports/__pycache__
|
2021-09-10 21:27:51 +02:00
|
|
|
%pycache_only %{python_sitelib}/backports/__pycache__/*
|
2021-09-29 23:17:27 +02:00
|
|
|
%{python_sitelib}/backports.entry_points_selectable-%{version}*-info
|
2021-09-10 21:27:51 +02:00
|
|
|
|
|
|
|
%changelog
|