From 752d6256e5204b958b0ef7905675a940b5e9172f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 12 May 2022 16:42:50 +0300 Subject: gentoo resync : 12.05.2022 --- dev-python/stripe/Manifest | 18 ++++----- dev-python/stripe/stripe-2.66.0.ebuild | 62 ----------------------------- dev-python/stripe/stripe-2.67.0.ebuild | 62 ----------------------------- dev-python/stripe/stripe-2.70.0.ebuild | 68 -------------------------------- dev-python/stripe/stripe-2.71.0.ebuild | 68 -------------------------------- dev-python/stripe/stripe-2.72.0.ebuild | 68 -------------------------------- dev-python/stripe/stripe-2.74.0.ebuild | 71 ++++++++++++++++++++++++++++++++++ dev-python/stripe/stripe-2.75.0.ebuild | 71 ++++++++++++++++++++++++++++++++++ dev-python/stripe/stripe-2.76.0.ebuild | 71 ++++++++++++++++++++++++++++++++++ dev-python/stripe/stripe-3.0.0.ebuild | 71 ++++++++++++++++++++++++++++++++++ 10 files changed, 292 insertions(+), 338 deletions(-) delete mode 100644 dev-python/stripe/stripe-2.66.0.ebuild delete mode 100644 dev-python/stripe/stripe-2.67.0.ebuild delete mode 100644 dev-python/stripe/stripe-2.70.0.ebuild delete mode 100644 dev-python/stripe/stripe-2.71.0.ebuild delete mode 100644 dev-python/stripe/stripe-2.72.0.ebuild create mode 100644 dev-python/stripe/stripe-2.74.0.ebuild create mode 100644 dev-python/stripe/stripe-2.75.0.ebuild create mode 100644 dev-python/stripe/stripe-2.76.0.ebuild create mode 100644 dev-python/stripe/stripe-3.0.0.ebuild (limited to 'dev-python/stripe') diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest index b56effdd1cbe..5a2b86c8bf39 100644 --- a/dev-python/stripe/Manifest +++ b/dev-python/stripe/Manifest @@ -1,11 +1,9 @@ -DIST stripe-2.66.0.tar.gz 234929 BLAKE2B 289c3464c3aa9ef5ebeccaffde383271ca23e704303d5b5499d1f5f1f197483088781d16878749bca03c8ea56209a22173c376ef00510f53d81c733f0a626af8 SHA512 d716e82580757ec0b187a74de1f8ef7bbe2f32468f13c551886bcbadf631eef001df9f4d249f091856b009545ca8b6d60f16c07e79345fee33651e7d27fb31c0 -DIST stripe-2.67.0.tar.gz 235426 BLAKE2B ee396b0b7d3991afdd81e6b051fad0168a7b3dcfaddccc7700292878fc437788dcc40480fea2131dd52e3b787dc6e7b420d6023079f55d9365f76076cc51070d SHA512 099208259c6ca8d69fd6f39f72b9f12f41eace2f0a2a08b017f6141ad06882df742749941326fb8d9898db7c59e32ed74a464ad372d6f7f0a929c9ae4e4d2475 -DIST stripe-2.70.0.tar.gz 239653 BLAKE2B d59d7b452e91169e83e4d4bc10b544fc94c48aa3a967c899136b1b9ea60e835d998c1a5a0c5e131989d9628c36b77e3fe133952dddbede69d0bcfa11dc9fc640 SHA512 62f40d82e4a5d37ce070a2457b8372d903993e209f6a042ab97a93f5ee98eb994c0cac070451e2b130df9a72f4a9ece65600266735b438aff3cc5cf09e217b27 -DIST stripe-2.71.0.tar.gz 239817 BLAKE2B c1b8fad45e7e9fee79f841502aaad1a849f345357d2facfab833bc50129c5d9eac6c2af128ef572f9d295da966b8a38b095786b44bf026eac6f6d001470ae60a SHA512 5acbaba1e2a5e063beafd0b67994a4a4c7d207f220a49e84b7ab3c0288a92150fd10048f7782e32c3033f4a920f5e81a0893610545e5d1f49ee6dbe62aa4b3a5 -DIST stripe-2.72.0.tar.gz 239987 BLAKE2B 8eb1ea8446cb106c75b0a005478ae28c893338ecc0bb2d0017ad7e9a775108ed0eac1d3e05a5038330b89a47ffc311d4d0367df63c9d0ce01552afd7e4f3e82e SHA512 b9f98ce94002cbebdad5e2b7dc90b4f4d1b4c637db7509881a346c772f90d2154a49109aee15f650559ed8c253e82f466a5a4b6409efc8e00442c80195e1a3a8 -EBUILD stripe-2.66.0.ebuild 1741 BLAKE2B ce808e22b32aa90b2b443b6ae2f260de4838b9301bf8c5207e40030f52f7ce1d5cc6de83c0eeafa8dd946c611af50e8daf13883f6a7946678cedbbb9af30bf44 SHA512 b5f11d966b8537860176b4407909def3e7a4e07fa885308966e350b3cb88c8414ecc0792a61e727d348ef75e98b35ecf50ed338c738ac8c7ec08836b224a4ff8 -EBUILD stripe-2.67.0.ebuild 1743 BLAKE2B ce960764e254ee10db75b8f17b5a43886e22ababa16e31b7a1b19a1c8b897168e0aab74df63db394eb4d3be666639fa1fc91d0178566575401e25d7b2f150688 SHA512 384a3d9ffcd3b3c2e3c832181a3a998aa5f6d3058028a4dc7b161ca2994309975458fb6c51190d7b7686e65ddaadbe21d2fd273f35a60f8cf8c0126b03e4112f -EBUILD stripe-2.70.0.ebuild 1780 BLAKE2B d186d93808b240a9318f12557c6ff7278e1f3ff48b166ad1485acb9aac1e4fd386a28b3266f78319fc3ffd23ff0202c6161b89306eb1f806d5e7ba2125af3ccf SHA512 9289b51079bfe0af4bf6f30c15bdabbea2fcf9dd7f4d9d128b1a1be80fef2913810f24f62b7a6bf7f735b27f2ecad88493a276b6f141b63f0fc8eaf9c3fbaaca -EBUILD stripe-2.71.0.ebuild 1780 BLAKE2B d186d93808b240a9318f12557c6ff7278e1f3ff48b166ad1485acb9aac1e4fd386a28b3266f78319fc3ffd23ff0202c6161b89306eb1f806d5e7ba2125af3ccf SHA512 9289b51079bfe0af4bf6f30c15bdabbea2fcf9dd7f4d9d128b1a1be80fef2913810f24f62b7a6bf7f735b27f2ecad88493a276b6f141b63f0fc8eaf9c3fbaaca -EBUILD stripe-2.72.0.ebuild 1780 BLAKE2B d186d93808b240a9318f12557c6ff7278e1f3ff48b166ad1485acb9aac1e4fd386a28b3266f78319fc3ffd23ff0202c6161b89306eb1f806d5e7ba2125af3ccf SHA512 9289b51079bfe0af4bf6f30c15bdabbea2fcf9dd7f4d9d128b1a1be80fef2913810f24f62b7a6bf7f735b27f2ecad88493a276b6f141b63f0fc8eaf9c3fbaaca +DIST stripe-2.74.0.tar.gz 240731 BLAKE2B 68d80f0dab200087f454c98bfabf483ce7b6db06061d5dce81bc258e0425576b54a5e9c6a9134d59064ae978db4bdda407f12eaa8ac48b51a87722473732a8b9 SHA512 f7f549e5b5eec38248320f7852f0c5fa3476f3d68aab646f04f207e0d6be20cb54ed13e4093d40313502c9aed7b60392c20c1baded4bb845703647d8c022342b +DIST stripe-2.75.0.tar.gz 240179 BLAKE2B db5c94bc21a584ab5241ebf639a7e78f8de56f46e9460dd00cecb8907fac701f4edae8adbdad249eb98921a3dc81ce670ad846784d7c5743b02eb28ee2f1c034 SHA512 e4ddc675cffa6b1fa087c8d68c9717f55b59016a22605d539a2c9f4d6b5746e166e7efb38d5a001b5c00d32678b3b263fce9a27537b6a3edcdd8c6f2a60eb5a5 +DIST stripe-2.76.0.tar.gz 240679 BLAKE2B 983761ab25f2a5b0206e4c2261cfd42a07e4e9d0e76f655e06f2cfb0fb41fc18787a04e8c2652632b6060b573a2ca5969fb629fd23e631b951da6b72728e86c9 SHA512 e416043dff74791d3f06809ed611ea1e250b9dae9404092915a674c6fe65eba546eb020cfdb7635fde8d0626e2c1fa4176cec7362870fc02bee619216b58cec2 +DIST stripe-3.0.0.tar.gz 240569 BLAKE2B 82e4d7ae131af395922f0af33344b74e374380e935362c5a25f116be136ff85316b5f4f2a092b5e03c1041addfc5562bb248ac4ab89efd6fb5f5fdc9728637f5 SHA512 2d0adbd3fe3c79317305153597d4302fed657876701aef332151d10b2370405373c9aaeee696ffac4ca8925d02391215523b95ca62bc67f801ad52da5b125c9a +EBUILD stripe-2.74.0.ebuild 1816 BLAKE2B ed3eb878b027385d4164c94aa4c12df2880819ff377665abde98479148e22929222e1ab59321353e9a3db297fb2e4e324f06db7eebe847aa39f05aa2dae4f509 SHA512 884b6f086f3c8d299ca0a0f7edbdb1409a52d927e45f6696c1b87d30ac531f0b639620b8f50dcd6b2adfee00a27883cc95adb9a0645c9cee28968287c25184d0 +EBUILD stripe-2.75.0.ebuild 1818 BLAKE2B 1b23ee02c2182954c19d58dd68a2a439f2351b6cc51d23976aa4256f7dd0e089579bcf76847312a7ea4d1080f5ca7311fe158ad1e67c2361cd2c2bc75d237b20 SHA512 1586f2b6c9e276938a210d55cf11b493faf64e5c68a5e44aae0726d591bdf527c2aad7a9ac315a8a7d201164cc532e5c4145e701a354faf45d182a2be52622f8 +EBUILD stripe-2.76.0.ebuild 1818 BLAKE2B 1b23ee02c2182954c19d58dd68a2a439f2351b6cc51d23976aa4256f7dd0e089579bcf76847312a7ea4d1080f5ca7311fe158ad1e67c2361cd2c2bc75d237b20 SHA512 1586f2b6c9e276938a210d55cf11b493faf64e5c68a5e44aae0726d591bdf527c2aad7a9ac315a8a7d201164cc532e5c4145e701a354faf45d182a2be52622f8 +EBUILD stripe-3.0.0.ebuild 1818 BLAKE2B fe5da6a4a03b66a53e7f9d02add25e9bf12e9f5f90b401f381f7ce95016764d272ea8fcf8d0dc4683806b7850e7727964458909c8ce2fc2ae79f4f8feb3b48cf SHA512 5ec53dc90a6c5165413ad4d0c91ab30a2782afc17742955efc12fa93af88f0ad6c3081847d045c589734fe32f788a77f2b361961067f29f252d9939ab470b3dd MISC metadata.xml 372 BLAKE2B e6a38fdec6fc016068e7a0522ba15e83bf358ba1475e54a9630b1e86c75bc14b790c59716317bd81438a1c770e4d31afbe04400ddcd5dd272715c251fd6cb1a2 SHA512 2d9672b242f2d38654f7906097e597dfbdf75afa3583ea331f61772db95d19a802e83ed523c67a6cf3da18411036055c0996fd04d99199618d5205be8a61bd77 diff --git a/dev-python/stripe/stripe-2.66.0.ebuild b/dev-python/stripe/stripe-2.66.0.ebuild deleted file mode 100644 index f55259fe60b4..000000000000 --- a/dev-python/stripe/stripe-2.66.0.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} 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" - -RDEPEND=">=dev-python/requests-2.20[${PYTHON_USEDEP}]" -BDEPEND=" - test? ( - >=dev-util/stripe-mock-0.118.0 - dev-python/pytest-mock[${PYTHON_USEDEP}] - net-misc/curl - ) -" - -distutils_enable_tests pytest - -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 - - 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-2.67.0.ebuild b/dev-python/stripe/stripe-2.67.0.ebuild deleted file mode 100644 index 9404b589fe32..000000000000 --- a/dev-python/stripe/stripe-2.67.0.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} 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" - -RDEPEND=">=dev-python/requests-2.20[${PYTHON_USEDEP}]" -BDEPEND=" - test? ( - >=dev-util/stripe-mock-0.119.0 - dev-python/pytest-mock[${PYTHON_USEDEP}] - net-misc/curl - ) -" - -distutils_enable_tests pytest - -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 - - 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-2.70.0.ebuild b/dev-python/stripe/stripe-2.70.0.ebuild deleted file mode 100644 index b88af4c76c63..000000000000 --- a/dev-python/stripe/stripe-2.70.0.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} 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" - -RDEPEND=" - >=dev-python/requests-2.20[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - >=dev-util/stripe-mock-0.122.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" -} diff --git a/dev-python/stripe/stripe-2.71.0.ebuild b/dev-python/stripe/stripe-2.71.0.ebuild deleted file mode 100644 index b88af4c76c63..000000000000 --- a/dev-python/stripe/stripe-2.71.0.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} 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" - -RDEPEND=" - >=dev-python/requests-2.20[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - >=dev-util/stripe-mock-0.122.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" -} diff --git a/dev-python/stripe/stripe-2.72.0.ebuild b/dev-python/stripe/stripe-2.72.0.ebuild deleted file mode 100644 index b88af4c76c63..000000000000 --- a/dev-python/stripe/stripe-2.72.0.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} 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" - -RDEPEND=" - >=dev-python/requests-2.20[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - >=dev-util/stripe-mock-0.122.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" -} diff --git a/dev-python/stripe/stripe-2.74.0.ebuild b/dev-python/stripe/stripe-2.74.0.ebuild new file mode 100644 index 000000000000..e8f6184959c9 --- /dev/null +++ b/dev-python/stripe/stripe-2.74.0.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Stripe python bindings" +HOMEPAGE=" + https://github.com/stripe/stripe-python/ + https://pypi.org/project/stripe/ +" +SRC_URI="mirror://pypi/s/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" + +RDEPEND=" + >=dev-python/requests-2.20[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-util/stripe-mock-0.124.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" +} diff --git a/dev-python/stripe/stripe-2.75.0.ebuild b/dev-python/stripe/stripe-2.75.0.ebuild new file mode 100644 index 000000000000..a0b230f30493 --- /dev/null +++ b/dev-python/stripe/stripe-2.75.0.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Stripe python bindings" +HOMEPAGE=" + https://github.com/stripe/stripe-python/ + https://pypi.org/project/stripe/ +" +SRC_URI="mirror://pypi/s/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/requests-2.20[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-util/stripe-mock-0.124.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" +} diff --git a/dev-python/stripe/stripe-2.76.0.ebuild b/dev-python/stripe/stripe-2.76.0.ebuild new file mode 100644 index 000000000000..a0b230f30493 --- /dev/null +++ b/dev-python/stripe/stripe-2.76.0.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Stripe python bindings" +HOMEPAGE=" + https://github.com/stripe/stripe-python/ + https://pypi.org/project/stripe/ +" +SRC_URI="mirror://pypi/s/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/requests-2.20[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-util/stripe-mock-0.124.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" +} diff --git a/dev-python/stripe/stripe-3.0.0.ebuild b/dev-python/stripe/stripe-3.0.0.ebuild new file mode 100644 index 000000000000..760cfebe22d1 --- /dev/null +++ b/dev-python/stripe/stripe-3.0.0.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Stripe python bindings" +HOMEPAGE=" + https://github.com/stripe/stripe-python/ + https://pypi.org/project/stripe/ +" +SRC_URI="mirror://pypi/s/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/requests-2.20[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + >=dev-util/stripe-mock-0.126.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" +} -- cgit v1.2.3