14
0
Files
python-resolvelib/python-resolvelib.spec
Tomáš Chvátal dbbbc231a3 Accepting request 794545 from home:mcalabkova:branches:devel:languages:python
- Update to 0.3.0
  * Provide both the requirements and their parents as exceptiondata for the
    ``ResolutionImpossible`` exception, via a ``causes`` attribute that replaces
    the previous ``requirements`` attribute.
  * Make resolver backtrack when none of the candidates requested for a package
    are able to resolve due to them requesting unworkable requirements, or a
    package has no candidates at all. Previously the resolver would give up on the
    spot.
  * Ensure the result returned by the resolver only contains candidates that are
    actually needed. This is done by tracing the graph after resolution completes,
    snipping nodes that don’t have a route to the root.

OBS-URL: https://build.opensuse.org/request/show/794545
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-resolvelib?expand=0&rev=5
2020-04-16 10:26:01 +00:00

57 lines
1.7 KiB
RPMSpec

#
# spec file for package python-resolvelib
#
# Copyright (c) 2020 SUSE LLC
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-resolvelib
Version: 0.3.0
Release: 0
Summary: Module to resolve abstract dependencies into concrete ones
License: ISC
Group: Development/Languages/Python
URL: https://github.com/sarugaku/resolvelib
Source: https://github.com/sarugaku/resolvelib/archive/%{version}.tar.gz#/resolvelib-%{version}.tar.gz
BuildRequires: %{python_module commentjson}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
A Python module to resolve abstract dependencies into concrete ones.
%prep
%setup -q -n resolvelib-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%{python_sitelib}/*
%changelog