1 |
commit: 38ec95fd2ef3f342c61015c23c692864543b07db |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 3 20:00:42 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 3 20:00:42 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38ec95fd |
7 |
|
8 |
dev-python/stripe: drop 4.1.0 |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/stripe/Manifest | 1 - |
13 |
dev-python/stripe/stripe-4.1.0.ebuild | 71 ----------------------------------- |
14 |
2 files changed, 72 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest |
17 |
index fb1bccd6cf25..0f9de2f7b376 100644 |
18 |
--- a/dev-python/stripe/Manifest |
19 |
+++ b/dev-python/stripe/Manifest |
20 |
@@ -1,2 +1 @@ |
21 |
-DIST stripe-4.1.0.tar.gz 266799 BLAKE2B ce801bd6d4536163d7fc56b46b23a76d0ed2c392be65b8891750d0c413e3d8195004b09603fc3f360ea97e32e6472f887aa41ca502cf8a0460b9bac3ece610b3 SHA512 6a243526d56bc83caced776850bc3d2582c19f28779684bbf7b0a81f477d8c02c21151052b05b31160f2f81a83f5d7260bd82c171681a059b12012e794c6e5cf |
22 |
DIST stripe-4.2.0.tar.gz 267578 BLAKE2B 1cd08aa37a3735928e65fb401d8817694cbfceff05722aa96ae4880da6ccb6e3139dcf55804efe26a4e1c1814a6734eed1b5754c06efaf2003d9c28efbdb8731 SHA512 8a2660878838b0a2602afb6716db0dd91c2896b9f27224c2b04c800f32705e876d2915b0c5f4f1bdcf8d3d508ca050660e2e923f999bd0a10f9fdabd3acaa750 |
23 |
|
24 |
diff --git a/dev-python/stripe/stripe-4.1.0.ebuild b/dev-python/stripe/stripe-4.1.0.ebuild |
25 |
deleted file mode 100644 |
26 |
index bd7dee2fb86e..000000000000 |
27 |
--- a/dev-python/stripe/stripe-4.1.0.ebuild |
28 |
+++ /dev/null |
29 |
@@ -1,71 +0,0 @@ |
30 |
-# Copyright 1999-2022 Gentoo Authors |
31 |
-# Distributed under the terms of the GNU General Public License v2 |
32 |
- |
33 |
-EAPI=8 |
34 |
- |
35 |
-DISTUTILS_USE_PEP517=setuptools |
36 |
-PYTHON_COMPAT=( python3_{8..11} pypy3 ) |
37 |
- |
38 |
-inherit distutils-r1 |
39 |
- |
40 |
-DESCRIPTION="Stripe python bindings" |
41 |
-HOMEPAGE=" |
42 |
- https://github.com/stripe/stripe-python/ |
43 |
- https://pypi.org/project/stripe/ |
44 |
-" |
45 |
-SRC_URI="mirror://pypi/s/${PN}/${P}.tar.gz" |
46 |
- |
47 |
-LICENSE="MIT" |
48 |
-SLOT="0" |
49 |
-KEYWORDS="amd64 x86" |
50 |
- |
51 |
-RDEPEND=" |
52 |
- >=dev-python/requests-2.20[${PYTHON_USEDEP}] |
53 |
-" |
54 |
-BDEPEND=" |
55 |
- test? ( |
56 |
- >=dev-util/stripe-mock-0.141.0 |
57 |
- dev-python/pytest-mock[${PYTHON_USEDEP}] |
58 |
- net-misc/curl |
59 |
- ) |
60 |
-" |
61 |
- |
62 |
-distutils_enable_tests pytest |
63 |
- |
64 |
-DOCS=( LONG_DESCRIPTION.rst CHANGELOG.md README.md ) |
65 |
- |
66 |
-python_test() { |
67 |
- epytest tests |
68 |
-} |
69 |
- |
70 |
-src_test() { |
71 |
- local stripe_mock_port=12111 |
72 |
- local stripe_mock_max_port=12121 |
73 |
- local stripe_mock_logfile="${T}/stripe_mock_${EPYTHON}.log" |
74 |
- # Try to start stripe-mock until we find a free port |
75 |
- while [[ "${stripe_mock_port}" -le "${stripe_mock_max_port}" ]]; do |
76 |
- ebegin "Trying to start stripe-mock on port ${stripe_mock_port}" |
77 |
- stripe-mock --http-port ${stripe_mock_port} &> "${stripe_mock_logfile}" & |
78 |
- local stripe_mock_pid=$! |
79 |
- sleep 2 |
80 |
- # Did stripe-mock start? |
81 |
- curl --fail -u "sk_test_123:" \ |
82 |
- http://127.0.0.1:${stripe_mock_port}/v1/customers &> /dev/null |
83 |
- eend $? "Port ${stripe_mock_port} unavailable" |
84 |
- if [[ $? -eq 0 ]]; then |
85 |
- einfo "stripe-mock running on port ${stripe_mock_port}" |
86 |
- break |
87 |
- fi |
88 |
- (( stripe_mock_port++ )) |
89 |
- done |
90 |
- if [[ "${stripe_mock_port}" -gt "${stripe_mock_max_port}" ]]; then |
91 |
- eerror "Unable to start stripe-mock for tests" |
92 |
- die "Please see the logfile located at: ${stripe_mock_logfile}" |
93 |
- fi |
94 |
- |
95 |
- local -x STRIPE_MOCK_PORT=${stripe_mock_port} |
96 |
- distutils-r1_src_test |
97 |
- |
98 |
- # Tear down stripe-mock |
99 |
- kill "${stripe_mock_pid}" || die "Unable to stop stripe-mock" |
100 |
-} |