[packages/python3-sentry-sdk] - added missing dirs, updated depenencies, added tests bcond (but one file missing in sdist); releas

qboosh qboosh at pld-linux.org
Sun Oct 20 15:59:17 CEST 2024


commit 14aaa2b5298c9916dd6ae2061a58f68161d2c771
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Oct 20 15:23:37 2024 +0200

    - added missing dirs, updated depenencies, added tests bcond (but one file missing in sdist); release 2

 python3-sentry-sdk.spec | 60 ++++++++++++++++++++++++++++++++-----------------
 1 file changed, 39 insertions(+), 21 deletions(-)
---
diff --git a/python3-sentry-sdk.spec b/python3-sentry-sdk.spec
index a614a60..f80300c 100644
--- a/python3-sentry-sdk.spec
+++ b/python3-sentry-sdk.spec
@@ -1,21 +1,31 @@
-%define		module	sentry_sdk
-%define		mname	sentry-sdk
-Summary:	Python sentry-sdk
-Summary(pl.UTF-8):	sentry-sdk
-Name:		python3-%{mname}
+#
+# Conditional build:
+%bcond_with	tests	# unit tests [missing conftest.py in sdist]
+
+Summary:	Python client for Sentry
+Summary(pl.UTF-8):	Pythonowy klient usługi Sentry
+Name:		python3-sentry-sdk
 Version:	1.40.6
-Release:	1
+Release:	2
 License:	MIT
 Group:		Libraries/Python
 #Source0Download:	https://pypi.org/simple/sentry-sdk/
-Source0:	https://files.pythonhosted.org/packages/source/s/sentry-sdk/%{mname}-%{version}.tar.gz
+Source0:	https://files.pythonhosted.org/packages/source/s/sentry-sdk/sentry-sdk-%{version}.tar.gz
 # Source0-md5:	eb66d1810fe87ab742cf33afdfe9df82
 URL:		https://pypi.org/project/sentry-sdk/
-BuildRequires:	python3-modules >= 1:3.2
+BuildRequires:	python3-modules >= 1:3.4
 BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-certifi
+BuildRequires:	python3-executing
+BuildRequires:	python3-gevent
+BuildRequires:	python3-pytest
+BuildRequires:	python3-pytest-forked
+BuildRequires:	python3-urllib3 >= 1.26.11
+%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python3-modules >= 1:3.2
+Requires:	python3-modules >= 1:3.4
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -23,12 +33,29 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Sentry is on a mission to help developers write better software
 faster, so we can get back to enjoying technology.
 
+This package is the official Python SDK for Sentry
+<http://sentry.io/>.
+
+%description -l pl.UTF-8
+Misją Sentry jest pomagać programistom pisać szybciej lepsze
+oprogramowanie, dzięki czemu można z powrotem cieszyć się
+technologią.
+
+Ten pakiet jest oficjalnym pythonowym SDK dla usługi Sentry
+<http://sentry.io/>.
+
 %prep
-%setup -q -n %{mname}-%{version}
+%setup -q -n sentry-sdk-%{version}
 
 %build
 %py3_build
 
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_forked \
+%{__python3} -m pytest tests
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
@@ -40,14 +67,5 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc LICENSE README.md
-%dir %{py3_sitescriptdir}/%{module}
-%{py3_sitescriptdir}/%{module}/*.py
-%{py3_sitescriptdir}/%{module}/*/*.py
-%{py3_sitescriptdir}/%{module}/*/*/*.py
-%{py3_sitescriptdir}/%{module}/*/*/*/*.py
-%{py3_sitescriptdir}/%{module}/py.typed
-%{py3_sitescriptdir}/%{module}/__pycache__
-%{py3_sitescriptdir}/%{module}/*/__pycache__
-%{py3_sitescriptdir}/%{module}/*/*/__pycache__
-%{py3_sitescriptdir}/%{module}/*/*/*/__pycache__
-%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%{py3_sitescriptdir}/sentry_sdk
+%{py3_sitescriptdir}/sentry_sdk-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-sentry-sdk.git/commitdiff/14aaa2b5298c9916dd6ae2061a58f68161d2c771



More information about the pld-cvs-commit mailing list