Blame python-sentry-sdk.spec

Roman Inflianskas 554d414
Name:           python-sentry-sdk
Roman Inflianskas 951072f
Version:        1.16.0
Roman Inflianskas ad7b63d
Release:        1%{?dist}
Roman Inflianskas 554d414
Summary:        The new Python SDK for Sentry.io
Roman Inflianskas 554d414
Roman Inflianskas 951072f
License:        MIT
Roman Inflianskas 554d414
URL:            https://sentry.io/for/python/
Roman Inflianskas 554d414
Source0:        https://github.com/getsentry/sentry-python/archive/%{version}/sentry-python-%{version}.tar.gz
Roman Inflianskas 554d414
Roman Inflianskas 554d414
BuildArch:      noarch
Roman Inflianskas 554d414
BuildRequires:  python3-devel
Roman Inflianskas 554d414
BuildRequires:  python3dist(certifi)
Roman Inflianskas 554d414
BuildRequires:  python3dist(wheel)
Roman Inflianskas 554d414
# Use Fedora versions of testing dependencies + pytest instead of pinned versions in upstream + tox
Roman Inflianskas f77ea15
BuildRequires:  python3dist(aiohttp)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(asttokens)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(blinker)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(botocore)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(bottle)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(celery)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(django)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(djangorestframework)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(executing)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(fastapi)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(flask)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(flask-login)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(gevent)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(httpx)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(jsonschema)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(mock)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(opentelemetry-distro)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(psycopg2)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(pure-eval)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(pymongo)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(pyramid)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(pyrsistent)
Roman Inflianskas 554d414
BuildRequires:  python3dist(pytest)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(pytest-aiohttp)
Roman Inflianskas 6cece59
BuildRequires:  python3dist(pytest-asyncio)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(pytest-cov)
Roman Inflianskas 554d414
BuildRequires:  python3dist(pytest-forked)
Roman Inflianskas 554d414
BuildRequires:  python3dist(pytest-localserver)
Roman Inflianskas 951072f
BuildRequires:  python3dist(python-multipart)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(requests)
Roman Inflianskas 951072f
BuildRequires:  python3dist(responses)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(rq)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(sqlalchemy)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(starlette)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(tornado)
Roman Inflianskas f77ea15
BuildRequires:  python3dist(werkzeug)
Roman Inflianskas 554d414
Roman Inflianskas 554d414
Roman Inflianskas 554d414
%global _description %{expand:
Roman Inflianskas 554d414
Python Error and Performance Monitoring. Actionable insights to resolve Python
Roman Inflianskas 554d414
performance bottlenecks and errors. See the full picture of any Python exception
Roman Inflianskas 554d414
so you can diagnose, fix, and optimize performance in the Python debugging
Roman Inflianskas 554d414
process.}
Roman Inflianskas 554d414
Roman Inflianskas 554d414
%description %_description
Roman Inflianskas 554d414
Roman Inflianskas 554d414
%package -n python3-sentry-sdk
Roman Inflianskas 554d414
Summary:        %{summary}
Roman Inflianskas 554d414
Roman Inflianskas 554d414
%description -n python3-sentry-sdk %_description
Roman Inflianskas 554d414
Roman Inflianskas 554d414
Roman Inflianskas 951072f
# Dependencies for quart, sanic, beam, pyspark, chalice, starlite, huey, arq extras are not yet in Fedora
Roman Inflianskas f77ea15
# falcon version >= 3.0 is not yet supported => skipping this extra as well
Roman Inflianskas f77ea15
%global _extras %{expand:
Roman Inflianskas f77ea15
  flask
Roman Inflianskas f77ea15
  bottle
Roman Inflianskas f77ea15
  django
Roman Inflianskas f77ea15
  celery
Roman Inflianskas f77ea15
  rq
Roman Inflianskas f77ea15
  aiohttp
Roman Inflianskas f77ea15
  tornado
Roman Inflianskas f77ea15
  sqlalchemy
Roman Inflianskas f77ea15
  pure_eval
Roman Inflianskas f77ea15
  httpx
Roman Inflianskas f77ea15
  starlette
Roman Inflianskas f77ea15
  fastapi
Roman Inflianskas f77ea15
  pymongo
Roman Inflianskas f77ea15
  opentelemetry
Roman Inflianskas f77ea15
}
Roman Inflianskas f77ea15
%pyproject_extras_subpkg -n python3-sentry-sdk %_extras
Roman Inflianskas 554d414
Roman Inflianskas 554d414
Roman Inflianskas 554d414
%prep
Roman Inflianskas 554d414
%autosetup -p1 -n sentry-python-%{version}
Roman Inflianskas 554d414
Roman Inflianskas 554d414
Roman Inflianskas 554d414
%generate_buildrequires
Roman Inflianskas 554d414
%pyproject_buildrequires -r
Roman Inflianskas 554d414
Roman Inflianskas 554d414
Roman Inflianskas 554d414
%build
Roman Inflianskas 554d414
%pyproject_wheel
Roman Inflianskas 554d414
Roman Inflianskas 554d414
Roman Inflianskas 554d414
%install
Roman Inflianskas 554d414
%pyproject_install
Roman Inflianskas 554d414
%pyproject_save_files sentry_sdk
Roman Inflianskas 554d414
Roman Inflianskas 554d414
Roman Inflianskas 554d414
%check
Roman Inflianskas f77ea15
%global _check_import_options %{expand:
Roman Inflianskas 951072f
  -e sentry_sdk.integrations.arq
Roman Inflianskas f77ea15
  -e sentry_sdk.integrations.chalice
Roman Inflianskas f77ea15
  -e sentry_sdk.integrations.falcon
Roman Inflianskas 951072f
  -e sentry_sdk.integrations.huey
Roman Inflianskas f77ea15
  -e sentry_sdk.integrations.quart
Roman Inflianskas f77ea15
  -e sentry_sdk.integrations.sanic
Roman Inflianskas 43b178a
  -e sentry_sdk.integrations.starlite
Roman Inflianskas f77ea15
  -e sentry_sdk.integrations.trytond
Roman Inflianskas f77ea15
}
Roman Inflianskas f77ea15
%pyproject_check_import %_check_import_options
Roman Inflianskas ad7b63d
# Testing suite relies on the test to be executed on clean env (first line), other tests are broken on Python 3.11.
Roman Inflianskas ad7b63d
# By some reason, skipping the tests breaks other tests, marking them as expected to fail.
Roman Inflianskas f77ea15
sed -i '/def test_auto_enabling_integrations_catches_import_error/i@pytest.mark.xfail' tests/test_basics.py
Roman Inflianskas ad7b63d
sed -i '/def test_extract_stack_with_max_depth/i@pytest.mark.xfail' tests/test_profiler.py
Roman Inflianskas ad7b63d
sed -i '/def test_active_thread_id/i@pytest.mark.xfail' tests/integrations/fastapi/test_fastapi.py
Roman Inflianskas 951072f
# Remove old content_type argument from starlette test (not supported in current version of starlette).
Roman Inflianskas 951072f
sed -i '/content_type=/D' tests/integrations/starlette/test_starlette.py
Roman Inflianskas 951072f
# Fix aiohttp tests.
Roman Inflianskas 951072f
sed -i 's/loop/event_loop/g' tests/integrations/aiohttp/test_aiohttp.py
Roman Inflianskas ad7b63d
Roman Inflianskas f77ea15
# Deselect/ignore:
Roman Inflianskas f77ea15
# 1. Network-dependent tests
Roman Inflianskas f77ea15
# 2. Tests which cannot be run during Fedora build because of the version of pytest:
Roman Inflianskas f77ea15
#    https://github.com/pytest-dev/pytest/issues/9621
Roman Inflianskas f77ea15
#    https://github.com/pytest-dev/pytest-forked/issues/67
Roman Inflianskas f77ea15
# 3. django integration tests (django-rest-framework is not available for Fedora 38)
Roman Inflianskas f77ea15
# 4. pymongo integration tests (mockupdb is unpackaged because it appears unmaintained)
Roman Inflianskas f77ea15
# 5. redis and rq integration tests (fakeredis is unpackaged yet)
Roman Inflianskas f77ea15
# 6. bottle, django, and flask integration tests (werkzeug in Fedora 38 is too new, see: https://github.com/getsentry/sentry-python/issues/1398)
Roman Inflianskas 951072f
# 7. starlette test which uses old content_type argument (not supported in current version of starlette).
Roman Inflianskas 951072f
%pytest --asyncio-mode=auto --durations=5 \
Roman Inflianskas f77ea15
  --deselect tests/integrations/celery/test_celery.py::test_newrelic_interference \
Roman Inflianskas f77ea15
  --deselect tests/integrations/celery/test_celery.py::test_retry \
Roman Inflianskas f77ea15
  --deselect tests/integrations/requests/test_requests.py::test_crumb_capture \
Roman Inflianskas 951072f
  --deselect tests/integrations/starlette/test_starlette::test_starlettrequestextractor_form \
Roman Inflianskas 554d414
  --deselect tests/integrations/stdlib/test_httplib.py::test_crumb_capture \
Roman Inflianskas 554d414
  --deselect tests/integrations/stdlib/test_httplib.py::test_crumb_capture_hint \
Roman Inflianskas 554d414
  --deselect tests/integrations/stdlib/test_httplib.py::test_httplib_misuse \
Roman Inflianskas 554d414
  --deselect tests/integrations/threading/test_threading.py \
Roman Inflianskas f77ea15
  --deselect tests/test_transport.py::test_transport_works \
Roman Inflianskas db0e219
  --deselect tests/utils/test_contextvars.py \
Roman Inflianskas 951072f
  --ignore tests/integrations/arq \
Roman Inflianskas f77ea15
  --ignore tests/integrations/bottle \
Roman Inflianskas f77ea15
  --ignore tests/integrations/django \
Roman Inflianskas 43b178a
  --ignore tests/integrations/flask \
Roman Inflianskas 43b178a
  --ignore tests/integrations/gcp \
Roman Inflianskas 43b178a
  --ignore tests/integrations/httpx \
Roman Inflianskas f77ea15
  --ignore tests/integrations/pymongo \
Roman Inflianskas f77ea15
  --ignore tests/integrations/pyramid \
Roman Inflianskas f77ea15
  --ignore tests/integrations/redis \
Roman Inflianskas 43b178a
  --ignore tests/integrations/rq \
Roman Inflianskas 43b178a
  --ignore tests/integrations/wsgi
Roman Inflianskas 554d414
Roman Inflianskas 6cece59
Roman Inflianskas 554d414
%files -n python3-sentry-sdk -f %{pyproject_files}
Roman Inflianskas 554d414
%doc README.md
Roman Inflianskas 554d414
Roman Inflianskas 554d414
Roman Inflianskas 554d414
%changelog
Roman Inflianskas 951072f
* Tue Feb 28 2023 Roman Inflianskas <rominf@aiven.io> - 1.16.0-1
Roman Inflianskas 951072f
- Update to 1.16.0 (resolve rhbz#2167733)
Roman Inflianskas 951072f
- Switch to MIT license
Roman Inflianskas 951072f
Roman Inflianskas ad7b63d
* Mon Jan 23 2023 Roman Inflianskas <rominf@aiven.io> - 1.14.0-1
Roman Inflianskas ad7b63d
- Update to 1.14.0 (resolve rhbz#2163387)
Roman Inflianskas ad7b63d
e5765ce
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.0-2
e5765ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
e5765ce
Roman Inflianskas 43b178a
* Fri Jan 13 2023 Roman Inflianskas <rominf@aiven.io> - 1.13.0-1
Roman Inflianskas 43b178a
- Update to 1.13.0 (resolve rhbz#2160514)
Roman Inflianskas 43b178a
- Cleanup check section
Roman Inflianskas 43b178a
Roman Inflianskas f77ea15
* Thu Jan 12 2023 Roman Inflianskas <rominf@aiven.io> - 1.12.1-1
Roman Inflianskas f77ea15
- Update to 1.12.1 (resolve rhbz#2153838)
Roman Inflianskas f77ea15
- Add fastapi, pymongo, and opentelemetry extras
Roman Inflianskas f77ea15
- Remove falcon extra
Roman Inflianskas f77ea15
- Check imports
Roman Inflianskas f77ea15
Roman Inflianskas e8af2b8
* Wed Nov 23 2022 Roman Inflianskas <rominf@aiven.io> - 1.11.1-1
Roman Inflianskas e8af2b8
- Update to 1.11.1 (resolve rhbz#2144826)
Roman Inflianskas e8af2b8
Roman Inflianskas 238a288
* Mon Nov 21 2022 Roman Inflianskas <rominf@aiven.io> - 1.11.0-1
Roman Inflianskas 238a288
- Update to 1.11.0 (resolve rhbz#2142588)
Roman Inflianskas 238a288
Roman Inflianskas db0e219
* Wed Oct 26 2022 Roman Inflianskas <rominf@aiven.io> - 1.10.1-1
Roman Inflianskas 6cece59
- Update to 1.10.1 (resolve rhbz#2136521)
Roman Inflianskas 6cece59
Roman Inflianskas 486f140
* Tue Oct 04 2022 Roman Inflianskas <rominf@aiven.io> - 1.9.10-1
Roman Inflianskas 486f140
- Update to 1.9.10 (resolve rhbz#2131775)
Roman Inflianskas 486f140
Roman Inflianskas 1ddf175
* Wed Sep 28 2022 Roman Inflianskas <rominf@aiven.io> - 1.9.9-1
Roman Inflianskas 1ddf175
- Update to 1.9.9 (resolve rhbz#2115953)
Roman Inflianskas 1ddf175
- Add falcon extra again
Roman Inflianskas 1ddf175
Roman Inflianskas ea9cdc3
* Fri Jul 29 2022 Roman Inflianskas <rominf@aiven.io> - 1.9.0-1
Roman Inflianskas ea9cdc3
- Update to 1.9.0 (resolve rhbz#2111875)
Roman Inflianskas ea9cdc3
Roman Inflianskas 3ebc523
* Tue Jul 26 2022 Roman Inflianskas <rominf@aiven.io> - 1.8.0-2
Roman Inflianskas 3ebc523
- Remove extras, which fail to install (resolve rhbz#2110754)
Roman Inflianskas 3ebc523
Roman Inflianskas a0b6631
* Sat Jul 23 2022 Roman Inflianskas <rominf@aiven.io> - 1.8.0-1
Roman Inflianskas a0b6631
- Update to 1.8.0 (resolve rhbz#2105940)
Roman Inflianskas a0b6631
d6960c3
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
d6960c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
d6960c3
Roman Inflianskas 3f5c9f3
* Fri Jul 01 2022 Roman Inflianskas <rominf@aiven.io> - 1.6.0-1
Roman Inflianskas 3f5c9f3
- Update to 1.6.0
Roman Inflianskas 3f5c9f3
- Remove falcon extra (resolve rhbz#2102851)
Roman Inflianskas 3f5c9f3
Roman Inflianskas 554d414
* Fri Jun 10 2022 Roman Inflianskas <rominf@aiven.io> - 1.5.12-1
Roman Inflianskas 554d414
- Initial package