[packages/python3-resolvelib] - new (needed by ansible-core)

adamg adamg at pld-linux.org
Tue Nov 17 03:05:28 CET 2026


commit 8085f678c7d326e6e6d77f4ee878e86dedd86c46
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date:   Tue Nov 17 03:05:16 2026 +0100

    - new (needed by ansible-core)

 python3-resolvelib.spec | 69 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)
---
diff --git a/python3-resolvelib.spec b/python3-resolvelib.spec
new file mode 100644
index 0000000..221756a
--- /dev/null
+++ b/python3-resolvelib.spec
@@ -0,0 +1,69 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+%define		module	resolvelib
+Summary:	Resolve abstract dependencies into concrete ones
+Summary(pl.UTF-8):	Rozwiązywanie abstrakcyjnych zależności w konkretne
+Name:		python3-%{module}
+Version:	1.2.1
+Release:	1
+License:	ISC
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/resolvelib/
+Source0:	https://files.pythonhosted.org/packages/source/r/resolvelib/%{module}-%{version}.tar.gz
+# Source0-md5:	6ae59a4cbb332ddc695ea608e3c01e34
+URL:		https://github.com/sarugaku/resolvelib
+BuildRequires:	python3-build
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.9
+BuildRequires:	python3-setuptools >= 1:62
+BuildRequires:	python3-wheel
+%if %{with tests}
+BuildRequires:	python3-packaging
+BuildRequires:	python3-pytest
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+Requires:	python3-modules >= 1:3.9
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Resolvelib at the highest level provides a Resolver class that
+includes dependency resolution logic. You give it some things, and a
+little information on how it should interact with them, and it will
+spit out a resolution result. It is used by pip and ansible-galaxy.
+
+%description -l pl.UTF-8
+Resolvelib na najwyższym poziomie udostępnia klasę Resolver,
+zawierającą logikę rozwiązywania zależności. Jest używany przez pip i
+ansible-galaxy.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd)/src \
+# test_pin_conflict_with_self needs "reporter" fixture from tests/conftest.py, not included in sdist
+%{__python3} -m pytest tests \
+	--deselect tests/test_resolvers.py::test_pin_conflict_with_self
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.rst LICENSE README.rst
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-resolvelib.git/commitdiff/8085f678c7d326e6e6d77f4ee878e86dedd86c46



More information about the pld-cvs-commit mailing list