From 67ff4e881df5f5a1482662d6aba4680f82d12197 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 22 Sep 2023 05:16:15 +0100 Subject: gentoo auto-resync : 22:09:2023 - 05:16:14 --- dev-python/stripe/Manifest | 2 + dev-python/stripe/stripe-6.6.0.ebuild | 72 +++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 dev-python/stripe/stripe-6.6.0.ebuild (limited to 'dev-python/stripe') diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest index ab48322374ab..43250f25f5ba 100644 --- a/dev-python/stripe/Manifest +++ b/dev-python/stripe/Manifest @@ -1,5 +1,7 @@ DIST stripe-6.3.0.tar.gz 276422 BLAKE2B 2fa438593bdec94f5c8306ee180921c2920e8995036d3ec53794dcba89f4f97c257bfe13561d1fd993c49247d0423ca4d7f4e994c1b4b8386ebaddf47f9063de SHA512 900a85bd8a44404dcc8ed4e057db64087b7a6f05d8e01183c22fc5dd7da815298e23b386d2d41dee6ea3925e92653858cc945e163757870fe04c543def017424 DIST stripe-6.5.0.tar.gz 290534 BLAKE2B 40672358ae9b962f14cb3dad669e7857bf52981b1801325f92193b2cd42e42a7ad14dcd25272ec36589c103c28b10c8eaae0fe6175eb10b00a6a0f278dee5312 SHA512 920bb7e0a0e1cbd4b5e085928f28c12ab793bfc1e1aa29aa58f4cbf11f1bfdfeadac84d2be1fc9e14e70ce9a2f9e4900112cf982b6bab220e1cc09569d7db2f4 +DIST stripe-6.6.0.tar.gz 291636 BLAKE2B 33a565de61e2a371d2ad0cf523385b113e3164a4c972ba77383ba7dbc77aea9d755cc74f3ed15e5abb6f6d2f4c51f4c5859107c74950ca2831e092b4cf3fcc9e SHA512 327df0a8758c96b06f9d0bfd1da5450f328a55becabbae6c04960d4ad2abbac4a71d6c06cfe34c05bf2e87a2d330a9dbb303098165befa797a88d07d18be24c1 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 MISC metadata.xml 372 BLAKE2B e6a38fdec6fc016068e7a0522ba15e83bf358ba1475e54a9630b1e86c75bc14b790c59716317bd81438a1c770e4d31afbe04400ddcd5dd272715c251fd6cb1a2 SHA512 2d9672b242f2d38654f7906097e597dfbdf75afa3583ea331f61772db95d19a802e83ed523c67a6cf3da18411036055c0996fd04d99199618d5205be8a61bd77 diff --git a/dev-python/stripe/stripe-6.6.0.ebuild b/dev-python/stripe/stripe-6.6.0.ebuild new file mode 100644 index 000000000000..07022a54f45e --- /dev/null +++ b/dev-python/stripe/stripe-6.6.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.175.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