From 623ee73d661e5ed8475cb264511f683407d87365 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 12 Apr 2020 03:41:30 +0100 Subject: gentoo Easter resync : 12.04.2020 --- dev-python/stripe/Manifest | 6 +-- dev-python/stripe/metadata.xml | 3 -- dev-python/stripe/stripe-2.42.0.ebuild | 70 ---------------------------------- dev-python/stripe/stripe-2.43.0.ebuild | 69 +++++++++++++++++++++++++++++++++ 4 files changed, 72 insertions(+), 76 deletions(-) delete mode 100644 dev-python/stripe/stripe-2.42.0.ebuild create mode 100644 dev-python/stripe/stripe-2.43.0.ebuild (limited to 'dev-python/stripe') diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest index 1995db0fe2be..2df22c00e71b 100644 --- a/dev-python/stripe/Manifest +++ b/dev-python/stripe/Manifest @@ -1,3 +1,3 @@ -DIST stripe-2.42.0.tar.gz 217456 BLAKE2B 0bd0b31ab1a9a004932ea20b20d7965c05aee12c26d9a6f41af16179fd4c73f9ea08140a157a6ce502a2fb0668de6ac75da869cabf22011977d9912661e85d05 SHA512 acffae91f19c943efe5f4a19f34ff35f8ef0b538e6cf83be6c4820020ad062f7e19365a8edfc048bc24306690dc50b66856526202f5c8830a85a86405f31db50 -EBUILD stripe-2.42.0.ebuild 2162 BLAKE2B 66bd4156b137caf6ec030d45210a6d3ed7ae27d8922187e5182bc0b698e0b57a7d5914d40139666e40c4dcf72d35748edce7df2f6f0b98c66055ca3a9c01cb70 SHA512 580f63b7580574156c5cee656d9a9e3cb7f2ca148040b2b84fde708240497e752d2d21a8764e9dec31e13a3410e40dd68b5a681f8260f052f2fc627c66e2e9a1 -MISC metadata.xml 539 BLAKE2B 9232265d094774d1f04cba8e358a9655034184c10561bb8db4f8188381fdf7583971f67d5418f2969ad4a12db46a94b4c87c3eb9486eb0ac251fad9bb68f7707 SHA512 f0052ba8457139d76ddce67313bc973564237b409801d3d6da181c495c2d80184076cbe36468850a1ddcd60de50327e728fc3433a8a4bfe9608713a33fdbe9c1 +DIST stripe-2.43.0.tar.gz 211400 BLAKE2B 135371f793af291e1c43179bcb325a9eb84c3258d9013009f920077fbc783569b6384fa76dcf464aa9fdbe64a4a297d6c232f3719729a81e1d62c74b769ff5f7 SHA512 a91f4f268b5c533cdd378c3169cf6e29b11b3b79492cd8b01b21970459383d63fa726fb206aba111ef8e57c2b98eecd6ba3ef9fdb868efc2db69f0cba8f74554 +EBUILD stripe-2.43.0.ebuild 2031 BLAKE2B 6aeee5ba7ff20316def9c4f9640950dc827c4695c5b3ab953a2441084d93518c0759c36c26c3407221953bd8f3456782223f791a7795e7cf5d56d94cbec665cf SHA512 c38fb5ec5c50119418a3cdffbd6a2c3b7dbbbe0d9fc35c876acd20681dfb5ec22d04d7f7109c192f21791620ee089099a93a98882d9cf4578968d1f0c3fc44af +MISC metadata.xml 452 BLAKE2B 5be38e3d7907a96732d8e49e636c5e150de12a80f82f8a569969ab0894507398aaa2fd633b767a263db379688360a6805bc68b223f101a817c2dad94546d35c6 SHA512 b289dc8bcabfcffa651ae325a37621c952d86c15f0d1ebcf03ac76e4da577973d57ff211ee3773c95f8ec9c354b391185b825f3f93f03f7c6805eab84b1f5155 diff --git a/dev-python/stripe/metadata.xml b/dev-python/stripe/metadata.xml index 00a5d2222be1..3beef99b5ce0 100644 --- a/dev-python/stripe/metadata.xml +++ b/dev-python/stripe/metadata.xml @@ -8,9 +8,6 @@ cedk@gentoo.org Cédric Krier - - Official Stripe Bindings for Python - stripe stripe/stripe-python diff --git a/dev-python/stripe/stripe-2.42.0.ebuild b/dev-python/stripe/stripe-2.42.0.ebuild deleted file mode 100644 index ded5b96b201e..000000000000 --- a/dev-python/stripe/stripe-2.42.0.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7} pypy3 ) -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" -RESTRICT="!test? ( 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.76.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}" -} diff --git a/dev-python/stripe/stripe-2.43.0.ebuild b/dev-python/stripe/stripe-2.43.0.ebuild new file mode 100644 index 000000000000..cbea6b6de027 --- /dev/null +++ b/dev-python/stripe/stripe-2.43.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) +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" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/requests-2.20[${PYTHON_USEDEP}] +" +# 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.76.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}" +} -- cgit v1.2.3