public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/stripe/
Date: Fri, 19 Apr 2024 02:44:34 +0000 (UTC)	[thread overview]
Message-ID: <1713494662.f60e44bad1ad16549a40f7eacab9ffaeb697fe1f.mgorny@gentoo> (raw)

commit:     f60e44bad1ad16549a40f7eacab9ffaeb697fe1f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 19 02:33:45 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Apr 19 02:44:22 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f60e44ba

dev-python/stripe: Bump to 9.3.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/stripe/Manifest            |  1 +
 dev-python/stripe/stripe-9.3.0.ebuild | 88 +++++++++++++++++++++++++++++++++++
 2 files changed, 89 insertions(+)

diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest
index 0c2a8c96a97a..7aac6fb8379b 100644
--- a/dev-python/stripe/Manifest
+++ b/dev-python/stripe/Manifest
@@ -2,3 +2,4 @@ DIST stripe-8.11.0.tar.gz 1215071 BLAKE2B 7e3eec2008582a7ba52bf6c9a9676f5886cb3a
 DIST stripe-8.9.0.tar.gz 1124248 BLAKE2B 158b070256404dfa7f5d2a13f076c08834fc0ec5c3f0564912bcd461276d790faf0530260f291f8681c357de727465ab900339b4d53ddf93972ace7411748ff8 SHA512 e4505262720eaccffd5b5e12858df1ca81117bdb9103ac7f9425ae50f93ac621b13587a314edc80546f1f6c4b28c5908fcd34f31dacc8e2c80b4532bf56fb63e
 DIST stripe-9.1.0.tar.gz 1219814 BLAKE2B 1a84dab6743e92423cb376f1dc03d01140f93dd74a89a0eb89c9697911c70abf108dd2f51ac422948d73c9ca024ca50e93c0552a2f4df642d60df6d1c521a71b SHA512 6f8484f99ecc0a66d778ef9e3140224adff79391f03acba594b2da3c0096433990d77f2eedb91812626b25aca7063d824cb3511c02eb2b489909cfc78fc0dca4
 DIST stripe-9.2.0.tar.gz 1221000 BLAKE2B efa869e7f9039fbf5ec2c7308b1f2b098f870289224f5f941ae3555c2f9177cf18210f813e26fb068841855d62697d25302b10dd8db0aa7de2af74b827ea151c SHA512 a579c537b3cfea245638d649734f62f6734e237db4d2bc733f933ecf03ac2576e9fdce2ad1adf5891db72c68e2166907b93e4e5d98b6ef92962423f7d8241ee2
+DIST stripe-9.3.0.tar.gz 1257309 BLAKE2B 819f2ece26282020383953b2f9436023796897b7928ac9f07c753a56a79aa8b80cadad9b1f8b1021224f6a4f704a3c2a92aa807d60a6bc769992d7fc6793aecb SHA512 708ffe2b36946de7e5780f582bc0db6a7b3dc82c163a0839491060944e882fa1f7679900d398b87fd2dc336d2e74eccc0f4f821095ce0465affd49b813d2b4fa

diff --git a/dev-python/stripe/stripe-9.3.0.ebuild b/dev-python/stripe/stripe-9.3.0.ebuild
new file mode 100644
index 000000000000..67734a537617
--- /dev/null
+++ b/dev-python/stripe/stripe-9.3.0.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2024 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"
+IUSE="telemetry"
+
+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.184.0
+		dev-python/aiohttp[${PYTHON_USEDEP}]
+		dev-python/anyio[${PYTHON_USEDEP}]
+		dev-python/httpx[${PYTHON_USEDEP}]
+		dev-python/pytest-mock[${PYTHON_USEDEP}]
+		dev-python/trio[${PYTHON_USEDEP}]
+		net-misc/curl
+	)
+"
+
+distutils_enable_tests pytest
+
+DOCS=( LONG_DESCRIPTION.rst CHANGELOG.md README.md )
+
+src_prepare() {
+	if ! use telemetry; then
+		sed -i -e '/enable_telemetry/s:True:False:' stripe/__init__.py || die
+	fi
+	# https://github.com/stripe/stripe-python/pull/1297
+	sed -e 's:from mock:from unittest.mock:' \
+		-i tests/test_http_client.py || die
+	distutils-r1_src_prepare
+}
+
+python_test() {
+	local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+	epytest tests -p anyio -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"
+}


             reply	other threads:[~2024-04-19  2:44 UTC|newest]

Thread overview: 271+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-19  2:44 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-02  9:47 [gentoo-commits] repo/gentoo:master commit in: dev-python/stripe/ Michał Górny
2024-11-02  9:40 Arthur Zamarin
2024-10-30 16:41 Michał Górny
2024-10-26 11:52 Michał Górny
2024-10-19  6:03 Michał Górny
2024-10-12  6:01 Michał Górny
2024-10-05  9:12 Michał Górny
2024-10-05  9:06 Arthur Zamarin
2024-10-04  3:12 Michał Górny
2024-10-02 11:22 Michał Górny
2024-09-28 12:59 Michał Górny
2024-09-28 12:32 Arthur Zamarin
2024-09-21 10:45 Michał Górny
2024-09-21 10:41 Arthur Zamarin
2024-09-19  4:27 Michał Górny
2024-09-14 12:32 Michał Górny
2024-09-14 12:12 Arthur Zamarin
2024-09-13  3:12 Michał Górny
2024-09-06  9:25 Michał Górny
2024-09-02  3:02 Michał Górny
2024-09-01 19:51 Arthur Zamarin
2024-08-31 14:37 Arthur Zamarin
2024-08-31 14:37 Arthur Zamarin
2024-08-30  1:56 Michał Górny
2024-08-24 19:06 Michał Górny
2024-08-24 16:22 Sam James
2024-08-24 11:49 Sam James
2024-08-24 10:45 Sam James
2024-08-16  3:18 Michał Górny
2024-08-10  7:31 Michał Górny
2024-08-10  5:26 Michał Górny
2024-08-02  4:50 Michał Górny
2024-07-27  9:44 Michał Górny
2024-07-27  6:44 Arthur Zamarin
2024-07-26 15:28 Michał Górny
2024-07-19  4:25 Michał Górny
2024-07-13  8:01 Michał Górny
2024-07-13  7:27 Arthur Zamarin
2024-07-12  2:33 Michał Górny
2024-07-06  6:35 Michał Górny
2024-07-06  6:26 Sam James
2024-07-06  5:29 Michał Górny
2024-06-28  5:19 Michał Górny
2024-06-25  8:01 Michał Górny
2024-06-22 15:01 Michał Górny
2024-06-22 13:48 Arthur Zamarin
2024-06-18  4:45 Michał Górny
2024-06-15 19:15 Michał Górny
2024-06-14  1:53 Michał Górny
2024-06-08  9:02 Michał Górny
2024-06-08  7:19 Arthur Zamarin
2024-06-07  1:59 Michał Górny
2024-06-01 17:38 Michał Górny
2024-06-01 17:35 Sam James
2024-06-01 17:35 Sam James
2024-06-01 17:29 Sam James
2024-05-31  4:22 Michał Górny
2024-05-25  6:33 Michał Górny
2024-05-25  6:27 Arthur Zamarin
2024-05-24  4:03 Michał Górny
2024-05-17  9:49 Michał Górny
2024-05-17  8:46 Arthur Zamarin
2024-05-17  6:25 Michał Górny
2024-05-11 10:02 Michał Górny
2024-05-11  9:49 Arthur Zamarin
2024-05-10  2:02 Michał Górny
2024-05-04  7:25 Michał Górny
2024-05-04  7:14 Arthur Zamarin
2024-05-03  3:42 Michał Górny
2024-05-02  1:37 Michał Górny
2024-05-02  0:26 Sam James
2024-04-26  2:05 Michał Górny
2024-04-24 17:15 Michał Górny
2024-04-24 16:15 Sam James
2024-04-17  3:42 Michał Górny
2024-04-13 17:49 Michał Górny
2024-04-13 16:39 Arthur Zamarin
2024-04-12  3:35 Michał Górny
2024-04-11  4:25 Michał Górny
2024-04-10  6:15 Michał Górny
2024-04-05 18:06 Michał Górny
2024-04-05 16:12 Michał Górny
2024-04-05 16:12 Michał Górny
2024-04-05  2:45 Michał Górny
2024-03-30 19:45 Michał Górny
2024-03-30 18:02 Arthur Zamarin
2024-03-30 15:28 Michał Górny
2024-03-30 15:28 Michał Górny
2024-03-29  5:16 Michał Górny
2024-03-23 11:58 Michał Górny
2024-03-23 11:53 Michał Górny
2024-03-22  4:38 Michał Górny
2024-03-15  5:06 Michał Górny
2024-03-09 14:19 Michał Górny
2024-03-08  5:40 Michał Górny
2024-03-03 13:06 Michał Górny
2024-03-03  6:11 Sam James
2024-03-03  6:11 Sam James
2024-03-03  6:11 Sam James
2024-03-01  4:47 Michał Górny
2024-02-24 15:12 Michał Górny
2024-02-24 14:04 Sam James
2024-02-23  3:40 Michał Górny
2024-02-18  3:28 Michał Górny
2024-02-17 21:42 Jakov Smolić
2024-02-16  5:40 Michał Górny
2024-02-11 13:10 Michał Górny
2024-02-11 11:11 Sam James
2024-02-09  3:33 Michał Górny
2024-02-04  4:01 Michał Górny
2024-02-03 21:34 Sam James
2024-02-03 19:09 Sam James
2024-02-03 14:10 Sam James
2024-02-02  4:12 Michał Górny
2024-01-26  5:39 Michał Górny
2024-01-26  5:39 Michał Górny
2024-01-20 20:00 Michał Górny
2024-01-20 18:36 Arthur Zamarin
2024-01-20  7:09 Michał Górny
2024-01-13  8:20 Michał Górny
2024-01-06 19:50 Michał Górny
2024-01-06 18:46 Michał Górny
2024-01-06 18:46 Michał Górny
2024-01-06 11:54 Sam James
2024-01-05 11:25 Michał Górny
2023-12-30 14:32 Michał Górny
2023-12-30 14:25 Arthur Zamarin
2023-12-24  5:59 Michał Górny
2023-12-23  5:12 Michał Górny
2023-12-15  8:17 Michał Górny
2023-12-12  6:32 Michał Górny
2023-12-09 16:13 Michał Górny
2023-12-09 15:54 Michał Górny
2023-12-09 15:54 Michał Górny
2023-12-09 15:54 Michał Górny
2023-12-09  6:53 Michał Górny
2023-12-08  5:41 Michał Górny
2023-12-01  5:39 Michał Górny
2023-11-24  9:32 Sam James
2023-11-22 12:27 Michał Górny
2023-11-22 12:12 Arthur Zamarin
2023-11-22  7:49 Michał Górny
2023-11-17  7:57 Michał Górny
2023-11-10  4:09 Michał Górny
2023-11-03  7:06 Michał Górny
2023-11-01  5:08 Michał Górny
2023-10-27 12:56 Michał Górny
2023-10-18 15:56 Michał Górny
2023-10-18  9:44 Sam James
2023-10-18  9:44 Sam James
2023-10-17  3:03 Michał Górny
2023-10-06  4:34 Michał Górny
2023-09-22  3:11 Michał Górny
2023-09-17 11:37 Michał Górny
2023-09-17  6:01 Sam James
2023-09-17  6:01 Sam James
2023-09-15  3:36 Michał Górny
2023-09-11  2:57 Michał Górny
2023-09-06  2:41 Michał Górny
2023-09-01  5:06 Michał Górny
2023-08-25  9:49 Michał Górny
2023-08-19 18:19 Michał Górny
2023-08-19 17:53 Arthur Zamarin
2023-08-17  8:36 Michał Górny
2023-07-14  5:33 Michał Górny
2023-06-01 14:59 Michał Górny
2023-04-28 15:41 Michał Górny
2023-04-28 15:18 Arthur Zamarin
2023-03-31  4:32 Michał Górny
2023-03-24  5:21 Michał Górny
2023-03-11  9:58 Michał Górny
2023-03-11  8:34 Arthur Zamarin
2023-02-17  6:37 Michał Górny
2023-02-03  7:19 Michał Górny
2022-12-25 17:50 Michał Górny
2022-12-25 16:45 Sam James
2022-11-17  6:15 Michał Górny
2022-11-03 20:00 Arthur Zamarin
2022-11-03 20:00 Sam James
2022-10-03 19:55 Michał Górny
2022-09-20  5:57 Michał Górny
2022-09-19 20:10 Jakov Smolić
2022-09-07  5:16 Michał Górny
2022-09-06 21:25 Sam James
2022-09-06 21:15 Sam James
2022-08-20 11:22 Arthur Zamarin
2022-08-07  8:54 Michał Górny
2022-07-12  7:08 Michał Górny
2022-07-12  6:46 Agostino Sarubbo
2022-07-01  6:53 Michał Górny
2022-06-18  6:47 Michał Górny
2022-06-08 19:40 Michał Górny
2022-06-06 11:33 Michał Górny
2022-06-06 10:22 Jakov Smolić
2022-06-06 10:22 Jakov Smolić
2022-05-24  6:16 Michał Górny
2022-05-20  8:29 Michał Górny
2022-05-10 10:07 Michał Górny
2022-05-06  7:41 Michał Górny
2022-05-04  8:19 Michał Górny
2022-05-01 13:04 Michał Górny
2022-05-01 12:20 Jakov Smolić
2022-05-01 12:20 Jakov Smolić
2022-04-22  8:19 Michał Górny
2022-04-19  8:45 Michał Górny
2022-04-17 16:54 Michał Górny
2022-04-17  8:07 Jakov Smolić
2022-04-17  8:07 Jakov Smolić
2022-04-15  8:23 Arthur Zamarin
2022-04-08 21:18 Michał Górny
2022-03-30 18:45 Michał Górny
2022-03-16 10:06 Michał Górny
2022-02-27 20:03 Michał Górny
2022-02-27 14:44 Jakov Smolić
2022-02-16 22:34 Michał Górny
2022-01-27 12:34 Michał Górny
2022-01-26 20:18 Jakov Smolić
2022-01-20 23:26 Michał Górny
2022-01-20 19:29 Arthur Zamarin
2021-12-21 20:33 Arthur Zamarin
2021-12-17 18:57 Michał Górny
2021-12-17 18:30 Jakov Smolić
2021-12-12 21:32 Michał Górny
2021-12-12 20:55 Jakov Smolić
2021-12-12 20:04 Jakov Smolić
2021-11-17  9:55 Michał Górny
2021-11-14 20:53 Michał Górny
2021-11-14 20:29 Sam James
2021-11-14  0:30 Sam James
2021-11-12  9:40 Michał Górny
2021-10-12  6:18 Michał Górny
2021-08-18 17:08 Michał Górny
2021-08-18 12:58 Agostino Sarubbo
2021-08-16  5:13 Agostino Sarubbo
2021-07-14 22:16 Michał Górny
2021-07-13  6:46 Michał Górny
2021-07-13  6:33 Agostino Sarubbo
2021-07-13  6:26 Agostino Sarubbo
2021-07-12  9:11 Michał Górny
2021-07-10  7:34 Michał Górny
2021-06-23 21:27 Michał Górny
2021-06-05  8:28 Michał Górny
2021-05-20  7:25 Michał Górny
2021-05-06 15:04 Michał Górny
2021-03-28 10:02 Agostino Sarubbo
2021-03-26 12:37 Michał Górny
2021-03-26 12:00 Agostino Sarubbo
2021-03-15 16:18 Agostino Sarubbo
2021-02-23  0:51 Michał Górny
2021-02-06  8:59 Michał Górny
2020-04-25  8:45 Cédric Krier
2020-04-14 12:32 Agostino Sarubbo
2020-04-13 16:06 Agostino Sarubbo
2020-03-29  9:50 Michał Górny
2020-03-29  9:50 Michał Górny
2020-03-22 12:20 Cédric Krier
2020-03-17  8:08 Michał Górny
2020-01-18 18:48 Michał Górny
2020-01-18  9:53 Cédric Krier
2019-09-14 12:38 Cédric Krier
2019-03-28 23:12 Patrice Clement
2018-11-11 10:41 Michał Górny
2018-07-28 11:27 Cédric Krier
2018-03-03 15:31 Cédric Krier
2017-12-17 14:07 Cédric Krier
2017-10-29 12:54 Cédric Krier
2017-10-08 20:19 Cédric Krier
2017-10-08 16:47 Cédric Krier
2017-07-16 15:46 Cédric Krier
2017-05-10 22:23 Cédric Krier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1713494662.f60e44bad1ad16549a40f7eacab9ffaeb697fe1f.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox