summaryrefslogtreecommitdiff
path: root/dev-python/stripe
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-11-22 11:17:57 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-11-22 11:17:57 +0000
commit77b74be093bdf4a0ed4121acc3f8e229103cf004 (patch)
tree63d35b3e7246dd3ae3c181b1e47212a89a5f8d2c /dev-python/stripe
parent734d2dac3e96161f025c33aa2d518d798cd06580 (diff)
gentoo auto-resync : 22:11:2023 - 11:17:57
Diffstat (limited to 'dev-python/stripe')
-rw-r--r--dev-python/stripe/Manifest2
-rw-r--r--dev-python/stripe/stripe-7.6.0.ebuild73
2 files changed, 75 insertions, 0 deletions
diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest
index 0e90a7c997fe..7e23dd4bd676 100644
--- a/dev-python/stripe/Manifest
+++ b/dev-python/stripe/Manifest
@@ -5,6 +5,7 @@ DIST stripe-7.2.0.tar.gz 738081 BLAKE2B 9d46139f989b9c5d50989ab21bc4c4d2f825b1bb
DIST stripe-7.3.0.tar.gz 745559 BLAKE2B 01bb0f1eda5cf844331d5883f7224c11bc7f90b0e179ba4df31bec88d35988031968209322022802e3c7cbad15314ab48ae185acd6485def5a2280cc391373cb SHA512 a80af0fd3e49819bef9d8796ef817b0d58105f7a91b160beb4ff7a30ea9aac1590d5ff05fca5334b9da1dd125a4500e5cb32afbe990a8d15463d913a967e78e5
DIST stripe-7.4.0.tar.gz 743353 BLAKE2B 30246bf8c5c922fe1ab906757fef064d4f6eea6989825e1ddabc1ad3fad95cd486bcaa3be860045c29daa2f3c84f65a01e275c919da286d8f0d81cfa3aa512b8 SHA512 9e67fbfdd4fc65ad72a56bc841316e803eca031307a3ced4ba5773773a9920fd1d2e11cb7de6e6da4b2aae78611e198d999d85a5df65d3d7a43af195a47a84c7
DIST stripe-7.5.0.tar.gz 735899 BLAKE2B e3b58f5e949cdea3f177cf87c82d15f1bd8a9fe3bbd8a07dd4f25d06e555d3e4f2cfd7f03d810ac80cefa70d5e4cbf77da6c3b77d091955530c9d18aedea7d34 SHA512 34d1a6e7cfc826c2f48321e07fed81fe8fdf19d4865f7bc657c81e170f55c8685331b550596b31fd20d69e130a9547539507fd22a772ac15a09d14492120e2f9
+DIST stripe-7.6.0.tar.gz 743504 BLAKE2B 32b82cd34241f00c259edc3e0d46d25337cd2490e6c3f4fb9d90d13e785f5e844fbaf66b224a7ae2ac7643d80b90eb36fde465ffdae058ded7741cb53dca5ec6 SHA512 5383ee5bc7e128840f9a1a738eca3bd6ce4a98df554243308d3b6fc667b519b996fc63d34c29abfc4f2f9082e8062aaf9aacdb3edb70e4ef2a6556228926daa2
EBUILD stripe-6.7.0.ebuild 1911 BLAKE2B 0233bb23196ecd23022c85dbe304f83f84c9f992c558dca7c2fa3869acb82751644d1306dca3f2b27f6d4fe8cc625e22328e04bee232b21873c5ef4e963c9df6 SHA512 17b5ed9d8d5f8748165703cdcac110a40eb0505304d6649d56d57316148e0097983afc6d15170195b0c1e86348b6437696e1773a2132e9ca14dc6b3dcd04ee72
EBUILD stripe-7.0.0.ebuild 1913 BLAKE2B 5a4402b2ab462b8e692b5a6f3857a19c465f5c34b95786c9279549f5d03ba054c70e33e986fbda77fb45a881a9dfa4076095ffb88cfe47dbfda802df7a2422e9 SHA512 d4c0e62f3a101c2fe2db9ddbdaab2f00f6052db2690e4d8c893b166296bfa1efc0e8afe5f125816d37eead4bbab183c602e48821710287b411c4d6df81d35eb2
EBUILD stripe-7.1.0.ebuild 1913 BLAKE2B 464bdd3dd7c56b058f5fff69e34ccfeb556dfa6c23c1ada2cbd4324ddca2bda140430108f2aad5f422d08bad7ad64eb830ed2463fb8578646d77054e56b194bc SHA512 77266f6919d8c05d990c340399fcced2790cd7333ad7b3416b9865443ea01c21a27b0511178df663c407ba4cee9cbb90ffae280a8bcf5e10f6fd299495a7f3f0
@@ -12,4 +13,5 @@ EBUILD stripe-7.2.0.ebuild 1971 BLAKE2B 7019276c3f64a5af2d989876c39a9ecc8f07ff1c
EBUILD stripe-7.3.0.ebuild 1971 BLAKE2B 7019276c3f64a5af2d989876c39a9ecc8f07ff1ca53779e1f50560d2b461ccfab26ddedea25cc9523ee2fe936f4407cdd70d57c0e4b184ce22409879fd4a10bd SHA512 c6e5a764c1ba1a5f1afa19c276b2373dac6e0e8a9997bd0fdad501ac7c3d8f84acec29449c7d2ba5d994c6b98d158c93c003df42cf5fc351c64fbb81256595bb
EBUILD stripe-7.4.0.ebuild 1971 BLAKE2B 7019276c3f64a5af2d989876c39a9ecc8f07ff1ca53779e1f50560d2b461ccfab26ddedea25cc9523ee2fe936f4407cdd70d57c0e4b184ce22409879fd4a10bd SHA512 c6e5a764c1ba1a5f1afa19c276b2373dac6e0e8a9997bd0fdad501ac7c3d8f84acec29449c7d2ba5d994c6b98d158c93c003df42cf5fc351c64fbb81256595bb
EBUILD stripe-7.5.0.ebuild 1971 BLAKE2B 7019276c3f64a5af2d989876c39a9ecc8f07ff1ca53779e1f50560d2b461ccfab26ddedea25cc9523ee2fe936f4407cdd70d57c0e4b184ce22409879fd4a10bd SHA512 c6e5a764c1ba1a5f1afa19c276b2373dac6e0e8a9997bd0fdad501ac7c3d8f84acec29449c7d2ba5d994c6b98d158c93c003df42cf5fc351c64fbb81256595bb
+EBUILD stripe-7.6.0.ebuild 1971 BLAKE2B 056b8b2d55e45eebeabf54dbea24628182827c3855c30978967d62a9bf01f8937817adce80832e0ce726272f5619fec820eabf05cd026b88cd2965e6235e5d7c SHA512 f81d9660867672877c150dafe4158293f1fd390fe6f8d1e57ff60293f20ec47cc3fc4911f7ea9ab73d126c3724ce2df1c9f9fee93479a5e71de55a50f37004a2
MISC metadata.xml 372 BLAKE2B e6a38fdec6fc016068e7a0522ba15e83bf358ba1475e54a9630b1e86c75bc14b790c59716317bd81438a1c770e4d31afbe04400ddcd5dd272715c251fd6cb1a2 SHA512 2d9672b242f2d38654f7906097e597dfbdf75afa3583ea331f61772db95d19a802e83ed523c67a6cf3da18411036055c0996fd04d99199618d5205be8a61bd77
diff --git a/dev-python/stripe/stripe-7.6.0.ebuild b/dev-python/stripe/stripe-7.6.0.ebuild
new file mode 100644
index 000000000000..554c53012571
--- /dev/null
+++ b/dev-python/stripe/stripe-7.6.0.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 ~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"
+}