diff options
Diffstat (limited to 'dev-python/stripe')
| -rw-r--r-- | dev-python/stripe/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/stripe/metadata.xml | 20 | ||||
| -rw-r--r-- | dev-python/stripe/stripe-15.1.0.ebuild | 91 | ||||
| -rw-r--r-- | dev-python/stripe/stripe-15.2.0.ebuild | 91 |
4 files changed, 0 insertions, 204 deletions
diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest deleted file mode 100644 index 3e2dba830af4..000000000000 --- a/dev-python/stripe/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST stripe-15.1.0.tar.gz 1501673 BLAKE2B d494b52288d89a2ec4f42603a4502ae40391c1101a13f4bbd74f6a40e84885c2fdf519f2c41026ae7ac7bb609c446aca50e1ae65ab1661f9ad4538bd4ada6a2d SHA512 1e050e5c66ba4144adf9f07199987ed89c3618599b2cf03234e43df4dd95885089289ded57ed9e204403c84d13fe6242a7bfe7023e220afb206f9b6e6df9fe32 -DIST stripe-15.2.0.tar.gz 1520207 BLAKE2B 90e810fea547afdf5db9c00bd1a522e02caac9bf9dde3f3e83f8143ada87bdeb4db3d5a6c774bbd956db230e46089a5754dd414deb02a244c2c4f7c96d2d3cdf SHA512 1959725b10e4068525bc31f1c0bbea9480ebb6ec59487cf0aec63c5aceeb24d3453a8a2d364300f55c7976655184f3b3d6cfb6d4adbcbfff7838ecdb5d54512c diff --git a/dev-python/stripe/metadata.xml b/dev-python/stripe/metadata.xml deleted file mode 100644 index 5170080cee2d..000000000000 --- a/dev-python/stripe/metadata.xml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>python@gentoo.org</email> - </maintainer> - <stabilize-allarches/> - <upstream> - <remote-id type="pypi">stripe</remote-id> - <remote-id type="github">stripe/stripe-python</remote-id> - </upstream> - <use> - <flag name="telemetry"> - Enable sending "telemetry to Stripe regarding request latency - and feature usage" by default. Upstream enables it by default - in their PyPI distribution; it can also be explicitly controlled - via stripe.enable_telemetry variable (boolean). - </flag> - </use> -</pkgmetadata> diff --git a/dev-python/stripe/stripe-15.1.0.ebuild b/dev-python/stripe/stripe-15.1.0.ebuild deleted file mode 100644 index 74960ff41919..000000000000 --- a/dev-python/stripe/stripe-15.1.0.ebuild +++ /dev/null @@ -1,91 +0,0 @@ -# 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_{13..14} ) - -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.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" -} diff --git a/dev-python/stripe/stripe-15.2.0.ebuild b/dev-python/stripe/stripe-15.2.0.ebuild deleted file mode 100644 index 81df946e5a07..000000000000 --- a/dev-python/stripe/stripe-15.2.0.ebuild +++ /dev/null @@ -1,91 +0,0 @@ -# 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_{13..14} ) - -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.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" -} |
