summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-sentry-dramatiq.spec198
-rw-r--r--sources1
3 files changed, 200 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..e7aa102 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/sentry_dramatiq-0.3.2.tar.gz
diff --git a/python-sentry-dramatiq.spec b/python-sentry-dramatiq.spec
new file mode 100644
index 0000000..8253ce9
--- /dev/null
+++ b/python-sentry-dramatiq.spec
@@ -0,0 +1,198 @@
+%global _empty_manifest_terminate_build 0
+Name: python-sentry-dramatiq
+Version: 0.3.2
+Release: 1
+Summary: Dramatiq task processor integration for the Sentry SDK
+License: BSD
+URL: https://github.com/jmagnusson/sentry-dramatiq
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ed/04/714004ea77e430cfb921e4e58c542d0dd3305c322748a9d9aaeca5d071da/sentry_dramatiq-0.3.2.tar.gz
+BuildArch: noarch
+
+Requires: python3-dramatiq
+Requires: python3-sentry-sdk
+Requires: python3-coverage
+Requires: python3-flake8
+Requires: python3-isort
+Requires: python3-pytest
+
+%description
+# sentry-dramatiq
+
+[![Travis CI build status (Linux)](https://travis-ci.org/jmagnusson/sentry-dramatiq.svg?branch=master)](https://travis-ci.org/jmagnusson/sentry-dramatiq)
+[![PyPI version](https://img.shields.io/pypi/v/sentry-dramatiq.svg)](https://pypi.python.org/pypi/sentry-dramatiq/)
+[![License](https://img.shields.io/pypi/l/sentry-dramatiq.svg)](https://pypi.python.org/pypi/sentry-dramatiq/)
+[![Available as wheel](https://img.shields.io/pypi/wheel/sentry-dramatiq.svg)](https://pypi.python.org/pypi/sentry-dramatiq/)
+[![Supported Python versions](https://img.shields.io/pypi/pyversions/sentry-dramatiq.svg)](https://pypi.python.org/pypi/sentry-dramatiq/)
+[![PyPI status (alpha/beta/stable)](https://img.shields.io/pypi/status/sentry-dramatiq.svg)](https://pypi.python.org/pypi/sentry-dramatiq/)
+[![Coverage Status](https://coveralls.io/repos/github/jmagnusson/sentry-dramatiq/badge.svg?branch=master)](https://coveralls.io/github/jmagnusson/sentry-dramatiq?branch=master)
+
+[Dramatiq task processor](https://dramatiq.io/) integration for the [Sentry SDK](https://docs.sentry.io/error-reporting/quickstart/?platform=python).
+
+## Installation
+
+```
+pip install sentry-dramatiq
+```
+
+## Setup
+
+```python
+import sentry_sdk
+import sentry_dramatiq
+
+sentry_sdk.init(
+ '__DSN__',
+ integrations=[sentry_dramatiq.DramatiqIntegration()],
+)
+```
+
+## Features
+
+- Tags Sentry events with the message ID as `dramatiq_message_id`
+- Adds all info about a Dramatiq message to a separate context (shows up as its own section in the Sentry UI)
+
+## Known limitations
+
+- `sentry_sdk.init()` has to be called before broker is initialized as the integration monkey patches `Broker.__init__`
+
+
+
+
+%package -n python3-sentry-dramatiq
+Summary: Dramatiq task processor integration for the Sentry SDK
+Provides: python-sentry-dramatiq
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-sentry-dramatiq
+# sentry-dramatiq
+
+[![Travis CI build status (Linux)](https://travis-ci.org/jmagnusson/sentry-dramatiq.svg?branch=master)](https://travis-ci.org/jmagnusson/sentry-dramatiq)
+[![PyPI version](https://img.shields.io/pypi/v/sentry-dramatiq.svg)](https://pypi.python.org/pypi/sentry-dramatiq/)
+[![License](https://img.shields.io/pypi/l/sentry-dramatiq.svg)](https://pypi.python.org/pypi/sentry-dramatiq/)
+[![Available as wheel](https://img.shields.io/pypi/wheel/sentry-dramatiq.svg)](https://pypi.python.org/pypi/sentry-dramatiq/)
+[![Supported Python versions](https://img.shields.io/pypi/pyversions/sentry-dramatiq.svg)](https://pypi.python.org/pypi/sentry-dramatiq/)
+[![PyPI status (alpha/beta/stable)](https://img.shields.io/pypi/status/sentry-dramatiq.svg)](https://pypi.python.org/pypi/sentry-dramatiq/)
+[![Coverage Status](https://coveralls.io/repos/github/jmagnusson/sentry-dramatiq/badge.svg?branch=master)](https://coveralls.io/github/jmagnusson/sentry-dramatiq?branch=master)
+
+[Dramatiq task processor](https://dramatiq.io/) integration for the [Sentry SDK](https://docs.sentry.io/error-reporting/quickstart/?platform=python).
+
+## Installation
+
+```
+pip install sentry-dramatiq
+```
+
+## Setup
+
+```python
+import sentry_sdk
+import sentry_dramatiq
+
+sentry_sdk.init(
+ '__DSN__',
+ integrations=[sentry_dramatiq.DramatiqIntegration()],
+)
+```
+
+## Features
+
+- Tags Sentry events with the message ID as `dramatiq_message_id`
+- Adds all info about a Dramatiq message to a separate context (shows up as its own section in the Sentry UI)
+
+## Known limitations
+
+- `sentry_sdk.init()` has to be called before broker is initialized as the integration monkey patches `Broker.__init__`
+
+
+
+
+%package help
+Summary: Development documents and examples for sentry-dramatiq
+Provides: python3-sentry-dramatiq-doc
+%description help
+# sentry-dramatiq
+
+[![Travis CI build status (Linux)](https://travis-ci.org/jmagnusson/sentry-dramatiq.svg?branch=master)](https://travis-ci.org/jmagnusson/sentry-dramatiq)
+[![PyPI version](https://img.shields.io/pypi/v/sentry-dramatiq.svg)](https://pypi.python.org/pypi/sentry-dramatiq/)
+[![License](https://img.shields.io/pypi/l/sentry-dramatiq.svg)](https://pypi.python.org/pypi/sentry-dramatiq/)
+[![Available as wheel](https://img.shields.io/pypi/wheel/sentry-dramatiq.svg)](https://pypi.python.org/pypi/sentry-dramatiq/)
+[![Supported Python versions](https://img.shields.io/pypi/pyversions/sentry-dramatiq.svg)](https://pypi.python.org/pypi/sentry-dramatiq/)
+[![PyPI status (alpha/beta/stable)](https://img.shields.io/pypi/status/sentry-dramatiq.svg)](https://pypi.python.org/pypi/sentry-dramatiq/)
+[![Coverage Status](https://coveralls.io/repos/github/jmagnusson/sentry-dramatiq/badge.svg?branch=master)](https://coveralls.io/github/jmagnusson/sentry-dramatiq?branch=master)
+
+[Dramatiq task processor](https://dramatiq.io/) integration for the [Sentry SDK](https://docs.sentry.io/error-reporting/quickstart/?platform=python).
+
+## Installation
+
+```
+pip install sentry-dramatiq
+```
+
+## Setup
+
+```python
+import sentry_sdk
+import sentry_dramatiq
+
+sentry_sdk.init(
+ '__DSN__',
+ integrations=[sentry_dramatiq.DramatiqIntegration()],
+)
+```
+
+## Features
+
+- Tags Sentry events with the message ID as `dramatiq_message_id`
+- Adds all info about a Dramatiq message to a separate context (shows up as its own section in the Sentry UI)
+
+## Known limitations
+
+- `sentry_sdk.init()` has to be called before broker is initialized as the integration monkey patches `Broker.__init__`
+
+
+
+
+%prep
+%autosetup -n sentry-dramatiq-0.3.2
+
+%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-sentry-dramatiq -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..e1b5331
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+4bfc079ffcafa840624e89568619bf99 sentry_dramatiq-0.3.2.tar.gz