summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 05:04:57 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 05:04:57 +0000
commitaf0c2e2ea178e82321b11fffa10f7b99e794bd59 (patch)
tree165abadf77e6ca76b7e7dfda2be09b7cf86d1d80
parent5930c27c3d6ad14dc11ba9d8e089b53c62ed657e (diff)
automatic import of python-aiobreakeropeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-aiobreaker.spec110
-rw-r--r--sources1
3 files changed, 112 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..2577cc7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/aiobreaker-1.2.0.tar.gz
diff --git a/python-aiobreaker.spec b/python-aiobreaker.spec
new file mode 100644
index 0000000..f6f6418
--- /dev/null
+++ b/python-aiobreaker.spec
@@ -0,0 +1,110 @@
+%global _empty_manifest_terminate_build 0
+Name: python-aiobreaker
+Version: 1.2.0
+Release: 1
+Summary: Python implementation of the Circuit Breaker pattern.
+License: BSD
+URL: https://github.com/arlyon/aiobreaker
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7f/eb/749ef48d3227fd62d500ff01fcd451f10111e00d822c200eb51782ba076a/aiobreaker-1.2.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-sphinx
+Requires: python3-sphinx-rtd-theme
+Requires: python3-sphinx-autobuild
+Requires: python3-sphinx-autodoc-typehints
+Requires: python3-redis
+Requires: python3-fakeredis
+Requires: python3-pytest
+Requires: python3-pytest-asyncio
+Requires: python3-mypy
+Requires: python3-pylint
+Requires: python3-safety
+Requires: python3-bandit
+Requires: python3-codecov
+Requires: python3-pytest-cov
+
+%description
+aiobreaker is a Python implementation of the Circuit Breaker pattern,
+described in Michael T. Nygard's book `Release It!`_.
+Circuit breakers exist 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.
+This project is a fork of pybreaker_ by Daniel Fernandes Martins that
+replaces tornado with native asyncio, originally so I could practice
+packaging and learn about that shiny new ``typing`` package.
+
+%package -n python3-aiobreaker
+Summary: Python implementation of the Circuit Breaker pattern.
+Provides: python-aiobreaker
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-aiobreaker
+aiobreaker is a Python implementation of the Circuit Breaker pattern,
+described in Michael T. Nygard's book `Release It!`_.
+Circuit breakers exist 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.
+This project is a fork of pybreaker_ by Daniel Fernandes Martins that
+replaces tornado with native asyncio, originally so I could practice
+packaging and learn about that shiny new ``typing`` package.
+
+%package help
+Summary: Development documents and examples for aiobreaker
+Provides: python3-aiobreaker-doc
+%description help
+aiobreaker is a Python implementation of the Circuit Breaker pattern,
+described in Michael T. Nygard's book `Release It!`_.
+Circuit breakers exist 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.
+This project is a fork of pybreaker_ by Daniel Fernandes Martins that
+replaces tornado with native asyncio, originally so I could practice
+packaging and learn about that shiny new ``typing`` package.
+
+%prep
+%autosetup -n aiobreaker-1.2.0
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-aiobreaker -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..7ae5dfe
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+fd203c5d8272cfab8546861ea940a1ef aiobreaker-1.2.0.tar.gz