diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-09-15 09:01:56 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-09-15 09:01:56 +0100 |
commit | e8f81810baa21f490d6910e8e2d424546b72a333 (patch) | |
tree | db79151c528a566490ffcac0d7b64484e12b4762 /dev-python/stripe | |
parent | d00821e77f72d4af4ea30158c1c6e18ffff0875b (diff) |
gentoo resync : 15.09.2019
Diffstat (limited to 'dev-python/stripe')
-rw-r--r-- | dev-python/stripe/Manifest | 2 | ||||
-rw-r--r-- | dev-python/stripe/stripe-2.34.0.ebuild | 69 |
2 files changed, 71 insertions, 0 deletions
diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest index ae6d082e9c18..dd6ef710648f 100644 --- a/dev-python/stripe/Manifest +++ b/dev-python/stripe/Manifest @@ -1,7 +1,9 @@ DIST stripe-1.84.2.tar.gz 213050 BLAKE2B df6c195a183d15bdeb7ffbfd2f5683b0b667e8a4df7a637d3960369e1b00a90c74bb5d97af64c553e2f250b2bb7bb698d015a65c3da312f74bc7b141c4b63dc5 SHA512 7d3e1a20c30b3c2fa087c9fe86b04462db4b6cd742ea13daae2754ee6b414656847057b30db48634c6d02ef01d8e510359505fab212325a3db36dfaf2d72db38 DIST stripe-2.10.1.tar.gz 218299 BLAKE2B b1d836ef92dabfd5a5f292ede69264886dadb0b87b72927e444d615e9f0518efff513f34f2aaee778921f7cb68169f7981a5e84993b19221ec394a1d5c07c622 SHA512 877a87e848d425f333ad3e40c172010a3b1882de0894ff8c5c0623f5d09fbd7ab51d9d53ead8773d3680cdab8d07df32f4210abc08c796adf6feeb4014b671f7 DIST stripe-2.3.0.tar.gz 213813 BLAKE2B b383c724331d5ec21452aee2eee49c789e2503057c4648d9e879fc561b87cc70ba918bb1e620db3bca380150e62d41433f1bfa7f9b6f164731d3d68542d5f056 SHA512 ba88b18b7328d917379d8474373a1f87717d67cf305022b80eb05c74b8055b825cf30cc879c4e99dbe06dc99f03464649e637d83d70c902b84f5873dd0776453 +DIST stripe-2.34.0.tar.gz 206926 BLAKE2B 30a4d3da4ad58ffb8656c03d1755e20afd7059cf23a693e59af467720e88769f64e53bf62b06c493f7713c50bc251f475501d37045ed0db1df99c9fad72f51eb SHA512 e9bde04ffcd7bfd36afa1a32a9f9bf3454cc262ec2b760bc606aa6b24f8b0d8d0fa37309fc5472ba88dc63f1384c03fc451d2b6a6007728a8ec9fd0899b8b717 EBUILD stripe-1.84.2.ebuild 452 BLAKE2B 6d2301cfd3d410fc0c6873ed6b51275a23c8de3412a379b337c5df7f33e7737dae899248f9e21d10add3bcec636159ed7329c832e7161510e9864093bb558ed5 SHA512 3f7b4b5576161e9c71b1acfb5876ee31e4befed15a61b7951fcf8ed3ad98c641bebdb7712e00933703730eabe8447a2d1901bf1a46c1344ebd21073889b06254 EBUILD stripe-2.10.1.ebuild 2175 BLAKE2B 1f67416d97643412117ed34f0f99cf4e6ab7300eaa803e6cc2c4e7b5c5b827dcc2f6d8734cb6d3b54eec2a86ef474d45c1e90e4d602e3af144c9cac6888c4b83 SHA512 10175774e69632fb190d29d1d169ea4038f4b62616ff794b4749de6349ef7b79b8a4b463228c390e811dfee8310ec3d75f6a53fb68819ceed2f7d1004519861f EBUILD stripe-2.3.0.ebuild 479 BLAKE2B 0a1155421b89d9d7eb79cf4f333baddeafaec7579e88bc93bcfab35534d93349e7da668ca853ede5503f6a8cb98a9293ad627d05c1a08fdb3fc713c6094b6ece SHA512 3cfa8db2ae000abd78507e061a5702eef829218571142a7e6b2d9decb146d9c5b7efdf768dd7e7e97834d9bf982c069689a32d199b17745d1aa2c5deaac43f1b +EBUILD stripe-2.34.0.ebuild 2150 BLAKE2B e735de1f435d4f6740d222ead1e766128eb201a608b5c9ba29c75ed0d4328608749dce7f7c31cc813fb58c2e6c0aa97e2b219cc5ad9388db00606eea2247e825 SHA512 b791ef1a8d8e34e552ec5dfd50178883799f42d936273f980eb5e2c3aec4914dc80cd11ce90d8173ff0a6774c80abd1f7d7b755fe382ffb34c7439e6e261ddf2 MISC metadata.xml 539 BLAKE2B 9232265d094774d1f04cba8e358a9655034184c10561bb8db4f8188381fdf7583971f67d5418f2969ad4a12db46a94b4c87c3eb9486eb0ac251fad9bb68f7707 SHA512 f0052ba8457139d76ddce67313bc973564237b409801d3d6da181c495c2d80184076cbe36468850a1ddcd60de50327e728fc3433a8a4bfe9608713a33fdbe9c1 diff --git a/dev-python/stripe/stripe-2.34.0.ebuild b/dev-python/stripe/stripe-2.34.0.ebuild new file mode 100644 index 000000000000..6c3d8ebe9fbd --- /dev/null +++ b/dev-python/stripe/stripe-2.34.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy{,3} ) +inherit distutils-r1 + +DESCRIPTION="Stripe python bindings" +HOMEPAGE="https://github.com/stripe/stripe-python" +SRC_URI="mirror://pypi/s/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND=" + $(python_gen_cond_dep '>=dev-python/requests-2.20[${PYTHON_USEDEP}]' 'python3*' pypy3) + $(python_gen_cond_dep '>=dev-python/requests-2.20[ssl,${PYTHON_USEDEP}]' 'python2*' pypy) +" +# See https://github.com/stripe/stripe-python/blob/v2.10.1/tests/conftest.py#L17 +# for minimum required version of stripe-mock +# Running the tests against dev-util/stripe-mock-0.47.0 resulted in test errors +DEPEND="${RDEPEND} + test? ( + >=dev-util/stripe-mock-0.63.0 + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + net-misc/curl + ) +" + +DOCS=(LONG_DESCRIPTION.rst CHANGELOG.md README.md) + +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 + + distutils-r1_src_test + + # Tear down stripe-mock + kill "${stripe_mock_pid}" || die "Unable to stop stripe-mock" +} + +python_test() { + STRIPE_MOCK_PORT=${stripe_mock_port} pytest -vv || die "Tests failed with ${EPYTHON}" +} |