1 |
commit: 61ca393943aea8952cd281e4ba622ab3862a12be |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 27 11:28:11 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 27 12:34:43 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61ca3939 |
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-2.63.0.ebuild | 62 ---------------------------------- |
14 |
2 files changed, 63 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest |
17 |
index 4606041f1392..84db4ba2c82e 100644 |
18 |
--- a/dev-python/stripe/Manifest |
19 |
+++ b/dev-python/stripe/Manifest |
20 |
@@ -1,3 +1,2 @@ |
21 |
-DIST stripe-2.63.0.tar.gz 233693 BLAKE2B 18de5e0a74b241759a7c84203e675159958a77e3ee225ebdfd5ed2d2d633a3b91f5165ac14a164b09e4df81176aafe1727685c4156b5055dc4ea2a44b0af9134 SHA512 fedef25d95e1fe3f9b4fdab37fb4ababc3c0243218da590076942491884b284b07e6bb15e9c85a6871dabffc34c260ec9d9fb80634ab0a368cf312c2324c2bdd |
22 |
DIST stripe-2.64.0.tar.gz 234442 BLAKE2B 504e32c19f1a65a39ee709d3abc7211d648c7aaf8493edb4130d49d3fbbebea4ec7d2c116b9b715e9e0d5d383578c477ae0e2cbace51f5b8574d540e9b9238d8 SHA512 5055b5a712c0891f3660d00fe7bb27452cce33aa4a9c70fbd7391dd989d31aeb8d8288c3cdd22747b6fd4c480be17f7ab9428c31ea7d2c674e175e77f4f6a0b7 |
23 |
DIST stripe-2.65.0.tar.gz 234847 BLAKE2B 474757c17abd5259f46913d5be0fa1130e64608f0306d772d6776bc34b76a62c2a7cc1dbe812201d867b06e361f9ec905e0a12bb4830e9ccc1e5211e2aeecd6b SHA512 309a3e2202e7e8983bf7d8a403a588c6793f35866bf44edf6fc2877624a98716033e633b1f38790b2731049cfef3f90c878b5bc9df65dce9f4606414944dc8f4 |
24 |
|
25 |
diff --git a/dev-python/stripe/stripe-2.63.0.ebuild b/dev-python/stripe/stripe-2.63.0.ebuild |
26 |
deleted file mode 100644 |
27 |
index ba1432a6f725..000000000000 |
28 |
--- a/dev-python/stripe/stripe-2.63.0.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,62 +0,0 @@ |
31 |
-# Copyright 1999-2021 Gentoo Authors |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=8 |
35 |
- |
36 |
-PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
37 |
-inherit distutils-r1 |
38 |
- |
39 |
-DESCRIPTION="Stripe python bindings" |
40 |
-HOMEPAGE="https://github.com/stripe/stripe-python" |
41 |
-SRC_URI="mirror://pypi/s/${PN}/${P}.tar.gz" |
42 |
- |
43 |
-LICENSE="MIT" |
44 |
-SLOT="0" |
45 |
-KEYWORDS="amd64 x86" |
46 |
- |
47 |
-RDEPEND=" |
48 |
- >=dev-python/requests-2.20[${PYTHON_USEDEP}] |
49 |
-" |
50 |
-BDEPEND=" |
51 |
- test? ( |
52 |
- >=dev-util/stripe-mock-0.115.0 |
53 |
- dev-python/pytest-mock[${PYTHON_USEDEP}] |
54 |
- net-misc/curl |
55 |
- ) |
56 |
-" |
57 |
- |
58 |
-distutils_enable_tests pytest |
59 |
- |
60 |
-DOCS=(LONG_DESCRIPTION.rst CHANGELOG.md README.md) |
61 |
- |
62 |
-src_test() { |
63 |
- local stripe_mock_port=12111 |
64 |
- local stripe_mock_max_port=12121 |
65 |
- local stripe_mock_logfile="${T}/stripe_mock_${EPYTHON}.log" |
66 |
- # Try to start stripe-mock until we find a free port |
67 |
- while [[ "${stripe_mock_port}" -le "${stripe_mock_max_port}" ]]; do |
68 |
- ebegin "Trying to start stripe-mock on port ${stripe_mock_port}" |
69 |
- stripe-mock --http-port ${stripe_mock_port} &> "${stripe_mock_logfile}" & |
70 |
- local stripe_mock_pid=$! |
71 |
- sleep 2 |
72 |
- # Did stripe-mock start? |
73 |
- curl --fail -u "sk_test_123:" \ |
74 |
- http://127.0.0.1:${stripe_mock_port}/v1/customers &> /dev/null |
75 |
- eend $? "Port ${stripe_mock_port} unavailable" |
76 |
- if [[ $? -eq 0 ]]; then |
77 |
- einfo "stripe-mock running on port ${stripe_mock_port}" |
78 |
- break |
79 |
- fi |
80 |
- (( stripe_mock_port++ )) |
81 |
- done |
82 |
- if [[ "${stripe_mock_port}" -gt "${stripe_mock_max_port}" ]]; then |
83 |
- eerror "Unable to start stripe-mock for tests" |
84 |
- die "Please see the logfile located at: ${stripe_mock_logfile}" |
85 |
- fi |
86 |
- |
87 |
- local -x STRIPE_MOCK_PORT=${stripe_mock_port} |
88 |
- distutils-r1_src_test |
89 |
- |
90 |
- # Tear down stripe-mock |
91 |
- kill "${stripe_mock_pid}" || die "Unable to stop stripe-mock" |
92 |
-} |