[packages/python3-pybreaker] - new
qboosh
qboosh at pld-linux.org
Sun Feb 22 10:25:40 CET 2026
commit 4624bc362c2ce3d8e39efd61433dcebd9ef159ae
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Feb 22 10:25:36 2026 +0100
- new
python3-pybreaker.spec | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 75 insertions(+)
---
diff --git a/python3-pybreaker.spec b/python3-pybreaker.spec
new file mode 100644
index 0000000..13a1dd7
--- /dev/null
+++ b/python3-pybreaker.spec
@@ -0,0 +1,75 @@
+#
+# Conditional build:
+%bcond_with tests # unit tests (not in sdist)
+
+Summary: Python implementation of the Circuit Breaker pattern
+Summary(pl.UTF-8): Pythonowa implementacja wzorca bezpiecznika
+Name: python3-pybreaker
+Version: 1.4.1
+Release: 1
+License: BSD
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/pybreaker/
+Source0: https://files.pythonhosted.org/packages/source/p/pybreaker/pybreaker-%{version}.tar.gz
+# Source0-md5: c40b62d5cc6a317069ddcf8100bb86ea
+URL: https://pypi.org/project/pybreaker/
+BuildRequires: python3-build
+BuildRequires: python3-flit_core >= 3.9
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.9
+%if %{with tests}
+BuildRequires: python3-fakeredis
+BuildRequires: python3-pytest
+BuildRequires: python3-redis
+BuildRequires: python3-tornado
+%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
+PyBreaker is a Python implementation of the Circuit Breaker pattern,
+described in Michael T. Nygard's book "Release It!".
+
+In Nygard's words, "circuit breakers exists to allow one subsystem to
+fail without destroying the entire system. This is done by wrapping
+dangerous operations (typically integration points) with a component
+that can circumvent calls when the system is not healthy".
+
+%description -l pl.UTF-8
+PyBreaker to pythonowa implementacja wzorca bezpiecznika (Circuit
+Breaker), opisanego w książce "Release It!" (Wydaj to!) Michaela T.
+Nygarda.
+
+Jak pisze Nygard: "bezpieczniki istnieją, aby pozwolić na awarię
+jednego podsystemu bez zniszczenia całego systemu. Osiąga się to
+obudowując niebezpieczne operacje (zwykle punkty integracji) w
+komponent, który potrafi obejść wywołania, gdy system nie działa
+prawidłowo".
+
+%prep
+%setup -q -n pybreaker-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%{py3_sitescriptdir}/pybreaker
+%{py3_sitescriptdir}/pybreaker-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-pybreaker.git/commitdiff/4624bc362c2ce3d8e39efd61433dcebd9ef159ae
More information about the pld-cvs-commit
mailing list