dev-python/stripe: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-08-29 09:20:42 +02:00
parent 411f190492
commit afc3b8dad7
2 changed files with 0 additions and 94 deletions

View File

@@ -2,8 +2,6 @@ DIST stripe-15.3.1.tar.gz 1516385 BLAKE2B cfdc04afa2c1cbba575cc67bf77375f84487c3
DIST stripe-15.3.1.tar.gz.provenance 9712 BLAKE2B 6b312c68c711c6afa03fd0650a1719535f76edbb0a34c49e3088fad2b97d76071938135ffd8dc78be01b93ba96a6855c2d22a3e13c9d3ba7d0f00f25eb90cd74 SHA512 1eb4547c84982b1eb50fcf49efc509207a42fb8673c35ea273ac833f4311af1a9ac21d01b9aea8d00a88547cbbf3fc9028458e5eaafc373a2387149d64e250b1
DIST stripe-15.4.0.tar.gz 1538270 BLAKE2B e2fed8eb46ec91a8f27ca3408b6b32a0c3b365059a92d6997c5d266c11bb0b11d101f9198ca48c0dfd43e3b6d746eaf26996a6b4d21cc432fe020d3e6dd8caf8 SHA512 544d6c8c2dc47d7f68c097f2eac5cb3075397742031b59fde01d2141e15655feb879b9a9c575dbf65ed5c9d37e4c75adcb53291f9b7e072af625ede33eb3cc2c
DIST stripe-15.4.0.tar.gz.provenance 9618 BLAKE2B 7772df6031e1cebb15bbbfff575dc6e7a0b86477dbc6c261221aab1398da0f35c3524f925e92f6931c5fd30195a054421d7241644ed32452af2f0c06f288682d SHA512 c05853f5a4841b2f6e9a1bba6c27eab320f10392b2c922e1bacaaac0fbd3bbd21e6eae7375dc50ea4c9e2dbab1a5a1f5536d88f14d628bead3477968daa93cfb
DIST stripe-15.5.0.tar.gz 1542610 BLAKE2B 0a0d6fad6bd63fd2f062fa3708b1a8367bc04115c1e05966139066958141a258e1136a54d04f9a54b1f2f052f3fedb11926f3316c60df7c95a79904957fa6552 SHA512 8a3ecc545ebdf83a2c4889e63d4246f37c47a4ec8f880002e8c7968b2e26ea5dd75fed967a6797e8dc62354e412cc62c83e81a79a70a1814109f9fe1f29aee77
DIST stripe-15.5.0.tar.gz.provenance 9567 BLAKE2B 2a003a554c4256a955ea988d467a12edfc3421443b3333bcf7024013a624ee39f59b8d32fca835b9c5fdbaf840925d6ccecce399b47302f7c77796065765a64d SHA512 b203e9dc67361afba423610676cf34a52d000e26734b1351a13b2d529c6e70fa1c1f1667836ca6598e86eb77102839aaf9a5d6e29c453083d8f4e93fa7ead92f
DIST stripe-15.5.1.tar.gz 1544797 BLAKE2B d2af1a485a4ace353c35240c3daa4cc15b6e557a16f510633a56849c885db09007a67034965271a184a5f0089abfbd058995e40c7fa44ed7fbefa565e89de382 SHA512 3c31ff744972622323faa84598b75718bcda8a5dac4e2e510ff1c5265af2306f2ef7fbd005aa6ad48659102c5b60d8c84dd4666ba1631096260b7f68c291a63c
DIST stripe-15.5.1.tar.gz.provenance 9722 BLAKE2B 3b89619847e7ed07348ce8b386063da97d635d4a246e224a16371d1ef4a737d29286e68207da4d3ff045f37d24fdfe9192e7d830780a9dd972ef56fa50c53940 SHA512 27fd6ebf1e35c2057a36a2e930a63b5f88f6ca9371e1c1f3b51e3d181f401ceb0d0068962f3bdd9c197dc3d7c2cb557f2b3c9c955fd39238c54d88ff14ac446a
DIST stripe-15.6.0.tar.gz 1562255 BLAKE2B fc893d387de746e183a7157988d29d12ae416ba87f300a011dd728075ce5809d6ae18e32414370227559caa0cacde6c65f1fe2a0fc9a7de104ac608c4feff572 SHA512 bcc3016dfcfd921e4b8a6add963daccede4870c7bdd23f27831b7621c5c6e62727f767ad51706149b970b06d9a6e604c362a768a9c16a2636eb75f6f09ca34a5

View File

@@ -1,92 +0,0 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=flit-core
PYPI_VERIFY_REPO=https://github.com/stripe/stripe-python
PYTHON_COMPAT=( python3_{12..15} )
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.7.0[${PYTHON_USEDEP}]
"
# please bump dev-util/stripe-mock dep to the latest version on every bump
BDEPEND="
test? (
>=dev-util/stripe-mock-0.201.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 -o addopts= 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"
}