diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-09 11:33:56 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-09 11:33:56 +0000 |
commit | dbed051da899bbf15bd223d4aa40e913cc3c5b0f (patch) | |
tree | d3c3e2621a817c0f200ff2a904810fa11b2b2a04 /dev-python/stripe | |
parent | 4b63fd37a73007a6502ac56db4fc2c1c25c335fb (diff) |
gentoo auto-resync : 09:02:2024 - 11:33:56
Diffstat (limited to 'dev-python/stripe')
-rw-r--r-- | dev-python/stripe/Manifest | 2 | ||||
-rw-r--r-- | dev-python/stripe/stripe-8.2.0.ebuild | 81 |
2 files changed, 83 insertions, 0 deletions
diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest index e198a98d49cc..a3407bbcbc1b 100644 --- a/dev-python/stripe/Manifest +++ b/dev-python/stripe/Manifest @@ -2,8 +2,10 @@ DIST stripe-7.13.0.tar.gz 789362 BLAKE2B 326a8b0987ffc7b9bcca2c3fbff548770223a6e DIST stripe-7.14.0.tar.gz 793052 BLAKE2B fa0cf2c57a1cc6ab2eccfa5c1882e2b0ef62d3d92b392ab23df495c93dad52b43e609c1938af4403a3d1c87d9d73b08a9536d01ca5a7f98a5caebcbaf894d5be SHA512 c40b1a3a4c5af132b30402e9f3860fd2e463e2ca263bc4a072975a744a86e3659c9499cab2ed8f10dd076bb896c2ae4d8a79d8307e2307b598ebe24728a81025 DIST stripe-8.0.0.tar.gz 1070432 BLAKE2B 9f0b605d1c2c5f58dafcc78fb3d4878406c466b92475d08510116352325f5ba6ff3dc379fbd914b25faac7ced7e3fe5f52eecabbff5c479eaaf567cdbcb6a900 SHA512 c5ed151b41e3b2b11d502d51aad7c5c575e6ff151dcab8ffd86e32b4f37eeb1a6e381380b123802af938bb2adfbdda8a71c00e9e0b68e9493469cc6a90d94185 DIST stripe-8.1.0.tar.gz 1065303 BLAKE2B be82278fa4b401c0259e5d48a4d232557cda98771254cec5dddd7ef5bcd2896e7545d9a3463c9d27da5b6df0b98ff07de292888c00c92fa51f4ebe1b04806e7b SHA512 fbc2c7d3d8da5d0ba261c38bd9371df26beab4a509c86fac6f759678fe8fb387a178bcf49b4cf4a10d44469bbac1626a0bc79d5ba99797f6fbdaa7fc5fdd34b4 +DIST stripe-8.2.0.tar.gz 1066563 BLAKE2B e622ff4bfbcf8fe97c6dad7858845b5fc863523be8777c2c99549d4e5ec6e1af77058f79c466bc4bbffaec1f7410f16e0940f145b0af9cfc0b10d6c2bcf20669 SHA512 57e538de91de380116f67cda8108edead1795a92cc39cb0025ea71b94208929d710ca6101aeeb1e8d489dca0af372d6768443dbd2631b7aadc365b6fce395e4e EBUILD stripe-7.13.0.ebuild 2139 BLAKE2B 81d161c09e2820fe46ef277d50e6d0d25c234678f47f929a9fe48baf8dedeacd5c026189fe12c9ca194460f5d67bf7dd1421b3b1d9b6cb0052c45b8ab3a592b4 SHA512 6efc8383b30d782d451853ea5a4344bc9606cf1a28fd5faab5583f1e3917b213c13488e30322b44fd6da09920e5f01d431c61027fe7a688a062294d863cf85a4 EBUILD stripe-7.14.0.ebuild 2142 BLAKE2B 3cd84fb8e32d5bf2f9f48e889d1f4463571bcef1a8d0539a0ea48424acd0cbaae9ff6dce5f33d979307052caac1aacf1618d83ba22f298016614da1c123376e5 SHA512 3e480e177e37e09c20e75a30cea09cab309bc733e7017ada7631c7c0ab44592d7c88f5449ba21e3eb037409b8d018a077e13daf3223f6e3cc047d4ad9cdd4eb4 EBUILD stripe-8.0.0.ebuild 2142 BLAKE2B 3cd84fb8e32d5bf2f9f48e889d1f4463571bcef1a8d0539a0ea48424acd0cbaae9ff6dce5f33d979307052caac1aacf1618d83ba22f298016614da1c123376e5 SHA512 3e480e177e37e09c20e75a30cea09cab309bc733e7017ada7631c7c0ab44592d7c88f5449ba21e3eb037409b8d018a077e13daf3223f6e3cc047d4ad9cdd4eb4 EBUILD stripe-8.1.0.ebuild 2142 BLAKE2B cd97002f710e38f9bcaf54916678a0a36c6a1107776c7baee1fcf011d111a4a5a043421e3db33824535db9942c0d3b6bbfd58715a340daf5af96c7735c9065a6 SHA512 4e9e51636a5e11444f2fc3d24412124620622957852b317f6e294ac2dd29c709225a4bda24a735587f6e2e7901b4ae9168f3c2d4579c5ccd1fe93d8fbfe7727e +EBUILD stripe-8.2.0.ebuild 2142 BLAKE2B cd97002f710e38f9bcaf54916678a0a36c6a1107776c7baee1fcf011d111a4a5a043421e3db33824535db9942c0d3b6bbfd58715a340daf5af96c7735c9065a6 SHA512 4e9e51636a5e11444f2fc3d24412124620622957852b317f6e294ac2dd29c709225a4bda24a735587f6e2e7901b4ae9168f3c2d4579c5ccd1fe93d8fbfe7727e MISC metadata.xml 673 BLAKE2B 6b85b1f88713d2365274fcff21648748039b48028b3c34c1192e16ca12d0f3b4d14ab13c7c2a744c381898ea0c1304bda8be52d3fadddc1a1b787f010b001398 SHA512 e3178927a69d14f59673acc5eaedda59db5a07e2145ed6fb0597363b60183cb3e7a7b0feefc1d4c9095d52ed96e0be32ef5dc23ad0c20fd6e6b33c830177c0be diff --git a/dev-python/stripe/stripe-8.2.0.ebuild b/dev-python/stripe/stripe-8.2.0.ebuild new file mode 100644 index 000000000000..47a12cdc7672 --- /dev/null +++ b/dev-python/stripe/stripe-8.2.0.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} pypy3 ) + +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.181.0 + dev-python/pytest-mock[${PYTHON_USEDEP}] + net-misc/curl + ) +" + +distutils_enable_tests pytest + +DOCS=( LONG_DESCRIPTION.rst CHANGELOG.md README.md ) + +src_prepare() { + if ! use telemetry; then + sed -i -e '/enable_telemetry/s:True:False:' stripe/__init__.py || die + fi + distutils-r1_src_prepare +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests -p pytest_mock +} + +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" +} |