Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sentry-sdk/
Date: Mon, 14 Sep 2020 18:03:16
Message-Id: 1600106588.fe45222d71f8fbf6a0d61b0e76f6a73129629356.sam@gentoo
1 commit: fe45222d71f8fbf6a0d61b0e76f6a73129629356
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 14 18:01:10 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 14 18:03:08 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe45222d
7
8 dev-python/sentry-sdk: bump to 0.17.5
9
10 Fix tests by:
11 * including dev-python/eventlet testdep
12 (only needed for one test, but there's no harm in using it)
13
14 * running distutils_install_for_testing to fix integration
15 tests and allow the others to run after the initial failure.
16
17 They check for installation of sentry-sdk as a module.
18
19 Package-Manager: Portage-3.0.4, Repoman-3.0.1
20 Signed-off-by: Sam James <sam <AT> gentoo.org>
21
22 dev-python/sentry-sdk/Manifest | 1 +
23 dev-python/sentry-sdk/sentry-sdk-0.17.5.ebuild | 85 ++++++++++++++++++++++++++
24 2 files changed, 86 insertions(+)
25
26 diff --git a/dev-python/sentry-sdk/Manifest b/dev-python/sentry-sdk/Manifest
27 index be7cc4a2d68..43f51847526 100644
28 --- a/dev-python/sentry-sdk/Manifest
29 +++ b/dev-python/sentry-sdk/Manifest
30 @@ -1,3 +1,4 @@
31 DIST sentry-sdk-0.14.4.tar.gz 75420 BLAKE2B cbc5f401fae8a4a9eaa8f6fff8ca16a61cf2d339f14787610646112f67d7b0694d95a6076d2810968d28eb176d447fec6cf49af9a317bb2c30b4e6ab2d89a4f0 SHA512 66886df71a3d8f9f86f41bfc4078bf80f217bcb0a27fb9e93acee193b482d3045db44953f6f0b4d05e79daa91dadb56c2784b13d1308e7bc00fb40f485537dab
32 DIST sentry-sdk-0.16.3.tar.gz 170145 BLAKE2B bf619313fb3f49800f5384f0dfec3aa34ef4bb030c5e038a485a8861a733a537ee7c834c8c200a2244335c3c61e7d564005b81d4e5c5f603d2864b2a943a5384 SHA512 e8589f7bd433d4aff068099e860c0cf012fc88dc63806873573a338bb91848d73e0a2af76dad0a5e023a1b25b0be85507346b77dec5c5a265942005219541699
33 DIST sentry-sdk-0.17.4.tar.gz 180562 BLAKE2B e6061d35ff098ef79cb4b21299e3622ea9d6ffe2b5f287843ea982f3254439ed00f7d8da6bff97cd5ec485d88e1d4beb5636a43c17a0b786582e6595cb64f15f SHA512 daa9f610e9fb7ad054a579be987ca21f925166fc3491aa3a7990593fbe45a7f51a473ca016762f627d4c07bcca249b2972694b832644e23484fd067e87f59d7d
34 +DIST sentry-sdk-0.17.5.tar.gz 183114 BLAKE2B a2fdd5fb0ffb18f7987eae9f3837a4bf4df20df9757d89bcc3ec18f7022d20de083c905f6edbb854bcc7f074f6d158cbf30f69d953a75048e7d9d0d98e859477 SHA512 5f0d6679832fed346d00b27bac9f680909a7ede38e46b1c05c583fcc574edc193d855dba2f11a629e2919da5e13cc2e89f6c0b231e47bc7b0a67138ff7905d9f
35
36 diff --git a/dev-python/sentry-sdk/sentry-sdk-0.17.5.ebuild b/dev-python/sentry-sdk/sentry-sdk-0.17.5.ebuild
37 new file mode 100644
38 index 00000000000..89a0a6dd3b2
39 --- /dev/null
40 +++ b/dev-python/sentry-sdk/sentry-sdk-0.17.5.ebuild
41 @@ -0,0 +1,85 @@
42 +# Copyright 1999-2020 Gentoo Authors
43 +# Distributed under the terms of the GNU General Public License v2
44 +
45 +EAPI=7
46 +
47 +PYTHON_COMPAT=( python3_{6..9} )
48 +
49 +inherit distutils-r1
50 +
51 +DESCRIPTION="Python client for Sentry"
52 +HOMEPAGE="https://getsentry.com https://pypi.org/project/sentry-sdk/"
53 +SRC_URI="https://github.com/getsentry/sentry-python/archive/${PV}.tar.gz -> ${P}.tar.gz"
54 +S="${WORKDIR}/sentry-python-${PV}"
55 +
56 +LICENSE="PSF-2"
57 +SLOT="0"
58 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
59 +
60 +RDEPEND="
61 + dev-python/urllib3[${PYTHON_USEDEP}]
62 + dev-python/certifi[${PYTHON_USEDEP}]
63 +"
64 +BDEPEND="
65 + test? (
66 + dev-python/asttokens[${PYTHON_USEDEP}]
67 + <dev-python/dnspython-2[${PYTHON_USEDEP}]
68 + dev-python/executing[${PYTHON_USEDEP}]
69 + dev-python/eventlet[${PYTHON_USEDEP}]
70 + dev-python/fakeredis[${PYTHON_USEDEP}]
71 + dev-python/flask-login[${PYTHON_USEDEP}]
72 + dev-python/gevent[${PYTHON_USEDEP}]
73 + dev-python/jsonschema[${PYTHON_USEDEP}]
74 + dev-python/pyrsistent[${PYTHON_USEDEP}]
75 + dev-python/pytest-aiohttp[${PYTHON_USEDEP}]
76 + dev-python/pytest-forked[${PYTHON_USEDEP}]
77 + dev-python/pytest-localserver[${PYTHON_USEDEP}]
78 + dev-python/werkzeug[${PYTHON_USEDEP}]
79 + $(python_gen_cond_dep '
80 + dev-python/aiocontextvars[${PYTHON_USEDEP}]
81 + dev-python/contextvars[${PYTHON_USEDEP}]
82 + ' python3_6)
83 + )
84 +"
85 +
86 +distutils_enable_tests pytest
87 +
88 +python_test() {
89 + local deselect=(
90 + # tests require Internet access
91 + --deselect tests/integrations/stdlib/test_httplib.py
92 + --deselect tests/integrations/requests/test_requests.py
93 + # wtf is it supposed to do?!
94 + --deselect tests/integrations/gcp/test_gcp.py
95 + # fails on py3.6, hangs on py3.7+
96 + --deselect
97 + 'tests/test_transport.py::test_transport_works[eventlet'
98 + # TODO
99 + --deselect
100 + 'tests/test_basics.py::test_auto_enabling_integrations_catches_import_error'
101 + --deselect
102 + tests/test_client.py::test_databag_depth_stripping
103 + --deselect
104 + tests/test_client.py::test_databag_string_stripping
105 + --deselect
106 + tests/test_client.py::test_databag_breadth_stripping
107 + # test_filename: apparently unhappy about pytest being called pytest
108 + --deselect 'tests/utils/test_general.py::test_filename'
109 + # test_circular_references: apparently fragile
110 + --deselect
111 + 'tests/integrations/threading/test_threading.py::test_circular_references'
112 + )
113 + [[ ${EPYTHON} == python3.6 ]] && deselect+=(
114 + # broken with contextvars on py3.6
115 + --deselect
116 + 'tests/utils/test_contextvars.py::test_leaks[greenlet]'
117 + --deselect
118 + 'tests/test_transport.py::test_transport_works[greenlet'
119 + )
120 +
121 + # Prevent tests/integrations/modules/test_modules.py:test_basic failure
122 + # Needs to detect sentry-sdk in the installed modules
123 + distutils_install_for_testing
124 +
125 + pytest -vv "${deselect[@]}" || die "Tests failed with ${EPYTHON}"
126 +}