summaryrefslogtreecommitdiff
path: root/dev-python/stripe
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-11-17 10:58:21 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-11-17 10:58:21 +0000
commit27cf8f197a427c1c71255f86149344e3bf1be47d (patch)
tree9e2b0e686362a4d009c515b9ecda0c33a4ecad30 /dev-python/stripe
parent04a96556dc0036655ac429edf598cc48febe294b (diff)
gentoo auto-resync : 17:11:2023 - 10:58:21
Diffstat (limited to 'dev-python/stripe')
-rw-r--r--dev-python/stripe/Manifest2
-rw-r--r--dev-python/stripe/stripe-7.5.0.ebuild73
2 files changed, 75 insertions, 0 deletions
diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest
index 794d3b2b00dc..0e90a7c997fe 100644
--- a/dev-python/stripe/Manifest
+++ b/dev-python/stripe/Manifest
@@ -4,10 +4,12 @@ DIST stripe-7.1.0.tar.gz 737411 BLAKE2B 9db3d016e0a4180b377b9a7e4251f622ff62f2fd
DIST stripe-7.2.0.tar.gz 738081 BLAKE2B 9d46139f989b9c5d50989ab21bc4c4d2f825b1bbba08d23e1826646c30beb1e8f04385fda200921cb08f0af4146e64f26e0f880cd1ac1d83404b4c743f62b07d SHA512 93aa2762b41c0d2e277a50609c58c7e7f7aedc2c000bb6951d252279bd1568bd4a459769d631b0473f1d7b6f82f50adbf53781c5d9126124426ba7a287638860
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
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
EBUILD stripe-7.2.0.ebuild 1971 BLAKE2B 7019276c3f64a5af2d989876c39a9ecc8f07ff1ca53779e1f50560d2b461ccfab26ddedea25cc9523ee2fe936f4407cdd70d57c0e4b184ce22409879fd4a10bd SHA512 c6e5a764c1ba1a5f1afa19c276b2373dac6e0e8a9997bd0fdad501ac7c3d8f84acec29449c7d2ba5d994c6b98d158c93c003df42cf5fc351c64fbb81256595bb
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
MISC metadata.xml 372 BLAKE2B e6a38fdec6fc016068e7a0522ba15e83bf358ba1475e54a9630b1e86c75bc14b790c59716317bd81438a1c770e4d31afbe04400ddcd5dd272715c251fd6cb1a2 SHA512 2d9672b242f2d38654f7906097e597dfbdf75afa3583ea331f61772db95d19a802e83ed523c67a6cf3da18411036055c0996fd04d99199618d5205be8a61bd77
diff --git a/dev-python/stripe/stripe-7.5.0.ebuild b/dev-python/stripe/stripe-7.5.0.ebuild
new file mode 100644
index 000000000000..1b1e683365bd
--- /dev/null
+++ b/dev-python/stripe/stripe-7.5.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.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() {
+ 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"
+}