dev-python/stripe: Bump to 14.4.0

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-02-26 05:37:34 +01:00
parent f69793f58d
commit 3bbed7fe0a
2 changed files with 92 additions and 0 deletions
+1
View File
@@ -1,2 +1,3 @@
DIST stripe-14.1.0.tar.gz 1449934 BLAKE2B abfcc3853bbdb645851e41da825c203ba5303b738c657e179525a673e2cb9d39ce8e6b9c2ebdd4eae6c02946c1ff7d0c9fe9207e357200ec457eb788134213f4 SHA512 6178266699a484a5a7a3571826f6c2fd4ccb4c4e5b8cf2b86b2da2857b00df8b575a64c9ae97d9fdd891532f7dc6b90855c58c6bbb6feaf8204231348c9519d5
DIST stripe-14.3.0.tar.gz 1463618 BLAKE2B 6783b412c94089d13dc1efd14eb43bf2cbed93d818a9ab448cdb32bbfed975dd625baf9f51c6be2630c8dcbfe1da9a9520ee14d306e5fa1ddc7b7c4bdff39994 SHA512 85e82cadd82412b2dfee8750b92029ff8ef835d38499913644914e9a765aa57cafa659603fa403ea102149198744a5e769b5e325c653a13bdccaf31a6c94f944
DIST stripe-14.4.0.tar.gz 1472370 BLAKE2B 5f120bf7f0592d923d8d31ada37d1ba4d7426e61671d7a98fb41bd00783b8f4aefa10434e751f671fc16d3126bad322346e7b0434553775db83ec97b7416be6a SHA512 81198fcfb3b42b82aed612e9b602f2d3e4e3d22529d9d78147e5bc42b0cd91f3042771e56496f4fddb8bf554b1c5f881c8d836f8260d812d676dfa4e941078d7
+91
View File
@@ -0,0 +1,91 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=flit
PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
inherit distutils-r1 pypi
DESCRIPTION="Stripe Python bindings"
HOMEPAGE="
https://github.com/stripe/stripe-python/
https://pypi.org/project/stripe/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="telemetry"
RDEPEND="
>=dev-python/requests-2.20[${PYTHON_USEDEP}]
>=dev-python/typing-extensions-4.5.0[${PYTHON_USEDEP}]
"
# please bump dev-util/stripe-mock dep to the latest version on every bump
BDEPEND="
test? (
>=dev-util/stripe-mock-0.197.0
dev-python/aiohttp[${PYTHON_USEDEP}]
dev-python/httpx[${PYTHON_USEDEP}]
dev-python/trio[${PYTHON_USEDEP}]
net-misc/curl
)
"
EPYTEST_PLUGINS=( anyio pytest-mock )
EPYTEST_XDIST=1
distutils_enable_tests pytest
src_prepare() {
distutils-r1_src_prepare
if ! use telemetry; then
sed -i -e '/enable_telemetry/s:True:False:' stripe/__init__.py || die
fi
}
python_test() {
local EPYTEST_DESELECT=(
# Internet
tests/test_http_client.py::TestLiveHTTPClients::test_httpx_request_async_https
'tests/test_integration.py::TestIntegration::test_async_raw_request_timeout[asyncio-aiohttp]'
# timing
tests/test_integration.py::TestIntegration::test_passes_client_telemetry_when_enabled
)
epytest tests
}
src_test() {
local stripe_mock_port=12111
local stripe_mock_max_port=12121
local stripe_mock_logfile="${T}/stripe_mock_${EPYTHON}.log"
# Try to start stripe-mock until we find a free port
while [[ ${stripe_mock_port} -le ${stripe_mock_max_port} ]]; do
ebegin "Trying to start stripe-mock on port ${stripe_mock_port}"
stripe-mock --http-port "${stripe_mock_port}" &> "${stripe_mock_logfile}" &
local stripe_mock_pid=${!}
sleep 2
# Did stripe-mock start?
curl --fail -u "sk_test_123:" \
"http://127.0.0.1:${stripe_mock_port}/v1/customers" &> /dev/null
eend ${?} "Port ${stripe_mock_port} unavailable"
if [[ ${?} -eq 0 ]]; then
einfo "stripe-mock running on port ${stripe_mock_port}"
break
fi
(( stripe_mock_port++ ))
done
if [[ ${stripe_mock_port} -gt ${stripe_mock_max_port} ]]; then
eerror "Unable to start stripe-mock for tests"
die "Please see the logfile located at: ${stripe_mock_logfile}"
fi
local -x STRIPE_MOCK_PORT=${stripe_mock_port}
distutils-r1_src_test
# Tear down stripe-mock
kill "${stripe_mock_pid}" || die "Unable to stop stripe-mock"
}