1 |
commit: e55e90a3a149eceaa267216615bba2a26a29ccca |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 29 09:23:23 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 29 09:49:57 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e55e90a3 |
7 |
|
8 |
dev-python/stripe: Remove redundant versions |
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.42.0.ebuild | 69 ---------------------------------- |
14 |
2 files changed, 70 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest |
17 |
index e48a06b7c66..f1d9b9ff72c 100644 |
18 |
--- a/dev-python/stripe/Manifest |
19 |
+++ b/dev-python/stripe/Manifest |
20 |
@@ -1,2 +1 @@ |
21 |
-DIST stripe-2.42.0.tar.gz 217456 BLAKE2B 0bd0b31ab1a9a004932ea20b20d7965c05aee12c26d9a6f41af16179fd4c73f9ea08140a157a6ce502a2fb0668de6ac75da869cabf22011977d9912661e85d05 SHA512 acffae91f19c943efe5f4a19f34ff35f8ef0b538e6cf83be6c4820020ad062f7e19365a8edfc048bc24306690dc50b66856526202f5c8830a85a86405f31db50 |
22 |
DIST stripe-2.43.0.tar.gz 211400 BLAKE2B 135371f793af291e1c43179bcb325a9eb84c3258d9013009f920077fbc783569b6384fa76dcf464aa9fdbe64a4a297d6c232f3719729a81e1d62c74b769ff5f7 SHA512 a91f4f268b5c533cdd378c3169cf6e29b11b3b79492cd8b01b21970459383d63fa726fb206aba111ef8e57c2b98eecd6ba3ef9fdb868efc2db69f0cba8f74554 |
23 |
|
24 |
diff --git a/dev-python/stripe/stripe-2.42.0.ebuild b/dev-python/stripe/stripe-2.42.0.ebuild |
25 |
deleted file mode 100644 |
26 |
index 342d2ab5aa5..00000000000 |
27 |
--- a/dev-python/stripe/stripe-2.42.0.ebuild |
28 |
+++ /dev/null |
29 |
@@ -1,69 +0,0 @@ |
30 |
-# Copyright 1999-2020 Gentoo Authors |
31 |
-# Distributed under the terms of the GNU General Public License v2 |
32 |
- |
33 |
-EAPI=7 |
34 |
- |
35 |
-PYTHON_COMPAT=( python3_{6,7} pypy3 ) |
36 |
-inherit distutils-r1 |
37 |
- |
38 |
-DESCRIPTION="Stripe python bindings" |
39 |
-HOMEPAGE="https://github.com/stripe/stripe-python" |
40 |
-SRC_URI="mirror://pypi/s/${PN}/${P}.tar.gz" |
41 |
- |
42 |
-LICENSE="MIT" |
43 |
-SLOT="0" |
44 |
-KEYWORDS="~amd64 ~x86" |
45 |
-IUSE="test" |
46 |
-RESTRICT="!test? ( test )" |
47 |
- |
48 |
-RDEPEND=" |
49 |
- >=dev-python/requests-2.20[${PYTHON_USEDEP}] |
50 |
-" |
51 |
-# See https://github.com/stripe/stripe-python/blob/v2.10.1/tests/conftest.py#L17 |
52 |
-# for minimum required version of stripe-mock |
53 |
-# Running the tests against dev-util/stripe-mock-0.47.0 resulted in test errors |
54 |
-DEPEND="${RDEPEND} |
55 |
- test? ( |
56 |
- >=dev-util/stripe-mock-0.76.0 |
57 |
- dev-python/pytest[${PYTHON_USEDEP}] |
58 |
- dev-python/pytest-mock[${PYTHON_USEDEP}] |
59 |
- net-misc/curl |
60 |
- ) |
61 |
-" |
62 |
- |
63 |
-DOCS=(LONG_DESCRIPTION.rst CHANGELOG.md README.md) |
64 |
- |
65 |
-src_test() { |
66 |
- local stripe_mock_port=12111 |
67 |
- local stripe_mock_max_port=12121 |
68 |
- local stripe_mock_logfile="${T}/stripe_mock_${EPYTHON}.log" |
69 |
- # Try to start stripe-mock until we find a free port |
70 |
- while [[ "${stripe_mock_port}" -le "${stripe_mock_max_port}" ]]; do |
71 |
- ebegin "Trying to start stripe-mock on port ${stripe_mock_port}" |
72 |
- stripe-mock --http-port ${stripe_mock_port} &> "${stripe_mock_logfile}" & |
73 |
- local stripe_mock_pid=$! |
74 |
- sleep 2 |
75 |
- # Did stripe-mock start? |
76 |
- curl --fail -u "sk_test_123:" \ |
77 |
- http://127.0.0.1:${stripe_mock_port}/v1/customers &> /dev/null |
78 |
- eend $? "Port ${stripe_mock_port} unavailable" |
79 |
- if [[ $? -eq 0 ]]; then |
80 |
- einfo "stripe-mock running on port ${stripe_mock_port}" |
81 |
- break |
82 |
- fi |
83 |
- (( stripe_mock_port++ )) |
84 |
- done |
85 |
- if [[ "${stripe_mock_port}" -gt "${stripe_mock_max_port}" ]]; then |
86 |
- eerror "Unable to start stripe-mock for tests" |
87 |
- die "Please see the logfile located at: ${stripe_mock_logfile}" |
88 |
- fi |
89 |
- |
90 |
- distutils-r1_src_test |
91 |
- |
92 |
- # Tear down stripe-mock |
93 |
- kill "${stripe_mock_pid}" || die "Unable to stop stripe-mock" |
94 |
-} |
95 |
- |
96 |
-python_test() { |
97 |
- STRIPE_MOCK_PORT=${stripe_mock_port} pytest -vv || die "Tests failed with ${EPYTHON}" |
98 |
-} |