diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-09-11 04:37:21 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-09-11 04:37:21 +0100 |
commit | f8d2edf76d3901ebc1ace32c33a4d547fd5eee63 (patch) | |
tree | 742aed438164cbd07e8b218247c5519dd17d8749 /dev-python/stripe | |
parent | 783da4542a9c3e0e1ec703644212707cde610679 (diff) |
gentoo auto-resync : 11:09:2023 - 04:37:21
Diffstat (limited to 'dev-python/stripe')
-rw-r--r-- | dev-python/stripe/Manifest | 2 | ||||
-rw-r--r-- | dev-python/stripe/stripe-6.4.0.ebuild | 72 |
2 files changed, 74 insertions, 0 deletions
diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest index 4a3cc3111665..c0e6e3f6e5ee 100644 --- a/dev-python/stripe/Manifest +++ b/dev-python/stripe/Manifest @@ -3,9 +3,11 @@ DIST stripe-6.0.0.tar.gz 262261 BLAKE2B e91fbbda137cdaa78042b8914a85dcd3d75e0456 DIST stripe-6.1.0.tar.gz 263336 BLAKE2B 176903f3b6f4eabdcb3181272c96a66432f6569fcb3c976e03c2a4768adba900b65d3348e846d6cb9860fda6ff10a51a316b5b96b47d1e30f9c93c00b5de1f2e SHA512 fc4d4fbb49ae34e516fd10ec275982d4f555f9deaef42a598debd956c8c72528fd18fcacdbcc4ce55e326696ee45527a06740630c3152b937c2d4c29978a2f37 DIST stripe-6.2.0.tar.gz 264754 BLAKE2B be5d34887537154df852fd328e81949a0eb858e02236ecf5bcd33a43c0d1c7f1f71cbe67c89e4cb177e50fadd047a0a0c6945702993712f9212b46ea154a067a SHA512 e18fff6735f6c03d64a427232d3a67fff653d570a0413e03a3cb9c2e8dedeee88640197f8f8ad93cea76ace2c9fdee81b79d54cf48cf92a5f2a79b2e33160a7a DIST stripe-6.3.0.tar.gz 276422 BLAKE2B 2fa438593bdec94f5c8306ee180921c2920e8995036d3ec53794dcba89f4f97c257bfe13561d1fd993c49247d0423ca4d7f4e994c1b4b8386ebaddf47f9063de SHA512 900a85bd8a44404dcc8ed4e057db64087b7a6f05d8e01183c22fc5dd7da815298e23b386d2d41dee6ea3925e92653858cc945e163757870fe04c543def017424 +DIST stripe-6.4.0.tar.gz 278866 BLAKE2B 62b8ae5202e7c4b866eddc7de7654fe94ae10187ef060b543c7c461cb273575e1b0bc499c27128dfdf18482e48a18f4a1b8eebd261e3c8bf1e520635efb34a25 SHA512 29f5efd6ea94b73db3fab85a40e2d033b571410c657d0e7af6d1c4d24c4c703eb196806ea58d6563fc5ee4fc2fa3e7fa7b77a0fcb6377ea71d4a7aed0b8e081f EBUILD stripe-5.5.0.ebuild 1855 BLAKE2B 32f5243b637b1bd18920e2bd38dbc6c1250bf63c683015987cb99492802d2e9102bbf1fd95d71c5df0ef0fbf2f9169d114a4c71bb86a3a0e3984482c0db9c1bb SHA512 1f90a1cf06d7870bd503ba11ae61917c5bd2dd4c1d4d0bc251a8af91913eaacc616b518cb4c8706849cfc33a1944655fd6e50300fbd9601fa525a42ec87bedcd EBUILD stripe-6.0.0.ebuild 1857 BLAKE2B c3bbd829c22415c9643c2498654d7e475be1195425e72ac747af8dbabde710b9907d3990ed21415a9fe3a21b8a831953d2075798e791b109f1676b0dcdc9a4d7 SHA512 97c6a3d644f054866a2740a7aefa484415bf63b5ea67b618ca2204722208bacc1850d0c310a47dfa035d107b6c65d82e8bec7a83572e79cd38f4fa2d7fe7a002 EBUILD stripe-6.1.0.ebuild 1913 BLAKE2B 21b072f49bc4daac0e92b297f7088d4282897d94489f1c96dc2a1f63c003c6492dd452543f6e62df3084a94728e2c96eb458140f72a606f8cae4f1d3fdde5e2b SHA512 d29de2e0f9ba27196220b300cfb9f93306630a07328ca45593c3159eac49edcc7b6f792eb3d9590a41da02042de67e67cf505793912863c64b9accb499a86f02 EBUILD stripe-6.2.0.ebuild 1913 BLAKE2B 21b072f49bc4daac0e92b297f7088d4282897d94489f1c96dc2a1f63c003c6492dd452543f6e62df3084a94728e2c96eb458140f72a606f8cae4f1d3fdde5e2b SHA512 d29de2e0f9ba27196220b300cfb9f93306630a07328ca45593c3159eac49edcc7b6f792eb3d9590a41da02042de67e67cf505793912863c64b9accb499a86f02 EBUILD stripe-6.3.0.ebuild 1913 BLAKE2B d617f476411f190acbfe7a6012bfbd446edb5aa198955c4241d0f91ece685ef7d4aa8ff79f722f806c66641186b3fd4fd77f891c909d066a595054f3218a5117 SHA512 f507e275ff4e7b647e46d64193aab2b6aebacaea2f49be99f21c2b610b3fc113bdcc0ab5d6f3e02f19fee91279d06a8d63f2a9b10105ffbb564bca5af90d4eea +EBUILD stripe-6.4.0.ebuild 1913 BLAKE2B b6227332646d7fbca3705898345caeb7c73dc80d03aba4a1b18610d4ef7badc65f2d8692716f619a1e3ffea0bb3587d4fda7336160e39d54cbf254f0a53e8e9e SHA512 707a91ff3ba44a9c72873ed331227cf881114a343b923f9c030840502e614bcd53bbb64937c376813ec0be603ba8c6ca55ff4dc1181b4a96c7d23739644cdd65 MISC metadata.xml 372 BLAKE2B e6a38fdec6fc016068e7a0522ba15e83bf358ba1475e54a9630b1e86c75bc14b790c59716317bd81438a1c770e4d31afbe04400ddcd5dd272715c251fd6cb1a2 SHA512 2d9672b242f2d38654f7906097e597dfbdf75afa3583ea331f61772db95d19a802e83ed523c67a6cf3da18411036055c0996fd04d99199618d5205be8a61bd77 diff --git a/dev-python/stripe/stripe-6.4.0.ebuild b/dev-python/stripe/stripe-6.4.0.ebuild new file mode 100644 index 000000000000..dfc2d8980d60 --- /dev/null +++ b/dev-python/stripe/stripe-6.4.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2023 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 ~x86" + +RDEPEND=" + >=dev-python/requests-2.20[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.0.0[${PYTHON_USEDEP}] +" +# please bump dev-util/stripe-mock dep to the latest version on every bump +BDEPEND=" + test? ( + >=dev-util/stripe-mock-0.174.0 + dev-python/pytest-mock[${PYTHON_USEDEP}] + net-misc/curl + ) +" + +distutils_enable_tests pytest + +DOCS=( LONG_DESCRIPTION.rst CHANGELOG.md README.md ) + +python_test() { + 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" +} |