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,  9 Feb 2024 03:33:46 +0000 (UTC)	[thread overview]
Message-ID: <1707449621.1acd102cb12d6c969653de59f7532ffab830ac7f.mgorny@gentoo> (raw)

commit:     1acd102cb12d6c969653de59f7532ffab830ac7f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Feb  9 03:27:51 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Feb  9 03:33:41 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1acd102c

dev-python/stripe: Bump to 8.2.0

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

 dev-python/stripe/Manifest            |  1 +
 dev-python/stripe/stripe-8.2.0.ebuild | 81 +++++++++++++++++++++++++++++++++++
 2 files changed, 82 insertions(+)

diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest
index dd2bf47ecc6e..622a22c5c647 100644
--- a/dev-python/stripe/Manifest
+++ b/dev-python/stripe/Manifest
@@ -2,3 +2,4 @@ DIST stripe-7.13.0.tar.gz 789362 BLAKE2B 326a8b0987ffc7b9bcca2c3fbff548770223a6e
 DIST stripe-7.14.0.tar.gz 793052 BLAKE2B fa0cf2c57a1cc6ab2eccfa5c1882e2b0ef62d3d92b392ab23df495c93dad52b43e609c1938af4403a3d1c87d9d73b08a9536d01ca5a7f98a5caebcbaf894d5be SHA512 c40b1a3a4c5af132b30402e9f3860fd2e463e2ca263bc4a072975a744a86e3659c9499cab2ed8f10dd076bb896c2ae4d8a79d8307e2307b598ebe24728a81025
 DIST stripe-8.0.0.tar.gz 1070432 BLAKE2B 9f0b605d1c2c5f58dafcc78fb3d4878406c466b92475d08510116352325f5ba6ff3dc379fbd914b25faac7ced7e3fe5f52eecabbff5c479eaaf567cdbcb6a900 SHA512 c5ed151b41e3b2b11d502d51aad7c5c575e6ff151dcab8ffd86e32b4f37eeb1a6e381380b123802af938bb2adfbdda8a71c00e9e0b68e9493469cc6a90d94185
 DIST stripe-8.1.0.tar.gz 1065303 BLAKE2B be82278fa4b401c0259e5d48a4d232557cda98771254cec5dddd7ef5bcd2896e7545d9a3463c9d27da5b6df0b98ff07de292888c00c92fa51f4ebe1b04806e7b SHA512 fbc2c7d3d8da5d0ba261c38bd9371df26beab4a509c86fac6f759678fe8fb387a178bcf49b4cf4a10d44469bbac1626a0bc79d5ba99797f6fbdaa7fc5fdd34b4
+DIST stripe-8.2.0.tar.gz 1066563 BLAKE2B e622ff4bfbcf8fe97c6dad7858845b5fc863523be8777c2c99549d4e5ec6e1af77058f79c466bc4bbffaec1f7410f16e0940f145b0af9cfc0b10d6c2bcf20669 SHA512 57e538de91de380116f67cda8108edead1795a92cc39cb0025ea71b94208929d710ca6101aeeb1e8d489dca0af372d6768443dbd2631b7aadc365b6fce395e4e

diff --git a/dev-python/stripe/stripe-8.2.0.ebuild b/dev-python/stripe/stripe-8.2.0.ebuild
new file mode 100644
index 000000000000..47a12cdc7672
--- /dev/null
+++ b/dev-python/stripe/stripe-8.2.0.ebuild
@@ -0,0 +1,81 @@
+# 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.181.0
+		dev-python/pytest-mock[${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
+	distutils-r1_src_prepare
+}
+
+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"
+}


             reply	other threads:[~2024-02-09  3:33 UTC|newest]

Thread overview: 271+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-09  3:33 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-19  2:44 Michał Górny
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-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=1707449621.1acd102cb12d6c969653de59f7532ffab830ac7f.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