2022-08-16 06:47:43 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-unearth
|
|
|
|
#
|
2024-01-21 10:46:03 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2022-08-16 06:47:43 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-06-15 20:34:17 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2022-08-16 06:47:43 +00:00
|
|
|
Name: python-unearth
|
2024-09-27 05:06:53 +00:00
|
|
|
Version: 0.17.2
|
2022-08-16 06:47:43 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A utility to fetch and download python packages
|
|
|
|
License: MIT
|
|
|
|
URL: https://unearth.readthedocs.io/
|
2023-06-15 20:35:13 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/u/unearth/unearth-%{version}.tar.gz
|
2024-09-27 05:06:53 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
2022-08-16 06:47:43 +00:00
|
|
|
BuildRequires: %{python_module packaging >= 20}
|
2023-10-23 11:13:22 +00:00
|
|
|
BuildRequires: %{python_module pdm-backend}
|
2022-08-16 06:47:43 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2024-07-04 13:18:32 +00:00
|
|
|
Requires: python-httpx
|
2022-08-16 06:47:43 +00:00
|
|
|
Requires: python-packaging >= 20
|
|
|
|
Requires(post): update-alternatives
|
2024-07-04 13:18:32 +00:00
|
|
|
Requires(postun): update-alternatives
|
2022-08-16 06:47:43 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
# SECTION test
|
|
|
|
BuildRequires: %{python_module Flask >= 2.1.2}
|
2024-07-04 13:18:32 +00:00
|
|
|
BuildRequires: %{python_module httpx}
|
2022-08-16 06:47:43 +00:00
|
|
|
BuildRequires: %{python_module pytest-httpserver >= 1.0.4}
|
2024-07-04 13:18:32 +00:00
|
|
|
BuildRequires: %{python_module pytest-mock}
|
2022-08-16 06:47:43 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module requests-wsgi-adapter >= 0.4.1}
|
|
|
|
BuildRequires: %{python_module trustme >= 0.9.0}
|
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
This project exists as the last piece to complete the puzzle of a package manager. The other pieces are:
|
|
|
|
|
|
|
|
- python-resolvelib - Resolves concrete dependencies from a set of (abstract) requirements.
|
|
|
|
- python-unearth - Finds and downloads the best match(es) for a given requirement.
|
|
|
|
- python-build - Builds wheels from the source code.
|
|
|
|
- python-installer - Installs packages from wheels.
|
|
|
|
|
|
|
|
They provide all the low-level functionalities that are needed to resolve and install packages.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n unearth-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
%install
|
|
|
|
%pyproject_install
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/unearth
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%pytest
|
|
|
|
|
|
|
|
%post
|
|
|
|
%python_install_alternative unearth
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative unearth
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
|
|
|
%python_alternative %{_bindir}/unearth
|
|
|
|
%{python_sitelib}/unearth
|
2024-09-27 05:06:53 +00:00
|
|
|
%{python_sitelib}/unearth-%{version}.dist-info
|
2022-08-16 06:47:43 +00:00
|
|
|
|
|
|
|
%changelog
|