diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-12-09 11:11:11 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-12-09 11:11:11 +0000 |
commit | 90a73bb153519a9eac2a23eb9029b99b759e7892 (patch) | |
tree | 6d01f49a1e594c9324241c03aac67a635f828834 /dev-python/stripe | |
parent | f6f5cf314dddfbfe0f8c848dc9e07436b032562c (diff) |
gentoo auto-resync : 09:12:2023 - 11:11:11
Diffstat (limited to 'dev-python/stripe')
-rw-r--r-- | dev-python/stripe/Manifest | 2 | ||||
-rw-r--r-- | dev-python/stripe/stripe-7.8.1.ebuild | 73 |
2 files changed, 75 insertions, 0 deletions
diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest index f58251b7eb5b..78b2757d7e6d 100644 --- a/dev-python/stripe/Manifest +++ b/dev-python/stripe/Manifest @@ -2,8 +2,10 @@ DIST stripe-7.4.0.tar.gz 743353 BLAKE2B 30246bf8c5c922fe1ab906757fef064d4f6eea69 DIST stripe-7.6.0.tar.gz 743504 BLAKE2B 32b82cd34241f00c259edc3e0d46d25337cd2490e6c3f4fb9d90d13e785f5e844fbaf66b224a7ae2ac7643d80b90eb36fde465ffdae058ded7741cb53dca5ec6 SHA512 5383ee5bc7e128840f9a1a738eca3bd6ce4a98df554243308d3b6fc667b519b996fc63d34c29abfc4f2f9082e8062aaf9aacdb3edb70e4ef2a6556228926daa2 DIST stripe-7.7.0.tar.gz 747906 BLAKE2B 40d6f4cdbefef54df8aa84529c879f9cfe3b36fafb35cdc12e98513ae63e3fc41a38174def79adf2e891445502771437489f73010b206a005a02883ef51400fd SHA512 988bf67fce52c5b48e8a7d0d6dac408fd5bc1bd3cbd0d80b06ab5b7b8c44a5daa231c6f3f5e563cea2a717cbec56ae4a83eac9526a463074ff3d1d2cb68a6b92 DIST stripe-7.8.0.tar.gz 768444 BLAKE2B 8262f097cfac300db6f12ef9781b28b4841bed7f23f1fa72e4c147702008e3f44b50f8bdcbaa5144607f95fac8db519536d996d0dd1457233f11e4e2b705eb78 SHA512 969ce4b59e5a16735c556132c9f5bb9c134cc32fd385d69e52495ae20e0367f0acb5f24f3e1c025c851aa119ce5f2490f06fa320bfcd5712ae4609cbb6b22256 +DIST stripe-7.8.1.tar.gz 768885 BLAKE2B 4e38fec0751fe7314e42303230d602b5f16daa40d833c749c29fa68cdd954cb604a2a0bcc7527253852499920ab5981629ca325d739fc56330bac4ab31b2bbd4 SHA512 cbee9cc0133fa18efa6582da032685fa44cd0446a2d032015410ca60a68ae5ce4a6dc5f82cedb24b1acc09a3c638e0f59f85e72798ee55603039b6fad27fe98e EBUILD stripe-7.4.0.ebuild 1969 BLAKE2B 2051889d37342fcde47305b9055be88780e30ca41e504d6c4e1c67302706f8663fbb448b442b0b6fff77a4aff8047a904860d2dd4d7689bf76ebe2071997e659 SHA512 3ba3363d9b44c66cf9ebec472b76885da3e4d7b55a6227e6d54e7dc564fe5b5702d3884fb860bbcdcdfee1f11f427c1ca21480b7ebcf7d79d09d0adb1f3d8e83 EBUILD stripe-7.6.0.ebuild 1978 BLAKE2B fbb8f1492756a0cff2a7316251f71dd916bb5d3b2d29a42920203c03e804e3eef7b75520f0bc16ccef0850ff8ac945388ae37d5c61249f28f4f85dbfe4d209b3 SHA512 0899159eabcb564071564f777ff8e73aca77bed42e544c17362c63e814ffe899227a8ea42d36820a025c26d07e1845973a51847b1e636034d964417b2145b16e EBUILD stripe-7.7.0.ebuild 1978 BLAKE2B fbb8f1492756a0cff2a7316251f71dd916bb5d3b2d29a42920203c03e804e3eef7b75520f0bc16ccef0850ff8ac945388ae37d5c61249f28f4f85dbfe4d209b3 SHA512 0899159eabcb564071564f777ff8e73aca77bed42e544c17362c63e814ffe899227a8ea42d36820a025c26d07e1845973a51847b1e636034d964417b2145b16e EBUILD stripe-7.8.0.ebuild 1978 BLAKE2B fbb8f1492756a0cff2a7316251f71dd916bb5d3b2d29a42920203c03e804e3eef7b75520f0bc16ccef0850ff8ac945388ae37d5c61249f28f4f85dbfe4d209b3 SHA512 0899159eabcb564071564f777ff8e73aca77bed42e544c17362c63e814ffe899227a8ea42d36820a025c26d07e1845973a51847b1e636034d964417b2145b16e +EBUILD stripe-7.8.1.ebuild 1978 BLAKE2B fbb8f1492756a0cff2a7316251f71dd916bb5d3b2d29a42920203c03e804e3eef7b75520f0bc16ccef0850ff8ac945388ae37d5c61249f28f4f85dbfe4d209b3 SHA512 0899159eabcb564071564f777ff8e73aca77bed42e544c17362c63e814ffe899227a8ea42d36820a025c26d07e1845973a51847b1e636034d964417b2145b16e MISC metadata.xml 372 BLAKE2B e6a38fdec6fc016068e7a0522ba15e83bf358ba1475e54a9630b1e86c75bc14b790c59716317bd81438a1c770e4d31afbe04400ddcd5dd272715c251fd6cb1a2 SHA512 2d9672b242f2d38654f7906097e597dfbdf75afa3583ea331f61772db95d19a802e83ed523c67a6cf3da18411036055c0996fd04d99199618d5205be8a61bd77 diff --git a/dev-python/stripe/stripe-7.8.1.ebuild b/dev-python/stripe/stripe-7.8.1.ebuild new file mode 100644 index 000000000000..a5deb252c18b --- /dev/null +++ b/dev-python/stripe/stripe-7.8.1.ebuild @@ -0,0 +1,73 @@ +# 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 ~arm64 ~x86" + +RDEPEND=" + >=dev-python/requests-2.20[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4.5.0[${PYTHON_USEDEP}] +" +# please bump dev-util/stripe-mock dep to the latest version on every bump +BDEPEND=" + test? ( + >=dev-util/stripe-mock-0.178.0 + dev-python/pytest-mock[${PYTHON_USEDEP}] + net-misc/curl + ) +" + +distutils_enable_tests pytest + +DOCS=( LONG_DESCRIPTION.rst CHANGELOG.md README.md ) + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest tests -p pytest_mock +} + +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" +} |