diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-12-17 19:56:56 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-12-17 19:56:56 +0100 |
commit | 8574eafe4295e2d0d56dd686d62098d4b5e2a788 (patch) | |
tree | 7651ae54acc4f83b31efda9f9bdaf994d6400d49 /dev-python | |
parent | dev-python/pyopencl: Remove old (diff) | |
download | gentoo-8574eafe4295e2d0d56dd686d62098d4b5e2a788.tar.gz gentoo-8574eafe4295e2d0d56dd686d62098d4b5e2a788.tar.bz2 gentoo-8574eafe4295e2d0d56dd686d62098d4b5e2a788.zip |
dev-python/stripe: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/stripe/Manifest | 1 | ||||
-rw-r--r-- | dev-python/stripe/stripe-2.62.0.ebuild | 62 |
2 files changed, 0 insertions, 63 deletions
diff --git a/dev-python/stripe/Manifest b/dev-python/stripe/Manifest index 341e0e843f20..1f8602b96967 100644 --- a/dev-python/stripe/Manifest +++ b/dev-python/stripe/Manifest @@ -1,2 +1 @@ -DIST stripe-2.62.0.tar.gz 233447 BLAKE2B c4cdddcb5397ed45606600183dccba9395e098f236dd592e0a0326832642c79d112bdcb52ade736a0a1137e29b7368157e76a8a84895efa9a2debf2a60ffe886 SHA512 5c2f49e0639082a75ee97b8ad6e50926bb1d894b395f5363b2300825e497527518b682c3380ef458b4dc9ab832dc71afae5f85ff4ecc2e188aab4ad29df4a60f DIST stripe-2.63.0.tar.gz 233693 BLAKE2B 18de5e0a74b241759a7c84203e675159958a77e3ee225ebdfd5ed2d2d633a3b91f5165ac14a164b09e4df81176aafe1727685c4156b5055dc4ea2a44b0af9134 SHA512 fedef25d95e1fe3f9b4fdab37fb4ababc3c0243218da590076942491884b284b07e6bb15e9c85a6871dabffc34c260ec9d9fb80634ab0a368cf312c2324c2bdd diff --git a/dev-python/stripe/stripe-2.62.0.ebuild b/dev-python/stripe/stripe-2.62.0.ebuild deleted file mode 100644 index 4ccaea01bef0..000000000000 --- a/dev-python/stripe/stripe-2.62.0.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..10} pypy3 ) -inherit distutils-r1 - -DESCRIPTION="Stripe python bindings" -HOMEPAGE="https://github.com/stripe/stripe-python" -SRC_URI="mirror://pypi/s/${PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 x86" - -RDEPEND=" - >=dev-python/requests-2.20[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - >=dev-util/stripe-mock-0.114.0 - dev-python/pytest-mock[${PYTHON_USEDEP}] - net-misc/curl - ) -" - -distutils_enable_tests pytest - -DOCS=(LONG_DESCRIPTION.rst CHANGELOG.md README.md) - -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" -} |