diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-10-17 10:00:35 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-10-17 10:00:35 +0100 |
commit | cf89ca044e37f79e2329552cda857215f9824e11 (patch) | |
tree | a6720b1db82c94482ed8a998aa77650c5f723358 /dev-python/stripe | |
parent | cb627578a344c874750e23e7eb59b1acc85aa639 (diff) |
gentoo auto-resync : 17:10:2023 - 10:00:35
Diffstat (limited to 'dev-python/stripe')
-rw-r--r-- | dev-python/stripe/Manifest | 2 | ||||
-rw-r--r-- | dev-python/stripe/stripe-7.0.0.ebuild | 72 |
2 files changed, 74 insertions, 0 deletions
diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest index 6d2cef764a10..2f4d080df20b 100644 --- a/dev-python/stripe/Manifest +++ b/dev-python/stripe/Manifest @@ -2,8 +2,10 @@ DIST stripe-6.3.0.tar.gz 276422 BLAKE2B 2fa438593bdec94f5c8306ee180921c2920e8995 DIST stripe-6.5.0.tar.gz 290534 BLAKE2B 40672358ae9b962f14cb3dad669e7857bf52981b1801325f92193b2cd42e42a7ad14dcd25272ec36589c103c28b10c8eaae0fe6175eb10b00a6a0f278dee5312 SHA512 920bb7e0a0e1cbd4b5e085928f28c12ab793bfc1e1aa29aa58f4cbf11f1bfdfeadac84d2be1fc9e14e70ce9a2f9e4900112cf982b6bab220e1cc09569d7db2f4 DIST stripe-6.6.0.tar.gz 291636 BLAKE2B 33a565de61e2a371d2ad0cf523385b113e3164a4c972ba77383ba7dbc77aea9d755cc74f3ed15e5abb6f6d2f4c51f4c5859107c74950ca2831e092b4cf3fcc9e SHA512 327df0a8758c96b06f9d0bfd1da5450f328a55becabbae6c04960d4ad2abbac4a71d6c06cfe34c05bf2e87a2d330a9dbb303098165befa797a88d07d18be24c1 DIST stripe-6.7.0.tar.gz 293207 BLAKE2B 5c07b6f04aa72045cccb4422b1f163cf6351f100d2245a4f93952d641ed8e4735c964b850179906bc7af13730724f596cd2cfa85c3d8fb8792f6a4e561337b0a SHA512 778c3ffa177e52b62bf4821b2f0aaa5eef01d8690526c42015d192bb06332a2a5fd143c8dab82497803adcfed963b7ccf06dc77908b21a7a7c77f9ef39b39c12 +DIST stripe-7.0.0.tar.gz 378521 BLAKE2B a53248162b44776f0c457064c3d2d99e7f6ec8561d1a88ee7bec655d20ff9dada3c92d7d764b3775950902a908f1d9d82c0002483cd168646f1cbde19640ca92 SHA512 154a772880522e5567907c3c9c6024f18ee1e81b4e192f30dbe8ea4b0fa3d1cf4b04d9de7ab9f0911e2a3d9c5f65207fd4d499b4e5ea3c606c738506d2eb15d5 EBUILD stripe-6.3.0.ebuild 1911 BLAKE2B 21988e0e69306b15d497cedf794d8d37c28ee2c3d019b0ee4193d56a3996b23790642f39cf055a2aec6bb81fb3d88b1ac023bff4450ccbfb288f0e24fbef3486 SHA512 51cc23575b93f95df2afbbefe76e9728f8817b6fd3484db79a1d37809028385ebbcd81be317f23628f661399d3a517624b41198c477ce8c439dec7b5953a37d3 EBUILD stripe-6.5.0.ebuild 1913 BLAKE2B 753b4000d61d14cf30351a941ab4e50fa7c5dffabf9de669e7f41626ff0dcbcb2fe79ab8c4ca9559bf2b6bcab23b34c022cb2b7580b85a02d02faf32fdaac6f9 SHA512 3a49f5049167286f94804f4747cc8c0199f475f9af50ce8a779962d23aa5a85ea93c013410299a04d1acd199b6a53daa5a59d500f7470e5c75e2b83e37a051c7 EBUILD stripe-6.6.0.ebuild 1913 BLAKE2B 753b4000d61d14cf30351a941ab4e50fa7c5dffabf9de669e7f41626ff0dcbcb2fe79ab8c4ca9559bf2b6bcab23b34c022cb2b7580b85a02d02faf32fdaac6f9 SHA512 3a49f5049167286f94804f4747cc8c0199f475f9af50ce8a779962d23aa5a85ea93c013410299a04d1acd199b6a53daa5a59d500f7470e5c75e2b83e37a051c7 EBUILD stripe-6.7.0.ebuild 1913 BLAKE2B 753b4000d61d14cf30351a941ab4e50fa7c5dffabf9de669e7f41626ff0dcbcb2fe79ab8c4ca9559bf2b6bcab23b34c022cb2b7580b85a02d02faf32fdaac6f9 SHA512 3a49f5049167286f94804f4747cc8c0199f475f9af50ce8a779962d23aa5a85ea93c013410299a04d1acd199b6a53daa5a59d500f7470e5c75e2b83e37a051c7 +EBUILD stripe-7.0.0.ebuild 1913 BLAKE2B 5a4402b2ab462b8e692b5a6f3857a19c465f5c34b95786c9279549f5d03ba054c70e33e986fbda77fb45a881a9dfa4076095ffb88cfe47dbfda802df7a2422e9 SHA512 d4c0e62f3a101c2fe2db9ddbdaab2f00f6052db2690e4d8c893b166296bfa1efc0e8afe5f125816d37eead4bbab183c602e48821710287b411c4d6df81d35eb2 MISC metadata.xml 372 BLAKE2B e6a38fdec6fc016068e7a0522ba15e83bf358ba1475e54a9630b1e86c75bc14b790c59716317bd81438a1c770e4d31afbe04400ddcd5dd272715c251fd6cb1a2 SHA512 2d9672b242f2d38654f7906097e597dfbdf75afa3583ea331f61772db95d19a802e83ed523c67a6cf3da18411036055c0996fd04d99199618d5205be8a61bd77 diff --git a/dev-python/stripe/stripe-7.0.0.ebuild b/dev-python/stripe/stripe-7.0.0.ebuild new file mode 100644 index 000000000000..f91c6f71034b --- /dev/null +++ b/dev-python/stripe/stripe-7.0.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.177.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" +} |