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