diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 22:19:20 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 22:19:20 +0000 |
| commit | 0604fc65c44b2c30cc6cd75ff21d550451ca379e (patch) | |
| tree | 30f6b5737203cd8c7e0c6971d2edfa2d1b938db7 | |
| parent | 95f97ba97887d0a8f3e25bb8546644ae686871e6 (diff) | |
automatic import of python-sentry-dramatiq
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-sentry-dramatiq.spec | 198 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 200 insertions, 0 deletions
@@ -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 + +[](https://travis-ci.org/jmagnusson/sentry-dramatiq) +[](https://pypi.python.org/pypi/sentry-dramatiq/) +[](https://pypi.python.org/pypi/sentry-dramatiq/) +[](https://pypi.python.org/pypi/sentry-dramatiq/) +[](https://pypi.python.org/pypi/sentry-dramatiq/) +[](https://pypi.python.org/pypi/sentry-dramatiq/) +[](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 + +[](https://travis-ci.org/jmagnusson/sentry-dramatiq) +[](https://pypi.python.org/pypi/sentry-dramatiq/) +[](https://pypi.python.org/pypi/sentry-dramatiq/) +[](https://pypi.python.org/pypi/sentry-dramatiq/) +[](https://pypi.python.org/pypi/sentry-dramatiq/) +[](https://pypi.python.org/pypi/sentry-dramatiq/) +[](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 + +[](https://travis-ci.org/jmagnusson/sentry-dramatiq) +[](https://pypi.python.org/pypi/sentry-dramatiq/) +[](https://pypi.python.org/pypi/sentry-dramatiq/) +[](https://pypi.python.org/pypi/sentry-dramatiq/) +[](https://pypi.python.org/pypi/sentry-dramatiq/) +[](https://pypi.python.org/pypi/sentry-dramatiq/) +[](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 @@ -0,0 +1 @@ +4bfc079ffcafa840624e89568619bf99 sentry_dramatiq-0.3.2.tar.gz |
