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: Tue, 17 Oct 2023 03:03:19 +0000 (UTC)	[thread overview]
Message-ID: <1697511143.f92e6f74b73ba36b697750f7afaaab063ca023c1.mgorny@gentoo> (raw)

commit:     f92e6f74b73ba36b697750f7afaaab063ca023c1
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 17 02:52:23 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Oct 17 02:52:23 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f92e6f74

dev-python/stripe: Bump to 7.0.0

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

 dev-python/stripe/Manifest            |  1 +
 dev-python/stripe/stripe-7.0.0.ebuild | 72 +++++++++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)

diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest
index 948a6ae6d3e0..ea2e016ae1fe 100644
--- a/dev-python/stripe/Manifest
+++ b/dev-python/stripe/Manifest
@@ -2,3 +2,4 @@ DIST stripe-6.3.0.tar.gz 276422 BLAKE2B 2fa438593bdec94f5c8306ee180921c2920e8995
 DIST stripe-6.5.0.tar.gz 290534 BLAKE2B 40672358ae9b962f14cb3dad669e7857bf52981b1801325f92193b2cd42e42a7ad14dcd25272ec36589c103c28b10c8eaae0fe6175eb10b00a6a0f278dee5312 SHA512 920bb7e0a0e1cbd4b5e085928f28c12ab793bfc1e1aa29aa58f4cbf11f1bfdfeadac84d2be1fc9e14e70ce9a2f9e4900112cf982b6bab220e1cc09569d7db2f4
 DIST stripe-6.6.0.tar.gz 291636 BLAKE2B 33a565de61e2a371d2ad0cf523385b113e3164a4c972ba77383ba7dbc77aea9d755cc74f3ed15e5abb6f6d2f4c51f4c5859107c74950ca2831e092b4cf3fcc9e SHA512 327df0a8758c96b06f9d0bfd1da5450f328a55becabbae6c04960d4ad2abbac4a71d6c06cfe34c05bf2e87a2d330a9dbb303098165befa797a88d07d18be24c1
 DIST stripe-6.7.0.tar.gz 293207 BLAKE2B 5c07b6f04aa72045cccb4422b1f163cf6351f100d2245a4f93952d641ed8e4735c964b850179906bc7af13730724f596cd2cfa85c3d8fb8792f6a4e561337b0a SHA512 778c3ffa177e52b62bf4821b2f0aaa5eef01d8690526c42015d192bb06332a2a5fd143c8dab82497803adcfed963b7ccf06dc77908b21a7a7c77f9ef39b39c12
+DIST stripe-7.0.0.tar.gz 378521 BLAKE2B a53248162b44776f0c457064c3d2d99e7f6ec8561d1a88ee7bec655d20ff9dada3c92d7d764b3775950902a908f1d9d82c0002483cd168646f1cbde19640ca92 SHA512 154a772880522e5567907c3c9c6024f18ee1e81b4e192f30dbe8ea4b0fa3d1cf4b04d9de7ab9f0911e2a3d9c5f65207fd4d499b4e5ea3c606c738506d2eb15d5

diff --git a/dev-python/stripe/stripe-7.0.0.ebuild b/dev-python/stripe/stripe-7.0.0.ebuild
new file mode 100644
index 000000000000..f91c6f71034b
--- /dev/null
+++ b/dev-python/stripe/stripe-7.0.0.ebuild
@@ -0,0 +1,72 @@
+# 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.0.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() {
+	epytest tests
+}
+
+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:[~2023-10-17  3:03 UTC|newest]

Thread overview: 265+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-17  3:03 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-05  9:12 [gentoo-commits] repo/gentoo:master commit in: dev-python/stripe/ 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-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-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=1697511143.f92e6f74b73ba36b697750f7afaaab063ca023c1.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